A complete userspace operating environment written in pure JavaScript. Real shell, real filesystem, real packages, real networking — and a pure-JS x86-64 Linux emulator that runs actual Ubuntu binaries. No VM. No kernel. No Alpine. Just JavaScript.
Everything below is implemented in JavaScript and persisted to ~/.jos/
Tokenizer, parser, pipelines, redirects, &&/||, aliases, history, tab-completion, background jobs — a genuine readline shell, not a prompt printer.
Persistent VFS with rwx permissions, ownership, symlinks, fsck, and host-directory mounts. Everything survives restarts.
JPKG installs real packages with semver dependency resolution, sha256 integrity checks, and an --allow-scripts trust gate.
apt/dpkg front-ends over JPKG, Ubuntu 24.04 persona, /etc/os-release, host passthrough for git, python3, ssh.
systemd-style units with dependencies, autostart, systemctl, and a real cron scheduler that executes entries on a ticker.
An ELF loader, a BigInt-register x86-64 CPU interpreter, and a Linux syscall layer backed by the JOS rootfs. Runs real Ubuntu binaries — no kernel, no VM.
One Node process. Every layer is a real subsystem, not a stub.
jos → bin/jos.js → Bootloader (staged init, banner, services) → Kernel → syscall() dispatch, cron ticker, shutdown → Shell (parser + readline) → ~70 commands ├─ filesystem/VFS ─── persistent tree, permissions, host mounts ├─ processes ──────── PID table, jobs, signals ├─ packages/JPKG ───── repos, deps, integrity ├─ services ───────── units, deps, autostart └─ ubuntu/ (the fun part): deb.js → pure-JS .deb parser/extractor (ar + tar + zstd) elf.js → ELF loader, PT_LOAD, PT_INTERP, auxv stack cpu.js → x86-64 interpreter (BigInt regs, SSE2 subset) syscalls.js → Linux syscalls → JOS rootfs + page map
Node.js 22+ is the only requirement.
An OS environment, stated honestly.
Persistent filesystem with permissions, process table, package manager with dependency resolution and integrity checks, real HTTP/DNS networking, scripting engine, cron, services. The x86-64 emulator executes genuine Ubuntu ELF binaries through a JS syscall layer.
JOS processes are cooperative async tasks in one Node process — no hardware isolation or POSIX signals. The app runtime is not a sandbox: untrusted apps can reach host APIs. The x86 emulator covers a subset of instructions/syscalls — simple static binaries work; glibc-heavy binaries are still being debugged.