Instant 1.0, a backend for AI-coded apps

(instantdb.com)

73 points | by stopachka 6 hours ago

18 comments

  • zbiggistardust 1 minute ago
    What's the difference between Instant and Convex?
  • storus 1 hour ago
    An honest question - why would we need any frameworks at all for vibe coded apps? I can just tell the coding agent to use pure HTML5/Vanilla JS/CSS on the frontend and pure whatever on the backend and it would do it. No need for hundreds/thousands dependencies. For deployment I can ask the coding agent to do the same.
    • stopachka 1 hour ago
      A few reasons:

      1. Unlimited projects: when you spin up traditional backends, you usually use VMs. It's expensive to start many of them. With Instant, you create unlimited projects

      2. User experience: traditional CRUD apps work, but they don't feel delightful. I you want to support features like multiplayer, offline mode, or optimistic updates, you'll have to write a lot more custom infra. Instant gives you these out of the box, and the agents find it easier to write than CRUD code

      3. Richer features: sometimes you'll want to add more than just a backend. For example, maybe you want to store files, or share cursors, or stream tokens across machines. These often need more bespoke systems (S3, Redis, etc). Instant already comes with these out of the box, and the agents know how to use them.

      There are a few demo sections in the post that show this off. For example, you can click button and you'll get a backend, without needing to sign up. And in about 25 lines of code, you'll make a real-time todo app.

  • pugio 33 minutes ago
    Thanks, this might be exactly what I'm looking for.

    I see you have support for vanilla js and svelte, but it's unclear whether you can get all the same functionality if you don't use React. Is React the only first class citizen in this stack?

    • stopachka 24 minutes ago
      Thank you.

      > Is React the only first class citizen in this stack?

      Each system gets the same functionality. We centralize the critical logic for the client SDK in "@instantdb/core". React, Svelte, Tanstack, React Native et al are wrappers around that core library.

      The one place where it's lacking a bit is the docs. We have specific docs for each library, but a lot of other examples assume React.

      We are improving this as we speak. For now, the assumption on React is quite light in the docs, so it's relatively straightforward to figure out what needs to happen for the library of your choice.

  • ghm2199 1 hour ago
    One thing I have always wanted to do is cancel an AI Agent executing remotely that I kicked off as it streamed its part by part response(part could words, list of urls or whatever you want the FE to display). A good example is web-researcher agent that searches and fetches web pages remotely and sends it back to the local sub-agent to summarize the results. This is something claude-code in the terminal does not quite provide. In Instant would this be trivial to build?

    Here is how I built it in a WUI: I sent SSE events from Server -> Client streaming web-search progress, but then the client could update a `x` box on "parent" widget using the `id` from a SSE event using a simple REST call. The `id` could belong to parent web-search or to certain URLs which are being fetched. And then whatever is yielding your SSE lines would check the db would cancel the send(assuming it had not sent all the words already).

    • stopachka 1 hour ago
      If I understood you correctly:

      You kick off an agent. It reports work back to the user. The user can click cancel, and the agent gets terminated.

      You are right, this kind of UX comes very naturally with Instant. If an agent writes data to Instant, it will show up right away to the user. If the user clicks an `X` button, it will propagate to the agent.

      The basic sync engine would handle a lot of the complexity here. If the data streaming gets more complicated, you may want to use Instant streams. For example, if you want to convey updates character by character, you can use Instant streams as an included service, which does this extremely efficiently.

      More about the sync engine: https://www.instantdb.com/product/sync More about streams: https://www.instantdb.com/docs/streams

  • nharada 2 hours ago
    This is super cool and exactly what I've been looking for for personal projects I think. I wanna try it out, but the "agent" part could be more seamless. How does my coding agent know how to work this thing?

    I'd suggest including a skill for this, or if there's already one linking to it on the blog!

  • asdev 2 hours ago
    I wonder if people really need this. How many people are really building multiplayer apps like Figma, Linear etc? I'm guessing 99% are CRUD and I doubt that will change. Even if so, would you want to vendor lock into some proprietary technology rather than build with tried and tested open source components?
    • stopachka 2 hours ago
      > really building multiplayer apps like Figma, Linear

      I think there's two surprises about this:

      1. If it was easier to make apps multiplayer, I bet more apps would be. For example, I don't see why Linear has to be multiplayer, but other CRUD apps don't.

      2. When the abstraction is right, building apps with sync engines is easier than building traditional CRUD apps. The Linear team mentioned this themselves here: https://x.com/artman/status/1558081796914483201

    • nezaj 2 hours ago
      For what it's worth, Instant is 100% open source!

      https://github.com/instantdb/instant

    • risyachka 1 hour ago
      Yeah I kinda agree. Considering llms write most of the code today, the need for fancy tech is lower than ever. A good old crud app looks like a perfect fit for ai - its simple, repetitive and ai is great at sql. Go binary for backend and react for frontend - covers 99.9% use cases with basically zero resource usage. 5 usd node will handle 100k mau without breaking a sweat.
      • stopachka 1 hour ago
        > 5 usd node will handle 100k mau without breaking a sweat.

        One problem you may encounter with the 5 usd node: how do you handle multiple projects? You could put them all in one VM, but that set up can get esoteric, and as you look for more isolation, the processes won't fit on such a small machine.

        With Instant, you can make unlimited projects. Your app also gets a sync engine, which is both good for your users, and at least in our experiments, the AIs prefer building with it.

        And if you ever want to get off Instant, the whole system is open source.

        I still resonate with a good Hetzner box though, and it can make sense to self-host or to use more tried-and-true tech.

        For what it's worth, with Instant you would get a lot more support for easy projects. At least in our benchmarks, AI

  • ghm2199 2 hours ago
    For people like me — who are kind of familiar with how react/jetpack compose/flutter like frameworks work — I recall using react-widget/composables which seamlessly update when these register to receive updates to the underlying datamodel. The persistence boundary in these apps was the app/device where it was running. The datamodel was local. You still had to worry about making the data updates to servers and back to get to other devices/apps.

    Instant crosses that persistence boundary, your app can propagate updates to any one who has subscribed to the abstract datastore — which is on a server somewhere, so you the engineer don't have to write that code. Right?

    But how is this different/better than things like, i wanna say, vercel/nextjs or the like that host similar infra?

    • stopachka 2 hours ago
      I would say NextJS focuses a lot more on server-rendering. If you use the app router, the default path is to render as much as you can on the server.

      This can work great, but you lose some benefits: your pages won't work offline, they won't be real-time, and if you make changes, you'll have to wait for the server to acknowledge them.

      Instant pushes handles more of the work on the frontend. You make queries directly in your frontend, and Instant handles all the offline caching, the real-time, and the optimistic updates.

      You can have the best of both worlds though. We have an experimental SSR package, which to our knowledge is the first to combine _both_ SSR and real-time. The way it works:

      1. Next SSRs the page

      2. But when it loads, Instant picks it up and makes every query reactive.

      More details here: https://www.instantdb.com/docs/next-ssr

  • jamest 2 hours ago
    They actually deliver on the promise of "relational queries && real-time," which is no small feat.

    Though, their console feels like it didn't get the love that the rest of the infra / website did.

    Congrats on the 1.0 launch! I'm excited to keep building with Instant.

    • stopachka 2 hours ago
      Thank you! We spent a lot of time with the demos on the home page, the essays page, and upgrading the docs.

      We're going to redesign the dashboard in the next few weeks.

      One interesting observation from our users: though they use the dashboard less in some ways (the AI agents spin up apps and make schema changes for them), we found people use them _more_ in other ways. Instant comes with an Explorer component, which lets you query your data. We found users want to engage with that a lot more.

  • truetraveller 8 minutes ago
    Moose here, congrats! This is the real "firebase alternative", not Supabase. Supabase is good, but it's just hosted Postgres + user login. People who are asking "why would I need this" don't get how difficult scalable data storage is with user permissions. Would absolutely recommend this if it's good. Been in this space for ~7 years, and made a high-perf realtime DB as well. Will contact you guys directly. Some concerns for everyone's benefit:

    1) Transparency on pricing: This builds confidence. Need to know exactly what I pay for additional egress/ops (read/write). "unlimited" is not sustainable for the provider (you). For example, Firestore has detailed pricing that makes scaling sustainable for them. see https://cloud.google.com/firestore/pricing.

    2) Transparency on limits: Req/s, max atrributes, max value length, etc. What about querying non-local non-indexed data (e.g. via server-side call), that's costly for you guys. So, what's the limit?

    3) Simpler code in the docs/examples overall. Currently, they're not bad, but not great. For example, change the "i" used everywhere to "inst" or "idb". Assume dev is a noob!

    4) Change simplify/terminology used. This is probably the most important, but hardest thing. Internally, keep the same triple structure. But dev just cares about tables/key/val. Or tables+rows. Namespaces/entities are confusing. Also, be consistent/clear. For example: "Namespaces are equivalent to "tables" in relational databases"..Perhaps you meant "namespaces are just a list of tables/entities"..slighly different, but far clearer I think? "Attributes are properties associated with namespaces"...I though attributes are associated with entities? Please keep in mind, I am completely new to InstantDB, so need to study the architecture more.

    5) Simplify docs BIG TIME. And add an API REFERENCE (super important). Right now, you have: Tutorials, Examples, Recipes, Docs, Essays. These are all essentially "docs".

    6) Simplify the "About" section. Should be 1/10th the size. Right now, it's like a fruit salad of docs, and re-iterating the features/benefits. Instead, put pics of both founders. Maybe investor list. Pics of your office?

  • jvalencia 1 hour ago
    How does security and isolation work? If someone else's account is compromised, how do I know I won't be? If instant is compromised, how do I know I won't be?
    • stopachka 1 hour ago
      If someone else's account is compromised, you would not be, because apps are logically separated. There would be no way for the compromised or uncompromised account to ever see your data.

      If Instant is compromised, then that's a lot more dangerous. We minimize this risk following security best practices: keeping data encrypted at rest, keeping secrets hashed at creation time, etc.

  • chrysoprace 2 hours ago
    Is InstantDB no longer about local-first or is the AI angle just a marketing thing?
    • nezaj 2 hours ago
      We built Instant to optimize for two things:

      We wanted to make a tool that (a) would make it easy to build delightful apps, and that (b) builders would find easy to use.

      This got us into making things that touch both local-first and AI.

      On the local-first side, we took on problems like offline-mode, real-time, and optimisitc updates.

      On the AI side, we built a multi-tenant abstraction, so you can spin up as many apps as you like, and focused on great DX/AX so agents found Instant easy to use too.

    • dghlsakjg 2 hours ago
      This looks like a blog post highlighting that this can be used for vibecoded apps, not necessarily a pivot on the product.
  • singpolyma3 56 minutes ago
    Seems like a supabase competitor?
    • stopachka 54 minutes ago
      That's a fair statement! I would say we are similar to supabase in that we offer a relational backend. We are different in two ways:

      1. Supabase runs on VMs, so only supports 2 free projects. We built the backend to be multi-tenant, so we can give you unlimited free projects.

      2. Supabase doesn't support offline mode or optimistic updates. Instant gives you a sync engine which does.

  • shay_ker 1 hour ago
    with a huge multi-tenant database, how do you deal with noisy neighbors? indexes are surely necessary, which impose a non-trivial cost at scale.
    • stopachka 1 hour ago
      One data structure that helps a lot is the grouped queue.

      I cover it in the essay here:

      https://www.instantdb.com/essays/architecture#:~:text=is%20t...

      To summarize:

      In places where we process throughput, we generally stick a grouped queue and a threadpool that takes from it. The mechanics for this queue make it so that if there's one noisy neighbor, it can't hog all the threads.

      There's more too (runbooks, rate limiting systems, buffers, isolated instances), but I thought this particular data structure was really fun to share.

  • ladon86 2 hours ago
    Looks very nice! I'll give it a spin for prototypes.

    Would love to check out /docs but it's currently a 404.

    • nezaj 2 hours ago
      Docs should be working now! If anyone else has issues please let us know!
  • minantom 2 hours ago
    how is this better than vercel?
  • rylan-talerico 1 hour ago
    congrats!
  • sanghyunp 31 minutes ago
    [dead]
  • tayk47999 24 minutes ago
    [dead]