Small team. Serious software.

Build beyond
your team size.

An extensible Zig backend for ambitious applications. Integrated services, explicit resource control, and a single binary you can make your own.

Write it yourself. Build with a frontier coding agent. Use both.
The framework puts you in control.

npx zigbase initQuick start →

v0.13.0 · Apache-2.0 · Linux & macOS · Early release

Your applicationCOMPILED IN ZIG
Your business logic

Typed hooks · routes · jobs · plugins

The backend, integrated

Auth · data · files · realtime · admin

Your resource choices

Allocators · pools · build-time features

SQLite to startPostgres when needed

One foundation. Room to build something different.

Application leverage. Systems control.

Make your time and hardware go further.

01 / BUILD

Start with the hard parts connected.

Collections, authentication, authorization, realtime, files, and jobs share one backend. Spend your effort on the behavior that makes your product useful.

Explore the capabilities →
02 / CONTROL

Decide where resources go.

Use explicit allocation, inspectable resource profiles, and pool overrides. Compile optional features out. Compare measured configurations against your memory and latency budgets.

Why the language matters →
03 / EXTEND

Keep your application yours.

Embed ZigBase as a library. Add trusted business operations, integrations, and custom plugins in Zig, alongside the records and transactions they depend on.

Open the framework reference →

Your workflow belongs here

A framework for developers.
A clear interface for their agents.

The same public APIs, compiler feedback, and local tests support both. No AI service or subscription required.

Build directly

Write ordinary Zig against typed hooks and capability APIs. Follow runnable examples, test business logic in process, and generate a typed client from your schema.

Follow the tutorialBrowse recipes →

The framework is the foundation

Go beyond CRUD.
Stay in one application.

Model a booking, approve a request, or integrate a service. Compose custom code with the built-in backend through App(cfg): schema, hooks, routes, jobs, and plugins checked at compile time.

Request-scoped capabilities give your code access to records, auth, transactions, HTTP, and more. Resource ownership stays explicit.

Build on ZigBase as a library →

YOUR FRAMEWORK PROJECT

npx zigbase init --framework --dir myapp
cd myapp
zig fetch --save git+https://github.com/valthon/zigbase
zig build test

Use the pinned Zig 0.16.0 toolchain. The scaffold wires the library, example schema, and in-process tests.

Prefer the stock server? npx zigbase init scaffolds a backend without a Zig toolchain.

Choose the right application shape →

Ready out of the box

A substantial backend. Already connected.

Use the services together, then extend the parts that make your application different.

Start small. Keep your options.

Use the hardware you have.
Measure your next move.

Start with one process and embedded SQLite. Tune readers, workers, and cache settings against your own workload. When you need application replicas, rehearse a move to the opt-in Postgres backend.

Keep your collection API while reviewing database-specific SQL, shared files, and job coordination. Scaling is an engineering decision, with tools to help you make it.

Understand the deployment model →

Performance you can investigate

  • Inspect: report effective resource settings.
  • Compare: use zigbase tune with measured throughput, p95 latency, and peak RSS.
  • Track: gate binary size and instrumented allocations with performance contracts.

Component settings are not a process-memory ceiling. Timing trends are advisory; capacity depends on your application and deployment.

Read the measurement contracts →

Run the tenant project/task workload →

ZigBase + Zigapagos

Take the whole application further.

Pair your backend with Zigapagos pages, layouts, and interactive islands. Serve the frontend from the application binary for one origin and a compact deployment.

Keep the backend and frontend independently buildable. ZigBase also works with your preferred frontend through HTTP and typed clients.

Build the full stack →
Golf simulator booking example with listings and reservation controls

Real apps, in the repo: study the booking app's hooks, routes, jobs, and frontend.

Explore the booking example →

Evidence you can inspect

Run the examples. Read the results.

ZigBase is an early release. Explore what works today and the work still ahead.

Runnable applications

Start with the blog, explore booking workflows, or study plugins and compile-time configuration. The embedded admin UI gives each app a way to manage its data.

Browse examples →

Recorded agent evaluations

The August 2026 Genesis checkpoint records three successful unattended app-building runs. Results identify their scenario and revision; they do not qualify every later release.

Read the evaluation details →

Your ambition. Your infrastructure. Your code.

Build something worth growing.