WeSearch

A Trillion Characters

·2 min read · 0 reactions · 0 comments · 5 views
#technology#collaboration#web development
⚡ TL;DR · AI summary

The 'Trillion Characters' project is a real-time collaborative writing tool built using the Datastar framework. It operates by streaming updates from the server to the client, allowing multiple users to type simultaneously while maintaining performance. The architecture focuses on efficient data handling and compression, making it a lightweight yet powerful solution for collaborative applications.

Key facts
Original article
Fastserial
Read full at Fastserial →
Opening excerpt (first ~120 words) tap to expand

'Trillion Characters' is a realtime collaborative experiment built with Datastar. Click anywhere on the canvas to place your cursor and start typing. You can see other people's cursors typing as well. This page uses no clientside JavaScript except for Datastar & Datastar attributes. Datastar is a lightweight JavaScript framework (11kB) with a completely radical architecture: Compared to other JS frameworks (e.g. React, Vue, Svelte), Datastar eliminates state and logic on the client-side. Instead, all interactive logic is moved to the backend. Page updates are streamed to the client as server-rendered templates over a persistent SSE stream. This is a bit like streaming a movie, except the movie is HTML and you receive new content from updates and UI interactions.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Fastserial.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Fastserial