jc-rs

jc rewritten as one static binary that turns command output into JSON

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, not jc: 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.

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