Packages

Install a tool into the box with one command.

Native tools compiled to Wasm, terminal editors, git and any npm CLI. They install into the box's filesystem and run from its shell, in the browser or in Node.

$ lifo install ffmpeg
Installing lifo-pkg-ffmpeg globally...
registered command: ffmpeg
$ ffmpeg -i input.mp4 -vf scale=320:-1 output.gif
output.gif written
$ npm install -g cowsay && cowsay hello
_______ < hello > -------
How it works

Lifo packages are npm packages with a lifo field in their package.json. lifo install ffmpeg tries lifo-pkg-ffmpeg first, then a package with the bare name, and registers the commands it declares.

Any npm CLI works too. The box has real npm, so npm install -g puts its binaries on the shell's path.

Wasm tools are native programs compiled to WebAssembly behind a thin command. They read and write the box's filesystem and take the flags you already know.

Available today

Runs today
ffmpegWasm

Convert and edit audio and video, powered by ffmpeg.wasm.

git

Clone, commit, push and pull, powered by isomorphic-git.

nano

The friendly terminal text editor.

vi

A modal vi/vim editor: motions, operators, search, undo.

less

Page through long output.

man

Manual pages for the commands in the box.

bc

An arbitrary-precision calculator.

cal

A calendar in the terminal.

fastfetch

System info, neofetch style.

orchd

Run a project from the orchd.json that ships inside it.

Build your own

Scaffold a package, link it into a box while you work on it, then publish it to npm as lifo-pkg-<name>.

$ npm create lifo-pkg my-tool
$ lifo link ./my-tool
$ my-tool --help

The lifo command

lifo install <name>
Install lifo-pkg-<name>, or the package called <name>
lifo list
List installed packages and dev links
lifo search <term>
Search npm for lifo-pkg-* packages
lifo remove <name>
Uninstall a package
lifo init <name>
Scaffold a new package
lifo link [path]
Dev-link a local package into the box

Next in Wasm

Planned
ImageMagickPythonSQLiteRubyLuajqripgrep

Want a tool packaged? Tell us on X or open an issue on GitHub.