Image 1 of 2: jc-rs site with df output converted to JSON in the browser by the WebAssembly build
Parses the output of commands such as ps, df, dig and ifconfig, plus file formats and strings, into the same JSON as jc, from one static Rust binary. Streaming parsers emit NDJSON as input arrives, the parsers are a reusable crate, and a WebAssembly build runs the converter in the browser.
- 4 ms vs 109 msCold start vs jc
- 178 ms vs 516 msAccess log parse vs jc
- 934 of 934jc fixtures matched
Trade-offs
- jc stays the authority: no schema is invented, and where the two disagree jc-rs has the bug. CI fails below 100% on jc's own fixtures, mirrored verbatim so they can't be edited.
- Release binaries are static musl builds linked with mimalloc, because musl's allocator costs up to 2.2× on allocation-heavy parsers.
- The binary is called
jc-rs, notjc: an alias ships in the archives but is never installed, so the original jc isn't shadowed on the PATH.
Q&A3
A fixture pair counts only when jc itself matches it; everything else is reported by category instead of hidden. The run is pinned to
TZ=PST8PDT like jc's own tests, since otherwise 146 timestamp pairs would silently leave the denominator.Mostly startup: jc spends about 109 ms in the Python interpreter before parsing. On bulk input the lead settles at 3× to 6×, where both are bound by the same per-field work.
Yes. Streaming parsers emit one NDJSON record per line as input arrives, so
tail -f piped through it prints each record as the log grows instead of one array at the end.Links
- Live(opens in a new tab)jc-rs.com
- GitHub(opens in a new tab)github.com/OlegSotnikov/jc-rs
- crates.io(opens in a new tab)crates.io/crates/jc-rs
- Benchmark script(opens in a new tab)github.com/OlegSotnikov/jc-rs/blob/main/ci/bench-vs-jc.sh
- Compatibility report(opens in a new tab)github.com/OlegSotnikov/jc-rs/blob/main/tests/differential/REPORT.md
Built by
Reviews
Loading reviews
More in JSON
See all 5 →
PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
JDFDocument format in plain JSON that renders like a PDF and diffs in git- celqCommand-line JSON processor that speaks Common Expression Language
- headsonhead and tail for structured data, within a strict byte budget
TwigExplorer for JSON, YAML and HAR files in the terminal and the browser
More in CLI tools
See all 74 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C
roam-codeLocal code index and checks that coding agents can query
More in Rust
See all 146 →
PaganelData migration engine that verifies the destination down to the row
FeOxDBEmbedded key-value store in Rust with write-behind durability
AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
AntirionAI gateway in one Rust binary, with the admin console built in
OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS