Tentang
Sistem operasi native browser. Unix/Linux yang dirancang ulang dengan browser sebagai kernel dan Web API sebagai system call. Menyediakan lebih dari 60 perintah, shell mirip bash, sistem berkas virtual, dan persistensi dengan IndexedDB.
Sistem dan infrastrukturPertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +1
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliLifo
Lifo is a small Linux-like operating system written in TypeScript. It boots in a few
milliseconds inside a browser tab or a Node.js process: a filesystem, a bash-like shell,
processes, ports and a Node.js runtime, with no VM or emulator underneath. npm install,
Vite, Express and Expo run in it, and so does python3 (CPython on WebAssembly).
Docs: lifo.sh/docs (source in docs/) · Try it: lifo.sh/playground
In the browser
npm install @lifo-sh/core
npm install @lifo-sh/ui @xterm/xterm # only for a terminal on the page
import { Sandbox } from '@lifo-sh/core';
const box = await Sandbox.create();
await box.fs.writeFile('/home/user/hello.js', 'console.log("hi from", process.platform)');
const { stdout } = await box.commands.run('node hello.js');
// Or give people a terminal: the same box, typed into.
await box.attach('#terminal');
In Node.js
import { Sandbox } from '@lifo-sh/core';
const box = await Sandbox.create({ mounts: [{ virtualPath: '/work', hostPath: process.cwd() }] });
const r = await box.commands.run('cd /work && ls | wc -l');
console.log(r.stdout, r.exitCode);
In your terminal
npx lifo-sh # an interactive Lifo shell on your machine
npx lifo-sh login # log in to lifo.sh in the browser
npx lifo-sh tunnel 3000 # a public URL for a port: https://<name>-tunnel.lifo.sh
Inside a box, the lifo command does the same: lifo install git, lifo login,
lifo tunnel 5173.
Where to read next
- Where Lifo runs: browser, Node.js, terminal, and which to pick
- Why Lifo, Architecture, Security and isolation, Limitations
- Servers and previews, Packages, Embedding, Recipes
- Reference: Sandbox API, Shell and commands, the CLI
- For coding agents: the Lifo skill
Working on Lifo
pnpm install
pnpm dev # the playground at http://localhost:5173
pnpm test # all packages
pnpm build
| Path | What it is |
|---|---|
packages/core |
@lifo-sh/core: kernel, filesystem, shell, commands, Node.js layer, Sandbox |
packages/ui |
@lifo-sh/ui: terminal, file explorer, preview browser |
packages/cli |
lifo-sh: the terminal CLI |
packages/lifo-pkg-* |
installable commands (git, vi, nano, less, ffmpeg, ...) |
apps/playground |
the examples at lifo.sh/playground |
apps/desktop |
the desktop demo |
docs/, skills/ |
these docs and the agent skill |
Releases: RELEASING.md.
Related projects
Lifo is built by the team behind RapidNative — AI that generates production-ready React Native apps and UIs from a prompt — alongside these open-source tools:
| Project | What it is |
|---|---|
| RapidNative | AI that generates production-ready React Native apps and UIs from a prompt |
| tinbase | A Supabase-compatible backend without Docker — one process, real Postgres, runs in the browser |
| ORCHD | A multi-tenant workload orchestrator — per-tenant workloads that sleep when idle and wake on the next request |
| jetplane | A Metro plugin and a thin dev server for Expo — many dev environments per machine |
See them all on rapidnative.com/open-source.
License
MIT
Jelajahi proyek terkait
Memuat…