Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

2 years, YC, 5 team members, and 2000 commits later: Instant is now open source!

365,598 Aufrufe • vor 2 Jahren •via X (Twitter)

11 Kommentare

Profilbild von Stopa
Stopavor 2 Jahren

Instant is modern Firebase [1]. You write relational queries in the shape of the data you want and Instant handles all the data fetching, permission checking, and offline caching. Here's the code: [1] @JamesTamplin backs us

Profilbild von Stopa
Stopavor 2 Jahren

We also support ephemeral updates, like cursors, or who's online, and ship with four SDKs: Javascript, React, React Native, and Node. How does it look? Here's a barebones chat app in about 10 lines:

Profilbild von Stopa
Stopavor 2 Jahren

We built Instant because writing web apps today is full of schleps. Just basic CRUD: models, endpoints, stores, and optimistic updates. Try multiplayer, and you get stateful servers. Support offline mode, and you think about IndexedDB. It doesn't have to be like this

Profilbild von Stopa
Stopavor 2 Jahren

In 2021, we realized that these schleps are actually database problems problems in disguise! If you had a database on the client, you wouldn't need to think about stores, selectors, endpoints, or local caches: just write queries. If these queries were multiplayer by default, you wouldn't have to worry about stateful servers. And if your database supported rollback, you'd get optimistic updates for free.

Profilbild von Stopa
Stopavor 2 Jahren

So we built Instant. Instant gives you a database you can use in the client, so you can focus on what’s important: building a great UX for your users, and doing it quickly.

Profilbild von Stopa
Stopavor 2 Jahren

How does it all work? At a high level, we're a relational sync engine. Our architecture is inspired by Asana's Luna, Figma's LiveGraph, and Datomic. More details on the github:

Profilbild von Stopa
Stopavor 2 Jahren

Under the hood, we store all user data as triples in one big Postgres database. A multi-tenant setup lets us offer a free tier that never pauses.

Profilbild von Stopa
Stopavor 2 Jahren

Want to get started? We built a pretty cool demo for you: you can try Instant without even signing up! Check it out:

Profilbild von Samuel (not Sam) Stroschein
Samuel (not Sam) Stroscheinvor 2 Jahren

> If you had a database on the client, you wouldn't need to think about stores, selectors, endpoints, or local caches: just write queries. How does instant differ from running sqlite or pglite on your client with a sync engine like electricsql?

Profilbild von Jarred Sumner
Jarred Sumnervor 2 Jahren

congrats!

Profilbild von Stopa
Stopavor 2 Jahren

Thank you Jarred! We're big fans of bun; I love seeing how fast you guys ship.

Ähnliche Videos