nowfound

Dev tools · August 22, 2024

IA

InstantDB – A Modern Firebase

Hey there HN! We’re Joe and Stopa, and today we’re open sourcing InstantDB, a client-side database that makes it easy to build real-time and collaborative apps like Notion and Figma. Building modern apps these days involves a lot of schleps. For a basic CRUD app you need to spin up servers, wire up endpoints, integrate auth, add permissions, and then marshal data from the backend to the frontend and back again. If you want to deliver a buttery smooth user experience, you’ll need to add optimistic updates and rollbacks. We do these steps over and over for every feature we build, which can…

In plain words

InstantDB is an open-source client-side database designed to simplify building real-time and collaborative applications. It eliminates common development tasks like server setup, authentication, permissions, and data synchronization between frontend and backend. The tool is built for developers creating modern apps that require smooth user experiences with optimistic updates. InstantDB targets developers seeking to reduce complexity in application development by handling database concerns directly on the client side.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

Hey there HN! We’re Joe and Stopa, and today we’re open sourcing InstantDB, a client-side database that makes it easy to build real-time and collaborative apps like Notion and Figma. Building modern apps these days involves a lot of schleps. For a basic CRUD app you need to spin up servers, wire up endpoints, integrate auth, add permissions, and then marshal data from the backend to the frontend and back again. If you want to deliver a buttery smooth user experience, you’ll need to add optimistic updates and rollbacks. We do these steps over and over for every feature we build, which can make it difficult to build delightful software. Could it be better? We were senior and staff engineers at Facebook and Airbnb and had been thinking about this problem for years. In 2021, Stopa wrote an essay talking about how these schleps are actually database problems in disguise [1]. In 2022, Stopa wrote another essay sketching out a solution with a Firebase-like database with support for relations [2]. In the last two years we got the backing of James Tamplin (CEO of Firebase), became a team of 5 engineers, pushed almost ~2k commits, and today became open source. Making a chat app in Instant is as simple as function Chat() { &#x2F;&#x2F; 1. Read const { isLoading, error, data } = useQuery({ messages: {}, }); &#x2F;&#x2F; 2. Write const addMessage = (message) => { transact(tx.messages[id()].update(message)); } &#x2F;&#x2F; 3. Render! return <UI data={data} onAdd={addMessage} &#x2F;> } Instant gives you a database you can subscribe to directly in the browser. You write relational queries in the shape of the data you want and we handle all the data fetching, permission checking, and offline caching. When you write transactions, optimistic updates and rollbacks are handled for you as well. Under the hood we save data to postgres as triples and wrote a datalog engine for fetching data [3]. We don’t expect you to write datalog queries so we wrote a graphql-like query language that doesn’t require any build step. Taking inspiration from Asana’s WorldStore and Figma’s LiveGraph, we tail postgres’ WAL to detect novelty and use last-write-win semantics to handle conflicts [4][5]. We also handle websocket connections and persist data to IndexDB on web and AsyncStorage for React Native, giving you multiplayer and offline mode for free. This is the kind of infrastructure Linear uses to power their sync and build better features faster [6]. Instant gives you this infrastructure so you can focus on what’s important: building a great UX for your users, and doing it quickly. We have auth, permissions, and a dashboard with a suite tools for you to explore and manage your data. We also support ephemeral capabilities like presence (e.g. sharing cursors) and broadcast (e.g. live reactions) [7][8]. We have a free hosted solution where we don’t pause projects, we don’t limit the number of active applications, and we have no restrictions for commercial use. We can do this because our architecture doesn’t require spinning up a separate servers for each app. When you’re ready to grow, we have paid plans that scale with you. And of course you can self host both the backend and the dashboard tools on your own. Give us a spin today at https:&#x2F;&#x2F;instantdb.com&#x2F;tutorial and see our code at https:&#x2F;&#x2F;github.com&#x2F;instantdb&#x2F;instant We love feedback :) [1] https:&#x2F;&#x2F;www.instantdb.com&#x2F;essays&#x2F;db_browser [2] https:&#x2F;&#x2F;www.instantdb.com&#x2F;essays&#x2F;next_firebase [3] https:&#x2F;&#x2F;www.instantdb.com&#x2F;essays&#x2F;datalogjs [4] https:&#x2F;&#x2F;asana.com&#x2F;inside-asana&#x2F;worldstore-distributed-cachin... [5] https:&#x2F;&#x2F;www.figma.com&#x2F;blog&#x2F;how-figmas-multiplayer-technology... [6] https:&#x2F;&#x2F;www.youtube.com&#x2F;live&#x2F;WxK11RsLqp4?t=2175s [7] https:&#x2F;&#x2F;www.joewords.com&#x2F;posts&#x2F;cursors [8] https:&#x2F;&#x2F;www.instantdb.com&#x2F;examples?#5-reactions

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

  • Track your AI visibility for free (using your own API keys!)

    Dev tools · 25d ago · lettertrace.com

Launched alongside, August 2024

the whole month →
  • Wordware9,866

    Your tool for building AI agents with natural language

    AI · 2024 · wordware.ai

  • IY

    Life & fun · 2024 · ytch.xyz

  • Me.bot1,628

    The inspiring companion for your life

    AI · 2024 · me.bot

  • Upmetrics AI1,197

    Business plan & financial forecast using AI

    Work · 2024 · upmetrics.co

  • Jupitrr AI1,196

    Auto-generate B-roll visuals for content marketing videos

    AI · 2024 · jupitrr.com

  • Can you make $1,000?

    Dev tools · 2024 · indiepa.ge