Modules
Standard Library
Standard modules are built into mq: use them with include or import, no installation needed.
| Module | Description |
|---|---|
json | JSON parser and formatter |
yaml | YAML 1.2 parser and formatter |
toml | TOML parser and formatter |
xml | XML parser and formatter |
html | HTML parser and formatter (requires the css-selector build feature) |
csv | CSV / TSV parser, formatter, and blank-cell fill helpers |
cbor | CBOR binary format support |
semver | Semantic versioning (SemVer) utilities |
section | Markdown section extraction helpers |
table | Table rendering utilities |
fuzzy | Fuzzy string matching |
toon | TOON format support |
gron | gron-style flattening into path = value; lines, and back |
md | Builders for generating Markdown (headings, tables, lists, callouts) |
gen | Generator combinators for property-based testing |
test | Testing framework (assert_eq, assert_true, …) |
Extension Modules
These modules extend mq with additional parsers, utilities, and domain-specific languages. All modules support HTTP Import: no local installation required.
import "github.com/harehare/<module-name>"
Type to search by name or description, or click a category to filter.
| Module | Category | Description |
|---|---|---|
| json5.mq | Format Parsers | JSON5: comments, trailing commas, unquoted keys |
| hcl.mq | Format Parsers | HCL (HashiCorp Configuration Language), blocks, labels, attributes |
| pkl.mq | Format Parsers | PKL: Apple's configuration language, with type annotations and collection literals |
| kdl.mq | Format Parsers | KDL document language |
| ini.mq | Format Parsers | INI file parser and serializer |
| ndjson.mq | Format Parsers | NDJSON / JSON Lines |
| logfmt.mq | Format Parsers | logfmt structured log lines (key=value) |
| ltsv.mq | Format Parsers | LTSV (Labeled Tab-Separated Values) parser |
| cron.mq | Format Parsers | Cron expression parser and human-readable descriptions |
| jwt.mq | Format Parsers | JWT decoder: inspect header and payload without verification |
| okf.mq | Format Parsers | OKF (Open Knowledge Format) reader/writer, concept documents, cross-links, citations, log/index entries |
| url.mq | Format Parsers | URL parsing, building, and relative-resolution utilities for mq. |
| changelog.mq | Format Parsers | Keep a Changelog Markdown parser and serializer |
| dotenv.mq | Format Parsers | .env file parser and serializer, quotes, comments, and escape sequences |
| jsonpath.mq | Format Parsers | JSONPath (RFC 9535-style) query engine for mq's parsed JSON values |
| jsonschema.mq | Format Parsers | JSON Schema validator |
| xpath.mq | Format Parsers | Abbreviated XPath query engine for xml.mq's parsed value tree |
| codeowners.mq | Format Parsers | GitHub CODEOWNERS parser and matcher |
| feed.mq | Format Parsers | RSS 2.0 / Atom feed parser |
| gitignore.mq | Format Parsers | .gitignore pattern parser and matcher |
| asciidoc.mq | Format Parsers | AsciiDoc to Markdown converter |
| jsonld.mq | Format Parsers | JSON-LD <script type="application/ld+json"> extractor |
| typst.mq | Format Parsers | Typst markup parser, headings and single-line function-call statements |
| gomod.mq | Format Parsers | Typst A Go module manifest (go.mod/go.sum) parser implemented as an mq module |
| sbom.mq | Format Parsers | SPDX and CycloneDX SBOM (Software Bill of Materials) parser |
| fixedwidth.mq | Format Parsers | Fixed-width (fixed-length) text parser |
| justfile.mq | Format Parsers | justfile syntax parser |
| cedar.mq | Format Parsers | Cedar policy language parser |
| mermaid.mq | Diagram & Graph | Mermaid diagrams, flowchart, sequence, pie, class |
| dot.mq | Diagram & Graph | Graphviz DOT, nodes, edges, attributes |
| graphql.mq | Diagram & Graph | GraphQL SDL, types, enums, interfaces, unions |
| tree.mq | Diagram & Graph | A tree-rendering utility module for mq |
| graph.mq | Diagram & Graph | Generic graph algorithms |
| dockerfile.mq | DevOps & Infrastructure | Dockerfile instruction parser |
| k8s.mq | DevOps & Infrastructure | Kubernetes manifest parser, metadata, containers, images, ports, resources |
| gha.mq | DevOps & Infrastructure | GitHub Actions workflow parser, jobs, steps, triggers, matrix |
| openapi.mq | DevOps & Infrastructure | OpenAPI 3.x spec parser, paths, operations, schemas, security schemes |
| aws.mq | DevOps & Infrastructure | AWS CLI / SDK JSON response processor, filter, extract, and render Markdown tables for EC2, S3, IAM, Lambda, RDS, ECS, EKS, and 50+ other services |
| ansi.mq | Terminal & Text | ANSI terminal escape code utilities |
| case.mq | Terminal & Text | String case conversion utilities implemented as an mq module |
| emoji.mq | Terminal & Text | GitHub-style emoji shortcode <-> Unicode emoji conversion |
| cmd.mq | Terminal & Text | Command output parsers (ps, df, ls -l, git log, ...) that turn CLI output into structured data |
| kana.mq | Terminal & Text | Fullwidth/halfwidth conversion, in both directions and limited to selected character classes |
| qrcode.mq | Generators | QR Code (ISO/IEC 18004) encoder, ASCII-art and SVG rendering |
| badge.mq | Generators | shields.io badge generator |
| sparkline.mq | Generators | A pure Unicode sparkline renderer |
| lisp.mq | Interpreters & Examples | Scheme-like Lisp interpreter |
| bf.mq | Interpreters & Examples | Brainfuck interpreter |
| jq.mq | Interpreters & Examples | Implementation of the jq JSON processor, written in mq |
| ds.mq | Data Structures & Algorithms | Data structures: min-heap, trie, union-find, sorted collections |
| bloom.mq | Data Structures & Algorithms | Bloom filter, a compact set answering "definitely not" or "probably in the set" |
| sketch.mq | Data Structures & Algorithms | Probabilistic stream summaries with fixed memory and mergeable results |
| consistenthash.mq | Data Structures & Algorithms | Consistent hash ring for sharding keys over nodes |
| simhash.mq | Data Structures & Algorithms | SimHash fingerprints for near-duplicate detection |
| tfidf.mq | Data Structures & Algorithms | Full-text ranking: BM25 search and TF-IDF keyword extraction |
| vector.mq | Data Structures & Algorithms | Vector math and nearest-neighbour search |
| parser_combinator.mq | Libraries & Toolkits | A small parser-combinator toolkit, in the spirit of Rust's nom |
| diff.mq | Libraries & Toolkits | Text and array diffing utilities, built on mq's native Myers-diff engine |
| returns.mq | Libraries & Toolkits | Result and Maybe types for railway-oriented error handling, inspired by dry-python/returns |
| markl.mq | Libraries & Toolkits | Markdown template engine with {{ expression }} tags, layouts, and per-site themes |
| docset.mq | Libraries & Toolkits | Treats a directory of Markdown docs as one documentation set |