Fireproof Logo

Realtime database

Runs anywhere

Open-source embedded JavaScript database for web applications

Build features faster

  • > npm install use-fireproof
  • Sync live data between your UI and your backend
  • Multi-writer replication using cryptographic CRDTs
  • Start building in the browser, deploy anywhere
Architecture with Fireproof running on web servers, edge functions, and user devices

Data anywhere your app runs

Fireproof is an embedded database for collaborative applications. Install it in your front-end app, or use it in any serverless cloud or edge function. Fireproof’s document API includes live updates, flexible queries, binary attachments, encrypted block replication, and multi-user sync. Fireproof enables developers to ship interactive features faster in any deployment environment.

Deploy your app however you like. Install the Fireproof module into your browser or server app code and sync using remixable open-source adapters. Experience live updates across peers so everyone can collaborate together, with any backend. Render dynamic HTML and interact with APIs from the edge. Connect with the community to add support for more backends.

Write features first

Add collaborative data to your existing app, or use our starter kits and examples as jumping off points for your next creation. Write features before you choose a backend, so you can prototype in a sandbox and deploy to any cloud.

ChatGPT Expert Builder

Works with any framework or runtime

From web browsers and desktop apps, to servers runtimes like Node, Deno, or Bun, Fireproof makes it easy to build interactive features that run across multiple frameworks and runtimes.

Install the package:

npm install use-fireproof

Or link directly to the browser build:

<script src="https://cdn.jsdelivr.net/npm/@fireproof/core/dist/browser/fireproof.iife.js"></script>

Read the JavaScript API introduction.

ChatGPT Expert Builder

Build a working app in moments

We've trained ChatGPT to scaffold new apps. Just describe the functionality you are looking for and ChatGPT will generate a new app for you to build upon.

Pick your expert builder:

Take rapid-prototyping to the next level with ChatGPT.

React TypeScript Vite Starter Kit

Live query hooks simplify collaboration

Just update your data, and your UI will render automatically. No need to write any code to listen for changes.

Jump into the React tutorial or try the TypeScript starter kit. See the PartyKit and IPFS examples below for more React inspiration.

HTMX Example

Server side render at the edge with HTMX and Bun

This HTMX app is designed to run on in edge functions, show how you can interact with Fireproof data anywhere.

Build your own app starting from the HTMX and Bun example.

Connect to any cloud

Fireproof uses encrypted, immutable, self-verifying storage, so it works with nearly any backend you can imagine. Build your app first, and then choose where to deploy it. Fireproof empowers app devs to ship anywhere.

PartyKit Screenshot

Real-time group collaboration

PartyKit is optimized for high-performance and offers real-time sharing capabilities through websockets and CloudFlare workers.

Adding Fireproof to your PartyKit setup is straightforward. It requires only a single line of configuration and operates in its own room. This means you can easily integrate it with existing PartyKit applications.

First, install the Fireproof PartyKit connector:

npm install @fireproof/partykit

Second, configure the Fireproof party in your app's `partykit.json`:

{
  "name": "MY_APP_NAME",
  "main": "src/partykit/server.ts",
  "parties": {
    "fireproof": "node_modules/@fireproof/partykit/src/server.ts"
  }
}

Now when you launch or deploy your PartyKit app, it will automatically include the Fireproof functionality in a dedicated party.

npx partykit dev

Finally, connect the database to your PartyKit server in the front-end code:

import { fireproof } from 'use-fireproof'
import { connect } from '@fireproof/partykit'
const database = fireproof('poetry-party')
connect.partykit(database, process.env.NEXT_PUBLIC_PARTYKIT_HOST)

That's it! Your Fireproof database will sync across all your PartyKit users. Check out the magnetic poetry app's code and jump to the Fireproof PartyKit connector docs to learn more.

IPFS Logo

Save money with user-owned data

Fireproof's encrypted immutable data model works with IPFS so you can archive Fireproof snapshots alongside Filecoin data, and use the latest web3.storage APIs to store updates. User-owned storage accounts mean your app can go viral without costing you anything.

Check out the IPFS connector docs and try out a photo upload demo. Watch the video demo to see how it works.

Open Source Examples

Fireproof is open source, licensed under the Apache 2.0 and MIT licenses. The source code and development roadmap are managed in public on GitHub, and we welcome contributors no matter how technical.

The applications linked below are designed to inspire, and to be starting points for your own projects. Each has a running deployment, videos demos, code on GitHub, etc. Learn, fork, and go.

Photo Gallery screenshot

LLM Notebooks and Workflows

The next generation of AI and machine learning is local-first, with local dashboards and workflows connecting to powerful LLM APIs. Fireproof LLM examples include Auto Steps to the Epiphany, a generative AI workflow for customer development, the smart book project for local retreival augmented generation, and more.


Photo Gallery screenshot

Content Management

Organize and publish files to the web with Fireproof. Encrypted, local-first data, with write-access to the web. Check out the photo gallery example to see how it publishes content directly to the web. Watch the video demo to see how it works.


Starter Kit screenshot

Custom Business Software

Fireproof is designed for collaborative business software. Base your next project on Fireproof and you'll have a custom app that works offline, syncs with the cloud, and runs in the browser.

Deploy on your existing stack, whether it's AWS, Vercel, Netlify, or your own servers. Fireproof's securely integrates with your existing authentication and authorization systems. Try the TypeScript starter kit to get started.


Generative AI screenshot

Local-First Generative AI

Local first generative AI is the next generation of machine learning. Fireproof is a great fit for local applications that can easily add group sharing and collaboration.

Check out the WebGPU Stable Diffusion UI we're working on.