Typed schema
Define tables and relationships in TypeScript and query them with autocomplete.
Product / Tables
Define relational tables beside your code. Tarantula provisions the database, previews migrations, applies them with deploys, and keeps backups.
What is included
Define tables and relationships in TypeScript and query them with autocomplete.
Generate, preview, and apply migrations as part of a deployment.
Enforce the same app roles in server code and database reads.
Inspect history, export data, and restore a known-good snapshot.
Declared with the app
The coding agent declares the resource beside the app. Local development and production use the same binding and permission contract.
import {
database, table, text, date, id
} from "tarantula";
export const db = database({
accounts: table({
name: text(),
renewalAt: date(),
ownerId: id("users")
})
});Small-cloud defaults
01No database account
02Preview every migration
03Restore a known-good snapshot
Private alpha