Skip to content

Show HN: AI Chat App on Durable Streams and Tanstack DB

oss.chat
2 pointssorenbsdiscuss
On HN

I built an AI chat app that uses Durable Streams from ElectricSQL as both the storage format and transport medium. It has the very nice property that tokens are stored durably as they are steamed back from the LLM provider, and then streamed to the frontend for a smooth user experience.

The frontend uses Tanstack DBs differential dataflow implementation to tie together meta data from Postgres with the chat streams in the Durable Stream.

Made a detailed explainer of all the components.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.