Hasty Briefsbeta

Bilingual

Show HN: A Unix environment in a single HTML file (420 KB)

6 days ago
  • #Client-Side
  • #Web Development
  • #Unix
  • A Unix environment encapsulated in a single HTML file, running entirely in the browser.
  • Includes shell, filesystem, git, npm, vi, and over 200 commands, with a size of ~420 KB gzipped.
  • No server required; operates offline with all functionalities running client-side.
  • Features a POSIX-like filesystem using IndexedDB, with commands like stat, readdir, readFile, etc., persisting across page reloads.
  • Supports real npm tarballs from the registry, JavaScript execution with node, and TypeScript bundling with esbuild.
  • Enables full git operations (init, add, commit, diff) client-side via isomorphic-git.
  • Allows for capturing the entire filesystem into a GIF for transfer between instances.
  • Supports scripting with pipes, redirects, variables, and other POSIX features.
  • Self-contained with all JS/CSS inlined, deployable on GitHub Pages, S3, or locally.