Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Modules

Standard Library

Standard modules are built into mq — use them with include or import, no installation needed.

ModuleDescription
jsonJSON parser and formatter
yamlYAML 1.2 parser and formatter
tomlTOML parser and formatter
xmlXML parser and formatter
csvCSV / TSV parser and formatter
hclHCL (HashiCorp Configuration Language) parser
cborCBOR binary format support
semverSemantic versioning (SemVer) utilities
sectionMarkdown section extraction helpers
tableTable rendering utilities
fuzzyFuzzy string matching
toonTOON format support
testTesting 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>"

Format Parsers

ModuleDescription
json5.mqJSON5 — comments, trailing commas, unquoted keys
pkl.mqPKL — Apple’s configuration language, with type annotations and collection literals
kdl.mqKDL document language
ini.mqINI file parser and serializer
ndjson.mqNDJSON / JSON Lines
logfmt.mqlogfmt structured log lines (key=value)
cron.mqCron expression parser and human-readable descriptions
jwt.mqJWT decoder — inspect header and payload without verification

Diagram & Graph

ModuleDescription
mermaid.mqMermaid diagrams — flowchart, sequence, pie, class
dot.mqGraphviz DOT — nodes, edges, attributes
graphql.mqGraphQL SDL — types, enums, interfaces, unions

DevOps & Infrastructure

ModuleDescription
dockerfile.mqDockerfile instruction parser
k8s.mqKubernetes manifest parser — metadata, containers, images, ports, resources
gha.mqGitHub Actions workflow parser — jobs, steps, triggers, matrix
openapi.mqOpenAPI 3.x spec parser — paths, operations, schemas, security schemes

Terminal & Text

ModuleDescription
ansi.mqANSI terminal escape code utilities

Interpreters

ModuleDescription
lisp.mqScheme-like Lisp interpreter
bf.mqBrainfuck interpreter