# InstantDB > A real-time backend-as-a-service with built-in database, auth, permissions, storage, presence, and streams — designed for AI-coded apps and modern frontends. InstantDB is a full-stack backend platform that gives your frontend a real-time database with built-in auth, permissions, storage, presence, and streams. It uses a triple-store architecture powered by Postgres on the server and a Datalog engine on the client, enabling optimistic updates, offline mode, and multiplayer sync out of the box. Modern LLMs already know how to use Instant from training data, making it ideal for AI-coded apps and agent-driven development. The entire backend can be set up from the terminal with a single command. - **Real-time sync** — *queries subscribe to live data; any change made by one user instantly propagates to all connected clients without manual polling or refresh.* - **Optimistic updates** — *mutations apply to the local triple store immediately, so the UI updates before the server responds, giving apps a snappy feel.* - **Offline mode** — *query results are persisted on-device automatically; mutations queue in a persistent outbox and flush when the connection returns.* - **InstaQL query language** — *write declarative JavaScript object queries that mirror the shape of the result; no SQL, no GraphQL resolvers, no joins.* - **InstaML write API** — *create, update, delete, and link data with a simple transactional API that compiles to normalized triple operations on Postgres.* - **Built-in auth** — *magic code emails, Google, Apple, GitHub, and LinkedIn OAuth are all included and configurable in minutes.* - **Declarative permissions** — *rules are written in a CEL-based syntax inspired by Google Zanzibar; bind variables and allow/deny rules live alongside your schema.* - **Storage** — *upload images and videos that behave like any other row in your database; no separate service required.* - **Presence & Broadcast** — *share who's online, who's typing, or cursor positions with the built-in presence and broadcast services.* - **Streams** — *send arbitrarily large data streams to multiple listeners without worrying about RAM or durability.* - **CLI-first workflow** — *run `npx create-instant-app` or `npx instant-cli init` to scaffold a project, push schema, and manage your app entirely from the terminal.* - **End-to-end type safety** — *schema, permissions, queries, and transactions all carry TypeScript types so AI agents and humans catch errors at compile time.* - **Undo for destructive changes** — *deleted columns and schema changes can be restored instantly from the dashboard or CLI.* - **Multi-tenant core** — *every app is scoped by `appId` at the database level, enabling unlimited free projects with no pausing.* ## Features - Real-time data sync - Optimistic updates - Offline mode with persistent outbox - InstaQL declarative query language - InstaML transactional write API - Built-in auth (magic codes, Google, Apple, GitHub, LinkedIn OAuth) - Declarative permissions (CEL-based) - File storage - Presence and broadcast - Data streams - End-to-end TypeScript type safety - Schema versioning and undo - CLI-first workflow - Multi-tenant architecture - Stripe payments integration - Admin SDK - Platform API - Daily backups (Pro and above) ## Integrations React, React Native, Next.js, Vanilla JS, SolidJS, Svelte, TanStack Start, Stripe, Google OAuth, Apple Sign In, GitHub OAuth, LinkedIn OAuth, Clerk, Firebase Auth, Postgres ## Platforms WEB, API, CLI, DEVELOPER_SDK ## Pricing Freemium — Free tier available with paid upgrades ## Links - Website: https://www.instantdb.com - Documentation: https://www.instantdb.com/docs - Repository: https://github.com/instantdb/instant - EveryDev.ai: https://www.everydev.ai/tools/instantdb