Skip to content

About

TempleOS online in your browser: powered by Holy Emulator (HEMU), an x86-64 emulator built in HolyC and WebAssembly.

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Repository files navigation

TempleOS-Web: TempleOS font, sword and scales

TempleOS-Web

TempleOS in your browser. Write HolyC, play games, and explore Terry A. Davis's operating system.

Open TempleOS →


Using the desktop

Click the screen to send keyboard and mouse input. Press Esc to release the mouse; use the Keys window to send Escape to a game.

  • Games opens the catalog. Run a game in the browser or inside TempleOS, or edit its source.
  • HolyC Editor lets you write, format and run HolyC.
  • Disk & Save imports files, exports C: or saves the whole running machine.
  • Restart returns to the stock desktop and preserves your saved C: drive.

C: changes save automatically in this browser's IndexedDB. Clearing site data removes them; export a disk image for a separate backup. Phones have touch controls and an on-screen key bar.

Desktop guide · Games and authors


How it works

The desktop runs the real TempleOS V5.03 kernel and HolyC compiler. HEMU resumes a prepared machine capture with the native desktop and Take Tour question already open.

HEMU's CPU and devices are written in HolyC and compiled to WebAssembly by HolyC-wasm. JavaScript connects the machine to browser workers, storage, sound and input. Games launched with Run in Browser compile directly to WASM; Run in TempleOS uses the emulated machine.

This resumes a captured desktop; it does not boot the DVD's BIOS loader. Compatibility and game checks have specific limits.

Runtime and loading · Game compatibility


Build and contribute

Use Node.js 22.19 or later. From a fresh checkout:

while read dir url sha; do git clone -q "$url" "$dir" && git -C "$dir" checkout -q "$sha"; done <Siblings.txt
while read dir url sha; do git clone -q "$url" "hemu/$dir" && git -C "hemu/$dir" checkout -q "$sha"; done <hemu/Siblings.txt
npm ci
npm run build
npm test
npm run serve

Open http://localhost:8080. The server sets the isolation headers needed by shared memory.

Build, hosting and repository layout · Report a bug or suggest a game


Self-host with Docker

On a Docker host, from a fresh checkout:

./gen-cert.sh              # self-signed certificate, ~100-year validity
docker compose up -d --build

Open https://<server>:49311/ — the browser warns that the certificate is self-signed. The Dockerfile clones the pinned sibling repos and runs the build (tests skipped), and Caddy serves the result over HTTPS on port 49311; change that port in docker-compose.yml to avoid clashing with other sites.


Credits and related projects

TempleOS, HolyC, the sword-and-scales artwork and the 8×8 system font were created by Terry A. Davis. TempleOS is public domain. The banner uses its font and artwork.

HEMU · HolyC-wasm · HolyC-fmt · HolyCraft power the machine, compiler, formatter and voxel game.

The archive transcriber and omarchy-templeos provide the searchable video archive and Linux theme. Archive transcriber · Linux theme

Full credits and third-party licenses

About

TempleOS online in your browser: powered by Holy Emulator (HEMU), an x86-64 emulator built in HolyC and WebAssembly.

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages