Skip to content
Search

Fireproof

lastmod 2025-03-31created 2025-03-311 edits

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.

Lightweight embedded DB for the browser

Features

  • A lightweight embedded document database designed for easy use in browser environments
    • Provides encrypted real-time sync
  • Works with a consistent API not only in frontend frameworks like React but also in various JavaScript runtime environments
  • Bundles UI, data, and logic into a single file, with no constraints on deployment or runtime environment
    • Written in TypeScript; usable in Deno, Bun, Node.js, and the browser
  • Real-time and offline-first: supports auto-save and live queries
  • React Hooks support: build live collaboration interfaces with the useLiveQuery and useDocument hooks
  • Git-style version control
    • Guarantees cryptography-based causal consistency using hash history
    • Data is stored and replicated as content-addressed encrypted blobs
    • Can sync via object storage (S3, etc.)
  • Advantages of Fireproof over existing embedded databases
    • Network-aware, encrypted sync, multi-writer safety guaranteed
    • CRDT-based design for real-time collaboration
    • Provides cryptographic causal integrity
    • Web-first design: small package size, no WebAssembly required
  • Use Case
    • AI-generated apps and rapid prototypes
    • Real-time collaborative editors
    • Offline/local-first apps
    • Personalized settings storage
    • Secure state storage for AI copilots
  • Development approach
    • Build the app locally first, then sync through the cloud of your choice later
    • Complements LLM-based code generation environments
    • An optimal data storage solution for fast development cycles

See also

Favorite site

author Zer0 sitemap