Hasty Briefsbeta

Bilingual

Instant 1.0, a backend for AI-coded apps

7 hours ago
  • #Backend Architecture
  • #Real-time Applications
  • #Multi-tenant Database
  • Instant is an open-source backend designed for AI-coded apps, enabling the creation of full-stack applications with unlimited apps that never freeze.
  • It provides a sync engine for real-time, offline-capable applications with optimistic updates, similar to modern apps like Linear, Notion, and Figma.
  • Additional built-in services include authentication, file storage, presence, and streams, all integrated into a single system to avoid multiple sources of truth.
  • The architecture features a Client SDK with a Triple store and Datalog engine for offline querying, a Clojure backend for reactive queries and multi-tenancy, and a multi-tenant Postgres database using a triples table for scalability.
  • Multi-tenancy allows efficient app creation with minimal overhead, using app_id to logically separate data in a single database table, optimizing resource usage.
  • The system leverages Clojure and the JVM for concurrency and library support, and includes a query engine that translates InstaQL queries into efficient SQL with the help of count-min sketches for statistics.