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

sorenbs1 pts0 comments

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.

chat durable streams from tanstack uses

Related Articles