lifo-sh/lifo
Sobre
Um sistema operacional nativo do navegador. Uma releitura do Unix/Linux em que o navegador É o kernel e as Web APIs SÃO chamadas de sistema. Mais de 60 comandos, shell semelhante ao bash, sistema de arquivos virtual e persistência com IndexedDB.
Sistemas e infraestruturaCrescimento medido de estrelas
- em 24 h
- +1
- em 7 dias
- +1
- em 15 dias
- +2
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
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
Explore projetos relacionados
Carregando…