Run gix in the browser
The gitoxide command line: a pure-Rust implementation of git for inspecting and working with repositories.
Try it live
Nothing is downloaded until you press Run.
Check the gix build
Installs gix 0.55.0 from the signed catalog (every chunk is verified before it is written), then runs the commands below in the VM's shell.
gix --version
$ gix --version gix v0.55.0
What it is
gix is the CLI of gitoxide, a from-scratch Rust implementation of git that focuses on correctness and speed. It can initialise repositories, inspect objects, refs and configuration, and clone over HTTP. Cloning needs network access, which in the browser goes through NanoVM's network bridge and a CORS proxy.
Package facts
- version
0.55.0- runs on
- RISC-V VM (
elf-app,riscv64gc-linux-musl) - download
- 9.4 MB compressed · 1 file
- command
gix- requires
- nothing else — a static binary
- license
MIT OR Apache-2.0(upstream)- upstream
- github.com/GitoxideLabs/gitoxide
- categories
- Version control
- collections
- Git workflow
- catalog
- generation 12, Ed25519-signed
Install and run it from your page
With the SDK, installApp resolves gix in the signed index, fetches its content-addressed chunks from the CDN, verifies each one and writes the files into the VM. Details in Installing catalog apps.
import { createNano } from "@userland-run/nano-sdk";
const nano = await createNano({ image: { wasm: "/nano/console.wasm" }, ramMB: 512 });
await nano.installApp("gix"); // signature-verified, cached in OPFS
const r = await nano.shExec("gix --version");
console.log(r.stdout);Typical usage of the upstream command-line tool:
gix clone https://github.com/userland-run/sdk
Caveats
- net — Needs network access. In the browser, requests go through NanoVM's network bridge to the host's fetch(), so cross-origin URLs need CORS headers or the CORS proxy.
Related apps
- delta0.19.2A pager for git and diff output with syntax highlighting, word-level changes and side-by-side view.RISC-V VM3.3 MB
- ripgrep14.1.0Search file contents recursively with a regex, fast, respecting .gitignore.RISC-V VM9.2 MB
- tokei14.0.0Count lines of code, comments and blanks per language across a project.RISC-V VM1.7 MB