Ahead
Ahead is a schema-driven framework for building local-first apps with your own backend.
Define your records and mutations once. Ahead generates typed client calls and backend interfaces, keeps local state in SQLite, and synchronizes through your handlers and loaders.
- Schema-driven. Describe your models and local mutations in one contract.
- Typed end to end. Generate client APIs and backend read/write interfaces together.
- Works offline. Read and write locally; pending changes persist until they can sync.
- Your backend. Keep your business logic and database. No vendor cloud service required.
Start here
Run the getting-started tutorial to make a local edit, work offline and see your backend accept or reject a mutation.
| What you need | Read |
|---|---|
| Define records and mutations | Schema guide |
| Use the client | Client setup |
| Implement handlers and loaders | Backend guide |
| Understand local state and sync | Concepts |
| Look up a method, type or option | API reference |
| Handle offline work and failures | Sync and recovery |
Supported integrations
| Layer | Available integration |
|---|---|
| Client | TypeScript · Flutter |
| Backend | TypeScript |
| Backend database adapter | Prisma / PostgreSQL; custom transactional adapters |
The TypeScript client and backend currently run on Node.js. Clients use native Rust bindings; browser support is not implemented. See platform validation for tested environments and mobile setup.
Packages are currently used from source. Follow the tutorial's repository commands rather than installing an unpublished package. Need another language, runtime or database adapter? Request support.
Project
GitHub · Framework comparison · Issues · Contribute to the documentation