Your entire
backend,
one SDK.

PaperDB is a production-grade Backend-as-a-Service. We provide authentication, a type-safe database, file storage, and realtime events — all accessible through a single, unified TypeScript client.

Auth included
Self-host ready
Zero vendor lock-in
main.ts
// Initialize the unified client
import { createClient } from 'paperdb';

const db = createClient({
  apiKey: process.env.PAPERDB_KEY,
});

// 1. Authentication
await db.auth.signUp({ email, password });

// 2. Database (Fully Type-Safe)
await db.users.insert({ name, email });

// 3. Object Storage
await db.storage.upload(file, { folder: 'avatars' });

// 4. Realtime Subscriptions
db.realtime.subscribe('users', handler);
AuthenticationType-Safe DatabaseFile StorageRealtime EventsWebhooksCron JobsMagic LinksOAuthAudit LogsOpen Source
AuthenticationType-Safe DatabaseFile StorageRealtime EventsWebhooksCron JobsMagic LinksOAuthAudit LogsOpen Source
Capabilities

Everything your backend needs.
Shipped in one package.

Authentication

Email/password, OAuth (Google, GitHub), magic links, and session management — all production-ready out of the box.

Type-Safe Database

A schema-driven document database with full TypeScript autocomplete. Define once, query everywhere, validate always.

File Storage

Upload, move, copy, and serve files via Cloudflare R2 or S3. Presigned URLs and CDN delivery built-in.

Realtime Events

Subscribe to document changes in real time over WebSocket. Token-scoped, per-collection, with automatic reconnection.

Webhooks & Cron

Register HTTP webhooks on document events and schedule recurring jobs with human-readable syntax or cron expressions.

Schema Validation

Define required fields, types, and uniqueness constraints. The API enforces them on every write — no extra code needed.

Secure by Default

AES-256-GCM encryption for sensitive data, HMAC-signed webhooks, CSRF-protected OAuth, and rate limiting on every endpoint.

REST API

Every collection gets a full REST API automatically. OpenAPI spec included — import into Postman or generate a client in any language.

Self-Host Ready

Deploy via Docker. Full data ownership with zero vendor lock-in. Runs on any VPS, Kubernetes cluster, or cloud provider.

1 SDK

Auth, DB, storage, realtime

R2 + S3

Storage backends supported

MIT

Open source license

100%

Self-hostable, no lock-in

Get started

Ship your backend
this afternoon.

Sign up and have your first app connected in under five minutes. Auth, database, storage — all wired together from a single SDK.

Quick install
$npm install paperdb
$npx create-paperdb my-app
$cd my-app && npm run dev

No credit card required to run locally.