Building Agents & composable sync primitives @ElectricSQL. Sync Engines, Durable Streams & AI. Started PGlite.dev, co-creator of @tan_stack DB.

London UK
My overriding thought going into 2026: Problems you thought were out of reach no longer are. Pick a problem 100x harder than you thought possible to tackle alone, and run with it. Start now. AI will catch up and make it possible.
2
5
47
6,522
I'm absolutely blown away by the response to PGlite, 1k GitHub stars in under three days!
22
50
837
116,161
PGlite (WASM Postgres) now gets over 1 million downloads a week! 🤯🚀 Absolutely incredible to see how people have embraced what we have built. Awesome work by the team!
11
42
563
41,201
With PGlite + @ElectricSQL sync you can build an issue tracker handling 100k issues + 500k comments, synced from Postgres to PGlite in the browser! Super fast UI updates with all writes going though the local database, and Postgres FTS in PGlite for search 🔥
17
53
436
55,412
Perfect timing! We hit 5k stars on GitHub just as we launch the massing PGlite update 🚀🎉
6
37
387
24,770
Next time someone says Postgres doesn't scale... ChatGPT runs on Postgres with just a single master 🤯 There was a great talk at PGconf how they have scaled one of the larges apps in the word - link in 🧵.
7
30
392
34,188
Introducing PGlite - WASM Postgres running in the browser, Bun and Node! Working on this has been a lot of fun over the last few weeks. Unlike previous WASM Postgres projects this one isn't using a WASM Linux VM, it's pure Postgres 🥳
Hey @jarredsumner & @nikitabase, got it working! PGlite, WASM Postgres running in the browser, Bun and Node. Only 3.7mb gzipped. 🤯 In-memory or persisted to the filesystem with Bun/Node and IndexedDB in the browser. 🚀 github.com/electric-sql/pgli…
14
55
348
50,966
Just download them all... 2.6k cites in the US, ~78kb json (23kb gzip) in your CDN. Even all 19k "places" in the US is only ~150kb gziped. With proper cache headers this is in the browser cache next time.
Simple interaction: one select changes the options of a second with a remote data source How would you build it? How do you deal with race conditions?
10
2
317
45,172
PGlite, our Postgres in WASM project, has hit 1/2 million downloads a week! 🤯 We (@ElectricSQL) have a lot planned for (native... 😉) PGlite this year, exciting times ahead!
9
17
304
13,342
Exciting day, @ElectricSQL is now in Beta 🚀 Electric makes realtime replication between Postgres & *any* client side store possible! (And we've scaled it to 1 million connections 🤯) Here it is syncing 100k rows to a PGlite app:
15
31
247
17,909
New docs for the @tan_stack DB live query api 🚀 We completed a major refactor/rewrite of both the query builder and query engine a couple of weeks ago, and the docs are now live - link in 🧵 Live queries use IVM* to do the minimal work on each change.
11
15
232
26,294
We've just shipped query driven sync for @tan_stack DB! Huge lift to get here - this is the DX I dreamed of when I started working on sync. Define where data comes from (anywhere!) as collections, and then query over those collections in your components. 🪄🎉
🚀 TanStack DB 0.5 is here with Query-Driven Sync Your component's query IS the API call. No custom endpoints. No GraphQL resolvers. Just write your query and DB figures out exactly what to fetch. Details 🧵👇
14
13
238
31,756
How fast are live queries in @tan_stack DB? This query with two joins and over 100k rows executes in under 1ms for the initial run. Updating a row in the source collection is reflected in the results in just *10 microseconds*! 🚀
Live queries in @tan_stack DB are incremental - they are maintained, rather than re-run, when data changes. It does this with differential dataflow / DBSP. Usually this tech trades fast updates for a slower start. 🧵 on how we made *both* initial and update runs lightning fast!
6
16
217
35,011
PGlite now supports Postgres full text search 🥳 You can index and query your in-browser, or node, database with all the Postgres FTS tools in the just released PGlite v0.2.2 🚀
2
9
212
11,219
Announcing TanStack/DB 🎉🥳 A lightweight, reactive, mini-database with IVM that is perfect for both Sync and Fetch. It’s been a lot of fun to build this with @kylemathews, and collaborate with @tannerlinsley. We are incredibly excited for where this can go!
🚨 Big news! We’ve been collaborating with the legendary @tannerlinsley and the TanStack team to build something new: TanStack DB — a reactive, normalized, transactional state engine that extends TanStack Query.
3
11
204
13,397
PGlite is now based on Postgres 17 🎉🚀 v0.3, which we just released, is a big step forward for the project, and the foundation for a lot of exciting things coming soon!
3
13
191
8,462
What if psql had an \ai command? This is PGlite (WASM Postgres) and Llama3 (via WebLLM & WebGPU) running completely in the browser - no cloud, no server🤯 Local AI is coming sooner than you think!
7
34
189
21,660
What if PGlite could lazily load database files over HTTP with range requests? Now it can! 🤯 Demo: pglite-httpfs-demo.netlify.a… I've been working on the VFS API for PGlite (in-browser WASM Postgres from @ElectricSQL), and this is the first FS using it!
8
31
173
14,231
We've been working on Postgres to PGlite sync support for @ElectricSQL. Ready very soon! Here's a quick demo of a PGlite-powered Linear clone we built. Handles over 11k issues & 56k comments in the database without flinching, showing instant search on each key press!
3
25
170
17,228
Dev tools coming soon to @tan_stack DB! The best client side state libs have brilliant dev tools, this is even more important for DB as you store so much state in it. The DB dev tools will give you full visibility of all collections and live queries. 🚀🎉
6
17
156
28,083
I want something like a Cloudflare Durable Object, but with a filesystem api rather than a KV store or SQLite. As close to the metal as possible. A tiny, individually addressable, nano-server. Don't even need redundancy of disk, just use multiple instances.
9
8
156
17,779
Windowed live queries are coming to PGlite.dev! With them you can efficiently retrieve just the rows needed by connecting it to to a virtualised scrolling component, achieving single frame updates on reactive changes from the database 🚀
12
10
156
9,320
The future of the web platform is low level primaries, thin abstractions over hardware: WASM for the CPU WebGPU for the GPU OPFS for disk WebNN for NPUs People joke about Javas aim of "write once, run everywhere". We have that now with the web.
6
9
135
48,780
Yesterday @en_JS showed React Fir @reactjs conf - an experimental reactivity engine. The important take away was that it's fine-grained reactivity in *external stores* that will bring the next big step in UI performance. That's what @tan_stack DB brings 🧵
4
13
139
20,768
PGlite (embeddable WASM Postgres) has hit 10k weekly downloads on npm 🥳 Did you know it not just for the browser? It also works in @nodejs, @bunjavascript and @deno_land!
3
12
133
6,607
I had an idea... can we automatically infer parameter and return types from a raw SQL query 🤔 Yes we can using PGlite! 🤯 No ORM or query builder, just types generated straight from the SQL string. 🧵
9
5
129
14,035
Local-first is the real serverless. Your users device is the real edge.
6
17
119
11,253
This is solved by @tan_stack DB. Use any method to "sync" normalised relational data from the server and then query and project it on the client. We're just putting finishing touches to declarative query driven pluggable sync. Solves optimistic state too...
imho most React data libraries are fundamentally wrong abstractions because of REST. All data is stored in relational databases, but then somehow with REST we lose all that information, and we manually build up a similar but different graph on the client, making caching hard.
8
3
131
19,246
This is a great dive into building a local first app, & the journey @Theo took to choosing Dexie + MySQL. @ElectricSQL is perfect for syncing into Dexie from a Postgres backend 🐘 Being "protocol first" (http+json), you can use anything for the client store.
Picking the right database is...not easy. Especially if "local first" is something you want to build for. I'd know. I tried all of them. Just posted a video about my chaotic journey.
5
13
127
16,834
We have published an incredible new release of PGlite! - Extension support (pgvector!!) - Live queries - Sync - Awesome docs pglite.dev And I'm so excited to have worked with @supabase on postgres.new which is built on top of it 🚀🎉
PGlite, our in-browser WASM Postgres, now supports extensions including pgvector 🚀 This massive new release also includes a "live query" api, sync, an awesome new site, in-depth docs and even a REPL you can use in the browser 🎉 pglite.dev
4
12
108
16,410
Inspired by @simonw and #ziglang, you can now (alpha!) install @nodejs in a Python virtual environment with just: > pip install nodejs-bin You can even make it an optional requirement for a package, makes it super easy to install a full stack env! See: pypi.org/project/nodejs-bin/
9
27
106
My belief in "Postgres Everything" is why I'm building PGlite. The PG ecosystem is incredible, and PGlite is both the missing jigsaw price from it, and from app development. I have very high hopes for it.
A nice thing about using Postgres for everything is that I don't need to set up a bunch of services just to be able to run my dev environment. I can run Postgres and get a database, message queue, job queue, cache, vector store, and more. Even simpler, I can use PGLite to run an in-memory instance and call it a day.
3
6
107
8,642
A bunch of new followers here, so I thought I would introduce @ElectricSQL and how PGlite fits in. We are building a CDN native sync engine that can move your data in real time to where you need it. There are a few buzz words in there, so what do we mean? 🧵1/11
4
10
105
21,769
Thank me later
4
2
102
11,623
We're growing the PGlite (embedded Postgres) team @ElectricSQL, with a role co-sponsored by @supabase. If you're a generalist engineer, as much at home in Rust/C/C++ as you are in TypeScript, and love getting stuck into complex problems, come and apply! electric-sql.com/about/jobs/…
1
21
97
7,226
Replying to @steveruizok
"In accordance with the terms of the Termination Agreement, the Company will make a cash payment to Figma in the previously agreed amount of one billion dollars within three business days" 😲 sec.gov/ix?doc=/Archives/edg…
2
7
94
68,974
Really awesome video on @tan_stack DB from @jherr! 🚀🥳 (link in 🧵)
3
5
92
5,377
It's an exciting day for @electricsql - we've published v1 of our sync engine 🎉🚀 It's been a lot of work from an awesome team, that I'm so proud to be part of, to get here! The API is stable, and has been running at scale in production for a few months 🥳
Electric is now in GA! 🚀 Check out the 1.0 release post here: electric-sql.com/blog/2025/0… The APIs are stable and we're is ready for mission critical, production apps. Super excited to see what you build with Electric now it's hit 1.0!
4
7
95
5,335
Live queries in @tan_stack DB are incremental - they are maintained, rather than re-run, when data changes. It does this with differential dataflow / DBSP. Usually this tech trades fast updates for a slower start. 🧵 on how we made *both* initial and update runs lightning fast!
2
11
94
44,164
1k GitHub stars since yesterday 🤯 I could not have had more fun than working with @ggrdson from @supabase on the pglite.dev + postgres.new collaboration 🚀
6
89
4,961
PGlite (WASM Postgres) works in @ValDotTown by @stevekrouse, and with the new runtime can run and return a query in just *8ms* 🤯🏃 The work @mxmcd has put into optimising the performance of Val Town is incredible! Try it here: val.town/v/samwillis/pglite
1
9
91
6,217
Possibly cursed idea... if we have Postgres in the browser we could enable using JSX in a trigger to update the UI?
19
3
80
25,353
PGlite now has @vuejs hooks 🥳 Perfect in combination the live query plugin for building reactive UIs on top of you database 🚀
2
6
82
10,021
Use @tan_stack DB with its incrementally maintained live queries. The processing is proportional to the change size, not the complete dataset size, so very fast. Throw in a sync engine, and there's not polling/scheduling, it's just always up to date!
Building a mobile game for 10M players. You need a real-time leaderboard for the top 10k. Your SELECT * FROM scores ORDER BY score DESC LIMIT 10000 query runs thousands of times/sec with 1M concurrents. Your DB CPU hits 100%, and the game lags for everyone. How do you design a leaderboard that can handle this scale?
5
2
83
14,010
It’s been a lot of fun going deep into the Postgres codebase for this release. Swapped all I/O internally to the pg wire protocol, that unlocked parameterised queries. We also removed Asyncify by rebuilding the Postgres main loop = 2-3x speed boost & 1/3 off the binary size.
New release of PGlite - lightweight Postgres in WASM. • Parameterised queries 🎉 • pl/pgsql (first extension of many) • Support for Web Workers • Many bug fixes • Benchmarks • 2-3x faster & 1/3 smaller 🤯 github.com/electric-sql/pgli… More coming soon...
6
2
79
5,631
Incredibly excited that the @ElectricSQL team shipped Electric Cloud today! 🚀🎉 This enables you to use the Electric Sync Engine without having to commission any infrastructure. Just give it your Postgres URL and you are ready to sync!
📣 Electric Cloud is in public BETA! It takes just 30 seconds to add your Postgres db and start syncing to millions.
2
8
77
7,213
Introducing D2TS - a TypeScript implementation of Differential Dataflow I've been building🚀 Enabling incremental computation on change streams and streaming joins, both on the server and client. Perfect for use with the @ElectricSQL sync engine! 🧵
5
14
75
10,095
Awesome end to a very exciting week... @deno_land now has support for PGlite in the latest canary release 🚀🥳 Try it out with `deno upgrade --canary` Thanks to Nathan for making this happen!
1
7
70
3,527
PGlite is incredibly fast to start: - new in-memory db: ~500ms - opening a db from disk: ~120ms I wasn't to explore ways to fork an in-memory db for unit tests. Having a fresh DB for each test in <150ms is the initial target.
3
5
73
3,180
Why fetch when you can sync? Sync extends your reactive one-way dataflow all the way to the server. @ElectricSQL is a client agnostic sync engine that lets you integrate this architecture into any stack.
3
9
71
5,109
Very excited to have reached the Beta milestone with @tan_stack DB 🚀🎉 It’s been a privilege to work with @tannerlinsley and the team on building this, absolute rock stars!
TanStack DB is now in BETA! We’ve been working on TanStack DB, an embedded, reactive client database for TanStack Query, and are proud to announce today that with the 0.1 release that it's now in BETA!
2
2
71
2,552
Tanstack DB devtools will be joint this soon!
I've been invited by the wonderful @tan_stack team to help them build out framework-agnostic devtools not for only them, but for everyone! Here's a sneek peak of TanStack router, query, and @prisma embedded studio running in @tanstack/devtools
2
7
68
5,122
PGlite now has sync! Using @ElectricSQL you can have active-active sync from your central Postgres to an in-browser PGlite. Very excited to have this out, and can't wait to see what people build with it 🚀
PGlite now supports @ElectricSQL sync🎉 You can sync data into PGlite from any cloud Postgres, including @supabase, @neondatabase & @crunchydata. With partial replication you sync just the data you need into your web app, edge worker or dev environment. electric-sql.com/blog/2024/0…
5
64
4,248
PGlite on GitHub trending 🚀🎉 I've been so humbled by the response to our project. It's been a joy to see how excited everyone is about it!
1
1
67
1,593
I can't quite believe @duckdb, exact same query spanning three tables, on Postgres it takes 3 min 33 seconds. On DuckDB, 1.1 second!
2
5
66
7,975
If you're still unsure what @tan_stack DB is, it's a client side store like MobX. But it's also an embedded relational database with incrementally computed live queries. Plus it has 1st class optimistic mutations. And we just beginning 🚀
TanStack DB is now in BETA! We’ve been working on TanStack DB, an embedded, reactive client database for TanStack Query, and are proud to announce today that with the 0.1 release that it's now in BETA!
3
13
66
7,508
With this release you can now run PGlite (WASM Postgres) in @deno_land 🎉🚀 So excited to see what people build with PGlite and Deno 😁
Deno 1.46 is not only the last 1.x release, but also one of the biggest: - Simpler CLI - Multi-threaded web servers - HTML, CSS, YAML support in `deno fmt` - Better Node/npm compat (support for playwright, google-cloud, etc.) and much more 👇️ deno.com/blog/v1.46
7
59
5,090
Incremental view maintenance is seen as a black art. The tools available, such as differential dataflow, are complex, with a steep learning curve. I want to change that with D2TS! It has a simple pipeline api, with full type inference at every step 🚀
Introducing D2TS - a TypeScript implementation of Differential Dataflow I've been building🚀 Enabling incremental computation on change streams and streaming joins, both on the server and client. Perfect for use with the @ElectricSQL sync engine! 🧵
3
3
62
6,248
Really awesome example showing how to use PGlite, @ElectricSQL sync, @DrizzleORM, and @nextjs to build a local first app! 🚀🥳 Sync your Postgres in realtime to PGlite in the browser, with shared Drizzle migrations, all wrapped up with the Next framework.
🔌 Discovered Electric last week and decided to dive in! Ever wondered how to build a local-first app with seamless syncing between a backend Postgres DB and a @electricsql PGlite running in ur browser ? This is small example 👇 github.com/LeonAlvarez/Elect… #WebDev #LocalFirst
1
3
58
4,753
I'm quite intrigued by Remix 3 and the manual `.update()`... I think it's really compelling, it's opening the door to using *any* reactive datastore with Remix. The scope for innovation is high. Tying templating to reactivity may have been a mistake.
4
1
60
11,772
We're doing a Show HN, come ask your PGlite questions!
2
3
51
3,640
Realtime replication from a single Postgres server to *one million* clients? With consistent latency and flat memory usage? The @ElectricSQL sync engine can do that 🤯 This is it doing 960 writes/minute!
ElectricSQL is now in BETA! We're a Postgres sync engine. Check out our new 1 million clients benchmark and demos: electric-sql.com/blog/2024/1… Electric is ready to sync with companies like @triggerdotdev, @ottogrid_ai and @doorboost using us in production. If you haven't checked out Electric recently, it's a great time to take another look.
2
6
55
4,023
2024 is going to be the year local-first software goes mainstream. So pumped for what's coming, it's going to change the way so many of us build apps for the better. Happy new year! 🎉🚀
5
3
55
12,422
I've just published a new patch release of PGlite (v0.1.2) with contributions from @jfrAziz, pmooney and @_jgx_. Really awesome to see the community grow around PGlite!🚀🎉 We've also passed 4k stars 🤯 github.com/electric-sql/pgli…
4
4
52
4,064
It's so great to see other teams and companies embracing PGlite 🎉 We built it as a sync target for @ElectricSQL, but its use cases are so much wider than that 🚀 Open source for the win!
the @Firebase Data Connect emulator is using: ◆ pglite by @ElectricSQL ◆ pg-gateway by @supabase ... and this is awesome. This is 100% how open source should work. More collaboration helps everyone - many thanks to the Firebase team 🫡
3
53
3,086
I've been having fun building an @ElectricSQL demo using @Ionicframework and @capacitorjs. It's a truly great way to build apps - a single codebase for all platforms, and no backend. Electric is doing all the work of syncing devices! This is going to be a very popular stack.
5
15
53
10,439
I think more systems software should be written in TypeScript...
10
2
54
5,193
We have just published a new version of PGlite with an awesome addition from @msfstef: Tagged Template Queries 🚀🥳 Super simple query building using JS tagged template literals. Inspired by postgres.js🫶from @rporsager
My latest contribution to PGlite is templated queries - better, cleaner DX for simple (and not so simple) queries!
3
53
2,486
Light weight in-memory Postgres instances with PGlite are perfect for unit tests. We recently added a `.clone()` method to make it super easy for have a clean state for each test. Just setup the schema and fixtures once, then clone!
3
9
47
2,453
Incredible update from @supabase on database.build 🚀 Absolutely amazing what they are doing with PGlite, and a lovely team to collaborate with.
which AI model is the best at building a database? bring your own LLM, and find our yourself. new features from @supabase today 🧵↓
1
3
45
3,706
AI apps are inherently multi-user - an agent is just another user. I've built a demo showing how using a sync engine enables you to build awesome AI apps! Keeping your UI in sync with the tasks agents are doing is essential to creating great experiences.
4
6
46
4,238
The @ElectricSQL team have built a tone of demos over the last month or so 🚀 - Integrated with Next.js, Tanstack, Remix, Phoenix Liveview - Colaborative editing with Yjs - Auth and write patterns - Sync into Redis - and e2e Encryption All online to try!
New demos and technical examples electric-sql.com/demos
1
3
45
1,904
This is so cool, a full GUI for PGlite! 🤯🚀 @jfrAziz has done an incredible job. Check it out: pg.datawan.id Repo here: github.com/datawan-labs/pg
sekitar 6 bulan ini selalu dapet role di frontend. karena pingin balik ngoding di backend lagi + belajar query-query SQL lagi. gw buat dulu app nya dulu biar nyobain querynya gampang 😌. nih yang mau coba PostgreSQL Playground 100% jalan di Browser, ga pake server. React SPA
1
4
45
3,917
Really awesome demo by @thorwebdev of what's coming in the next version of PGlite 🎉 PGlite + pgvector + Transformers.js in the browser is an awesome local-ai stack 🚀 Local vector search, inference, and you could even do RAG fully in the browser.
Semantic Search 100% in-browser! 🤯 🤗 Generate embeddings with @huggingface's Transformers.js and @supabase / gte-small 🔍 Inner product calculation with #pgvector in @ElectricSQL's PGlite Demo & source code below 👇
2
9
45
5,312
So very happy to be taking this baton to run with. 🏃‍♂️ We have many exciting plans for PGlite 🚀 The future of WASM and lightweight embedded Postgres is bright!
Happy to pass on the baton 🏃‍♀️, the future is now! LFG @ElectricSQL and Stackframe! LGG OSS!
1
5
42
3,775
I have an issue, and that issue is creating databases that can be embed in webapps... 2024 🐘 PGlite 2025 🏝️ Tanstack DB 😬
1
2
45
4,028
I'm convinced that a sync engine is the answer here. Agents are just users of the same system, and a sync engine solves multi "actor" collaboration. You need to share state, and be notified of when that state changes. Perfect use case for sync.
has anyone actually solved streaming multi agent (nested agent in tool call) well?
4
2
44
3,050
Durable Objects are one of the most innovative things in web dev. Tiny nano-servers close to your users. Getting data into them just got a whole lot easer! Use @ElectricSQL to sync a subset of your Postgres to SQLite for mini read-replicas right at the edge.
Edge compute is great but what isn't great is compute with slow data reads. Sync is the solution I built a new demo with @ElectricSQL and Cloudflare's DO SQLite showing how Electric can do a < 20ms incremental sync into sqlite on every call to a DO. Edge Compute 🤝 Synced Data
3
42
3,232
I'm very excited for where @CanadaHonk is taking Porffor, his JS/TS to C/Native compiler. Cold start response time down from 322ms to just 33ms - 10x faster! And memory down from 74mb to just 14mb! Very very cool 🤯
My ahead-of-time JS engine Porffor eliminates JS cold starts on AWS Lambda. 12x faster and 2x cheaper than managed Node. Still very early but these results should speak for themselves :) Blog with details below.
3
1
43
2,775
I mention an idea for a Cloudflare Durable Object VFS built on top of the sync SQLite api they now have... and @janwilmake makes it real in under an hour! 🚀
1
3
42
4,357
Thinking of adding a tagged template literal query API to PGlite, what do you think?
9
43
1,880
What better way to spend a lazy Sunday than using ChatGPT make a plan for property testing the @tan_stack DB query engine - fast-check + SQLite as an oracle (inadvertent pun) - then asking a @cursor_ai background agent to implement it... All from my phone!
3
2
41
2,663
Incredible update from @supabase 🎉🚀 The live share feature is seriously cool, a TCP tunnel enabling you to psql to the PGlite running inside your browser! 🤯
Updates for postgres.new: ◆ we've renamed it database.build ◆ we've added "Live Share" Using Live Share, you can connect any Postgres Client to the pglite database in your browser. It's kinda wild:
3
38
2,266
Exciting that @ElectricSQL is the top trending @GitHub #Elixir @elixirlang repo! Really great having @josevalim as an advisor to the team!
11
37
9,989
PGlite REPL coming soon...
3
2
38
3,982
My colleague @balegas has created an awesome @ElectricSQL integration with @kevin_jahns awesome Yjs CRDT toolkit. Sync your edits to a Ydoc via Electric 🚀 Perfect for integration with ProseMirror or @tiptap_editor for collaborative rich text editing!
Build collaborative apps with CRDTs straight outta Postgres using the new Yjs Electric provider 🧵 npmjs.com/package/@electric-…
1
2
37
2,879
Seems we're talking dependencies... PGlite has zero dependancies! My strategy from the start was to be minimal, and that meant, no deps for users, and minimal deps in development. (Solving WASM bundling is enough of a challenge!)
1
39
1,783
The future of Local-first Software is protocols. Protocols are how we break the walls of silos to enable moving data, how to *sync* it. To do that we need engines that put the data onto the protocol, that's was @ElectricSQL is, a protocol-first sync engine.
3
2
36
2,039
To demo @ElectricSQL support for @supabase we've built a demo app showing a local-first checkout built on @supabase Postgres, Auth and Edge Functions for “processing” orders, and a UI created with @Ionicframework. electric-sql.com/docs/exampl…
2
8
37
2,635
This @DrizzleORM playground that @rphlmr is building with PGlite by @ElectricSQL on @stackblitz is incredible. So excited to try it out!! 🚀
Worked on <@DrizzleORM Play> today. I use @remix_run for this project and ended up with something that feels really smooth: non-blocking UI while the app is booting the playground. What you see here is a mix of clientLoader and useSyncExternalStore. clientLoader boots a @stackblitz WebContainer and stores it in the window object. Then it inits a Monaco editor with 1000+ models. useSyncExternalStore gives the playground editor a way to track this process and render a loading UI. And the code is just few lines. No useEffect, useState or context.
2
2
37
3,805
Replying to @bunjavascript
Bun should ignore "bun install drizzle-orm"
2
35
2,146
Very excited to see @prisma launch 'prisma dev'! Local Prisma Postgres development built on top of PGlite 🎉🚀 It's been a lot of fun to collaborate with the Prisma team on this!
Working with your database locally, while you're building, needs to be simple. 🙌 Prisma 6.8.0 just landed: ✅ Local Prisma Postgres (Early Access) ✅ VS Code Agent mode support ✅ Native Deno support ...& more 👉 pris.ly/6.8-blog?utm_source=…
1
4
35
1,645
Multiplayer and GenAI go so well together, it's all about collaboration with agents and other people. In effect the agent is just another user. To do that you need a sync engine. We recently built a demo of how you can do this with @ElectricSQL Link in 🧵
Lovable 2.0 is here. multiplayer vibe coding.
2
25
18
1,723
Replying to @rauchg
Backaged by PGlite, WASM Postgres in the browser! Working with @supabase to help build this has been a lot of fun🎉 pglite.dev
1
1
35
2,414
Background agents with @cursor_ai are a game changer for me - particularly the mobile UI. I can be out and about (literally on holiday 😬), describe what I'm thinking, check in a couple of times, then pick it up on a laptop later on when home. Amazing!
3
1
35
3,171
Another look an inferred types from PGlite queries. Types for your queries generated every time you hit save! This could be super interesting for AI code gen, feeding in additional context from an ephemeral database 🤔
I had an idea... can we automatically infer parameter and return types from a raw SQL query 🤔 Yes we can using PGlite! 🤯 No ORM or query builder, just types generated straight from the SQL string. 🧵
2
3
35
3,001
Replying to @tannerlinsley
Exactly, "use strict" was introduced as a hack to fix a bad design, and retired with ESM. We should let the pattern die, not keep it alive and extend it.
32
1,593
I'm at @sync_conf today, going to be an awesome event - incredible line up. If you want to chat @tan_stack DB, @ElectricSQL, or PGlite, come say hi!
1
32
1,535