◆projects · mojo-libs

vsee table · Apache-2.0 · GitHub

Abstract teal and amber illustration for mojo-libs

The amarbaro Mojo libraries are small, single-purpose packages. Each one is its own repository, with tests checked against an oracle, a CI badge, docs/api.md, docs/design.md and an agent skill in skills/.

Install

Every library is a conda package named mojo-<name> on prefix.dev/amarbaro/amarbaro. The import name is in each library's README.

pixi init app && cd app
pixi workspace channel add https://conda.modular.com/max https://prefix.dev/amarbaro/amarbaro
pixi add mojo-json

The toolchain is Mojo 1.2 stable. A weekly matrix also builds every library on the current nightly.

Libraries

library what GitHub version
mojo-aio epoll event loop for Mojo: readiness events, timers, non-blocking TCP amarbaro/mojo-aio 0.1.1
mojo-amdgpu AMD GPU telemetry for Mojo from sysfs and hwmon, no ROCm needed: VRAM, busy, power, temperature, clocks, KFD holders amarbaro/mojo-amdgpu 0.1.5
mojo-args Command-line parsing for Mojo with Python argparse behaviour: subcommands, typed flags, --help amarbaro/mojo-args 0.1.4
mojo-base64 Base16/32/64 encode/decode matching CPython base64 amarbaro/mojo-base64 0.1.2
mojo-bench Benchmark harness for Mojo with statistics: warmup, auto iteration count, median, MAD, p95, seeded bootstrap CI, compare amarbaro/mojo-bench 0.1.1
mojo-bento BentoML's serving core as a Mojo library: an HTTP/1.1 server and typed JSON endpoints that answer like BentoML 1.4 amarbaro/mojo-bento 0.1.3
mojo-csv CSV reader/writer with CPython csv parity amarbaro/mojo-csv 0.1.2
mojo-cv Computer vision for Mojo: OpenCV-style 2D ops, calibration, 3D geometry and CAD export, each checked against cv2 5.0 or an exact oracle amarbaro/mojo-cv 0.1.5
mojo-glob Shell-style wildcards for Mojo: fnmatch and glob (recursive **, root_dir), identical to Python amarbaro/mojo-glob 0.1.2
mojo-gguf GGUF tooling in Mojo, byte-identical with llama.cpp's converters, quantizer and gguf-py scripts amarbaro/mojo-gguf 0.2.1
mojo-gguf-core Read (mmapped, zero copy) and write GGUF files from Mojo, as gguf-py does amarbaro/mojo-gguf-core 0.1.5
mojo-gzip gzip, zlib and raw deflate for Mojo through the system libz, plus crc32 and adler32 amarbaro/mojo-gzip 0.1.4
mojo-hashlib Hashing and shell quoting for Mojo, byte-identical with Python hashlib and shlex amarbaro/mojo-hashlib 0.1.4
mojo-imkit Immediate-mode GUI for Mojo, composed on the GPU: SDL3 window, FreeType text, widgets as one draw list amarbaro/mojo-imkit 0.10.0
mojo-inotify Watch files and directories from Mojo with Linux inotify, pollable amarbaro/mojo-inotify 0.1.5
mojo-json JSON for Mojo, byte-identical with Python json amarbaro/mojo-json 0.1.4
mojo-log Structured logging for Mojo: levels, key=value fields, text and JSON-lines, stderr/file/journald sinks amarbaro/mojo-log 0.1.1
mojo-mmap Memory-mapped files for Mojo: zero-copy Span views, read and write, madvise, msync amarbaro/mojo-mmap 0.1.3
mojo-msgpack MessagePack encode and decode for Mojo, pure Mojo, zero-copy str and bin views amarbaro/mojo-msgpack 0.1.1
mojo-posix POSIX processes, signals and sockets for Mojo: spawn with cwd/env/pgid, signalfd, poll amarbaro/mojo-posix 0.1.6
mojo-prometheus Prometheus metrics for Mojo: counters, gauges, histograms, summaries with labels, text exposition byte-identical with prometheus_client amarbaro/mojo-prometheus 0.1.2
mojo-proptest Property tests for Mojo: seeded generators, shrinking, a failure that names the seed and the minimal case amarbaro/mojo-proptest 0.2.0
mojo-pyformat Python-exact number formatting for Mojo: {:.Nf}, {:,}, {:g}, {:%}, rounding on the exact binary value amarbaro/mojo-pyformat 0.2.2
mojo-safetensors Read (mmapped, zero copy) and write safetensors files from Mojo, as the reference does amarbaro/mojo-safetensors 0.1.5
mojo-semver Semantic Versioning 2.0 for Mojo: parse, precedence, bump, match, identical to Python semver amarbaro/mojo-semver 0.1.2
mojo-sqlite SQLite bindings for Mojo, measured against Python sqlite3 amarbaro/mojo-sqlite 0.1.5
mojo-struct Pack and unpack binary data like CPython struct amarbaro/mojo-struct 0.1.0
mojo-subprocess subprocess.run for Mojo: capture stdout/stderr, input, timeout, cwd/env, same results as Python amarbaro/mojo-subprocess 0.1.2
mojo-supervision Roboflow supervision ported to Mojo, each op checked against Python supervision amarbaro/mojo-supervision 0.1.1
mojo-systemd sd_notify for Mojo: READY, STATUS, WATCHDOG, STOPPING to systemd amarbaro/mojo-systemd 0.1.4
mojo-tls TLS 1.3 and 1.2 client and server for Mojo, with X.509, in pure Mojo: no OpenSSL, no C library amarbaro/mojo-tls 0.1.2
mojo-tokenizers Hugging Face tokenizer.json runtime for Mojo: byte-level BPE (GPT-2, Llama 3, Qwen) amarbaro/mojo-tokenizers 0.1.1
mojo-toml TOML 1.1 parser for Mojo, passes the full toml-test suite amarbaro/mojo-toml 0.2.4
mojo-uregex Unicode-aware backtracking regex engine for Mojo: \p{L} classes, lookahead, case-insensitive groups, PCRE alternation semantics, built for LLM tokenizers amarbaro/mojo-uregex 0.3.3
mojo-uuid RFC UUID values, parsing, formatting and generation for Mojo amarbaro/mojo-uuid 0.1.2
mojo-vattn Flash-attention forward for video DiT self-attention in Mojo, gfx1100 amarbaro/mojo-vattn 0.1.4
mojo-xxhash xxHash for Mojo: XXH32, XXH64, XXH3-64 and XXH3-128 with seeds and streaming, pure Mojo, identical to the reference amarbaro/mojo-xxhash 0.1.2
mojo-zip zipfile read/write for Mojo, pure Mojo: stored and deflate (zlib port), zip64, CRC, CPython zipfile behaviour amarbaro/mojo-zip 0.1.0
mojo-zstd zstd and lz4 frame compression for Mojo, pure Mojo with no C library amarbaro/mojo-zstd 0.2.0
xmojo XML for Mojo: parse into structs, stream records, write back, checked against expat amarbaro/xmojo 0.2.2

The versions come from the index in mojo-libs, which is generated from each library's pyproject.toml. The index is refreshed by its own check script, so a stale row fails there first.

Not in the table: mojo-ablate, a command-line tool for behaviour steering on local models. It has its own repository, amarbaro/mojo-ablate, and is not a library.