docs: README with the episode branches, and the MIT license
src/
main.tsx the query client and the router
routes.tsx every route, in one place
index.css Tailwind, the design tokens, four small classes
lib/ no React here
api.ts request(), the session, ApiError, response types
stream.ts reads GET /live: a parser, and reconnects
toast.ts a tiny store for toasts
time.ts "3 hr. ago"
components/
Layout.tsx navigation, the right rail, the Live line
Settings.tsx theme and sign out
ui/ Avatar, Notice, More, Toasts
features/
auth/ welcome, sign up, sign in
feed/ home, composer, posts and likes
profile/ profile, follow, who to follow
notifications/ the list and the unread count
live/ the stream, turned into cache updates
/api/…. Vite's dev server and, in
production, nginx (deploy/nginx.conf, port 8088) pass it to the
API. No CORS, and the API's own port 8080 stays as it was.fetch, not EventSource, because EventSource
can't send the bearer token. lib/stream.ts parses the events,
waits 1, 2, 4… up to 30 s after a break (or what Retry-After
says), and sends Last-Event-ID to get what it missed.Retry-After twice, saying so
quietly; after that the screen shows the error.dark:. Colours are theme variables; dark mode
gives them other values. Components use bg-paper, text-mute…index.css (.btn,
.field, .bar); anything bigger is a component, as Tailwind's
docs suggest.Avatar draws a pattern from the
handle. The font is Inter, bundled by Fontsource.