🧵 I built a real-time AI interview app using Cloudflare Durable Objects, Workers AI, and Partykit.
It streams LLM responses, keeps per-user state in SQLite, and handles WebSocket auth + rate limits — all on the edge.
https://t.co/G8Pew9NHDH
Here’s how it works 👇
Btw, this time, I don't feel like to leave the agent as co author of the commits. When you are just a tool, I'm thankful for the help, but no way the commit of my ideas, design, attempts is going to be shared ;D
Say goodbye to stitching together multiple point solutions and WebRTC headaches when building realtime applications.
RealtimeKit SDK is a complete cross-platfrom toolkit to handle all the low-level complexities of building immersive video and audio experiences.
https://t.co/svN5rduWkH
7/ Blog post here 👉 https://t.co/WCzMqPvCp7
How to Handle SQLite Migrations in Durable Objects
Includes full code, patterns, scaling thoughts, and bonus gifs.
Enjoy! ⚡
1/ Every Durable Object in Cloudflare has its own SQLite database.
Which means... if your schema changes, you can't just run a global migration.
You need per-object migrations — safely, atomically, and with retries.
Here’s how I solved it 👇
6/ Need to rehydrate a Durable Object from R2?
Just run the same migrations before restoring state.
Want to mirror metadata into a global table in D1?
Yep — you can do that too.
🧵 I built a real-time AI interview app using Cloudflare Durable Objects, Workers AI, and Partykit.
It streams LLM responses, keeps per-user state in SQLite, and handles WebSocket auth + rate limits — all on the edge.
https://t.co/G8Pew9NHDH
Here’s how it works 👇
@ViktorBunin After the pain goes away a bit. reverse hyper 3 times a week and foundation training everyday is what fixed mine.
Reverse hyper is worth every penny and more.
https://t.co/iUTNUVaZ9e
https://t.co/zC4MAKewit
@isnit0 Yeah - it's pretty popular design format, I guess. I remember seeing the hard shadow on an ad from https://t.co/uoZv9NADph
For this, I started off from this screenshot and iterated on v0 from there.
@jcurtis same idea on the server, where you'll want to route to the correct durable object, etc..
These are things you'll eventually do in a bespoke way
@jcurtis partykit here is used for things you'll eventually end up building yourself.
On the client side, you'll need a way to properly handle socket connections, reconnect, routing, message etc..
@naumenko_roman They have some stuff with cloudflare zero trust.
This was a part that I just wanted to get out of the way.
Was more concerned with the socket, durable object + ai integration.