Auto-generated REST API
CRUD endpoints for every PostgreSQL table. Full-text search, filtering, sorting, pagination, and FK expansion. No code generation, no ORM.
API docs
Auto-generated REST API. Auth. Realtime. File storage. Admin dashboard. Open source.
curl (macOS / Linux)
curl -fsSL https://allyourbase.io/install.sh | shHomebrew
brew install gridlhq/tap/aybDocker
docker run -p 8090:8090 ghcr.io/gridlhq/allyourbaseGo
go install github.com/allyourbase/ayb/cmd/ayb@latest1. Start AYB
ayb startAYB starts with managed PostgreSQL. No database setup needed.
2. Create a table
Use the admin dashboard at http://localhost:8090/admin, psql, or any PostgreSQL client:
CREATE TABLE posts (
id SERIAL PRIMARY KEY,
title TEXT NOT NULL,
body TEXT,
published BOOLEAN DEFAULT false,
created_at TIMESTAMPTZ DEFAULT now()
);3. Use the API
# Create a record
curl -X POST http://localhost:8090/api/collections/posts \
-H "Content-Type: application/json" \
-d '{"title": "Hello World", "published": true}'
# List records
curl "http://localhost:8090/api/collections/posts?sort=-created_at&perPage=10"{
"items": [
{ "id": 1, "title": "Hello World", "published": true, "created_at": "2026-02-17T12:00:00Z" }
],
"page": 1, "perPage": 10, "totalItems": 1, "totalPages": 1
}npm install @allyourbase/jsimport { AYBClient } from "@allyourbase/js";
const ayb = new AYBClient("http://localhost:8090");
// Auth
await ayb.auth.register("[email protected]", "password");
// Create
await ayb.records.create("posts", {
title: "Hello World",
published: true,
});
// List with filtering and sorting
const { items } = await ayb.records.list("posts", {
filter: "title='Hello World'",
sort: "-created_at",
});
// Realtime
ayb.realtime.subscribe(["posts"], (event) => {
console.log(event.action, event.record);
});Most single-binary backends use SQLite. AYB uses PostgreSQL instead, giving you:
AYB keeps the single-binary simplicity. For development, ayb start runs its own managed PostgreSQL with zero config. For production, point it at any PostgreSQL instance.
| PocketBase | Supabase (self-hosted) | Allyourbase | |
|---|---|---|---|
| Database | SQLite | PostgreSQL | PostgreSQL |
| Deployment | Single binary | 10+ Docker containers | Single binary |
| Configuration | One file | Dozens of env vars | One file |
| Full-text search | No | Yes | Yes |
| Row-Level Security | No | Yes | Yes |
| Docker required | No | Yes | No |
Allyourbase is open source under the MIT License.