Skip to content
المشاريع

حول

نظام تشغيل يعمل أصليًا في المتصفح، يعيد تصوّر Unix/Linux بحيث يكون المتصفح هو النواة وتكون واجهات Web APIs هي استدعاءات النظام. يضم أكثر من 60 أمرًا، وصدفة شبيهة بـ Bash، ونظام ملفات افتراضيًا، مع حفظ البيانات باستخدام IndexedDB.

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+٢
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Lifo

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

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

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…