Quick start
From zero to a queryable API in five minutes. Dedicated Postgres database, realtime, TypeScript type generation included — no credit card required.
Quickstart 60 Secondes
From terminal to your first request in 3 simple steps.
pnpm add @aurabase/aurabase-jsimport { createClient } from '@aurabase/aurabase-js'
const aura = createClient(
process.env.AURA_URL ?? 'http://localhost:8080',
process.env.AURA_ANON_KEY ?? 'votre_cle_anon'
)// Lecture instantanée avec filtres et relations
const { data, error } = await aura
.from('posts')
.select('id, title, author:authors(name)')
.limit(10)
console.log('Données :', data)Prerequisites
We assume that Node.js ≥ 20 is installed and a POSIX terminal is within range. No local database is required: Aurabase provisions a dedicated Postgres database for each project.
Are you coming from Supabase or Firebase? Most concepts are transposable. See the migration guide.
Installing the SDK
The official SDK exposes a typed client for CRUD, auth, realtime and storage. It works the same way in Next.js, React, Node, Bun or Deno.
The SDK directly includes @aurabase/aurabase-js/ssr (createServerClient) export for Next.js (App Router, Server Actions, Middleware), Remix, Nuxt and SvelteKit with automatic session cookie management and anti-truncation chunking.
Create a project
From the Studio, each project receives four isolated sub-diagrams. You get a PROJECT_URL and a ANON_KEY that can be published on the client side, plus a SERVICE_ROLE_KEY to keep strictly on the server side.
SchemaAccessContains
project_{uuid}userYour business tables
project_{uuid}_authsystemusers, sessions, oauth_accounts, mfa
project_{uuid}_storagesystembuckets, objects, rls_policies
project_{uuid}_platformsystemfunctions, jobs, cron_jobs, api_keys
Never include service_role_key in a client bundle. It bypasses all RLS policies. Reserve it for server calls (route handlers, server actions, jobs).
First call
Create a reusable Aurabase client by reading keys from environment variables, then query your first table.
Then, in a route handler or a server component:
The Database types are regenerated on each migration via aura gen types. Joins, filters and returns are inferred automatically.
Connect realtime
Three auto-negotiated transports: WebSocket, SSE, NATS. Customer chooses the best one based on the network — no configuration necessary.
Subscriptions are multiplexed over a single TCP connection. Open as many as you need — zero additional network costs.
To go further
CONCEPT
Architecture
The 8 services and their partitioning by project.
SERVICE
Database
Schemas, migrations, TypeScript codegen, RLS.
SERVICE
Authentication
OAuth 15+, MFA, granular RBAC.
SERVICE
Edge Functions
WASM multi-runtime, cron, DLQ, AI Gateway.