À propos
Un système d’exploitation natif du navigateur. Une réinterprétation d’Unix/Linux dans laquelle le navigateur EST le noyau et les API web SONT les appels système. Il propose plus de 60 commandes, un shell semblable à Bash, un système de fichiers virtuel et la persistance via IndexedDB.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalLifo
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
Explorer des projets similaires
Chargement…