jknife

Java Developer’s Swiss Army Knife — small CLI helper tools written in Java, compiled to native binaries with GraalVM and installable via Homebrew.

No Java runtime is needed — the tools are self-contained native binaries with instant startup.

Tools

Tool Description Doc
jregex Java regex helper: match, find, replace jregex.md
jbase64 Base64 encode/decode jbase64.md
juuid UUID generator (v4, v7) + parser juuid.md
jtime Timestamp converter (epoch <-> ISO-8601, parse/format) jtime.md
jperiod Period/duration converter and parser jperiod.md
jjson JSON helper (validate, pretty, compact, get) jjson.md
jyaml YAML helper (validate, tojson) jyaml.md
jxpath XML xpath helper (select, exists) jxpath.md
jllm LLM tool family: ask/stream/request/models/mcp, openai + ollama, mcp tools jllm.md
jsec Security: hash, keys, encrypt/decrypt, sign/verify jsec.md

Install

brew tap mhus/jknife
brew install jregex

Binaries for macOS (aarch64, x86_64) and Linux (x86_64, aarch64) are attached to the GitHub releases.