endoftime.works: a small desktop OS in the browser ("EndOS"). A real terminal, windowed apps (about, projects, music), a cute little parkour game, and a link out to the separate blog.
- React 19
- Vite
- TypeScript
- Zustand (window manager state)
src/os/- desktop shell: window manager (wm.ts), windows, taskbar, boot screensrc/os/apps/- terminal, about, projects, musicsrc/os/terminal/- virtual filesystem and command tablesrc/os/data.ts- GitHub / Last.fm / blog index loaders (browser-side, cached)src/games/fox-parkour/- the game overlay (sim.tsis pure and unit-tested)
/projects, /about, /music open the matching window on load. ?skipBoot=true
skips the boot screen.
The terminal's blog command reads https://blog.endoftime.works/posts.json, so
that origin must allow CORS from https://endoftime.works.
Copy .env.example to .env and fill in what you need.
All variables are read in the browser at build time:
VITE_LASTFM_API_KEYVITE_LASTFM_USERNAMEVITE_GITHUB_USERNAME
Install dependencies:
pnpm installRun the dev server:
pnpm devRun checks:
pnpm type-check
pnpm lint
pnpm build- The nginx deployment can serve
dist/as plain static files. - There is no backend. Last.fm and GitHub are called from the browser, so the Last.fm key ends up in the public bundle (it only reads public listening data).