v0.6.0 AGPLv3 production-ready

Backend infrastructure done right.

Stop rebuilding auth, multi-tenancy, and audit logging from scratch. SnackBase gives you a complete backend platform—open-source, Python-powered, extensible where it matters.

1,161 tests
17+ SDK services
100% type-safe
sdk-example.ts
import { SnackBaseClient } from '@snackbase/sdk';

const sb = new SnackBaseClient({
  url: 'https://api.yourapp.com',
  token: session.token,
});

// Instant CRUD with built-in multi-tenancy
const { items, total } = await sb.records.list('products', {
  filter: { active: true },
  sort:   ['-created_at'],
  perPage: 20,
});
// → { items: Product[], total: 847 }

const order = await sb.records.create('orders', {
  product_id: items[0].id,
  quantity:   3,
});
// → audit logged, tenant isolated, rule-checked
CAPABILITIES

What ships out of the box

POST /api/v1/{collection}

Instant APIs

Define collections, ship REST endpoints immediately. Filtering, pagination, access control pre-wired.

account_id: "AB1234"

Multi-Tenancy

Row-level isolation built into every query. One backend, infinite customers.

append_only: true

Audit Logs

Immutable trails for every data mutation. Compliance and forensics, not an afterthought.

view_rule: "user.id == owner_id"

Security Rules

Policy-based permissions at collection, record, and field level. No custom auth plumbing.

@hook("before_create")

Python Hooks

Inject custom logic anywhere in the request lifecycle. Python extensibility without the overhead.

await sdk.records.create(...)

Type-Safe SDK

JavaScript/TypeScript SDK with React hooks. End-to-end type safety from database to frontend.

STACK

Built for serious SaaS

Your Application
React / Vue / Svelte Mobile Apps CLI Tools
TypeScript SDK
@snackbase/sdk @snackbase/react Type-safe clients
REST API + WebSocket
/api/v1/{collection} /api/v1/auth/* /api/v1/audit
SnackBase Core
Multi-Tenancy Security Rules Audit Logs Hooks & Macros
Database
PostgreSQL MySQL SQLite
QUICKSTART

From zero to running backend

Clone
git clone github.com/lalitgehani/snackbase
Install
cd SnackBase && uv sync
Initialize
uv run python -m snackbase init-db
Serve
uv run python -m snackbase serve
// NEXT STEP

Start building your backend.

Join teams shipping production backends in days, not months. Open-source means you own your infrastructure—forever.