Text content components
These components validate, transform, inspect, or render text. Some components declare a text/* MIME type. Other components use the UTF-8 encoding contract without a more specific MIME type. Download a .wasm file and run it with qipx run, or combine compatible inputs and outputs with the recipe finder.
Markdown (text/markdown) #
Related tool: Markdown to HTML.
HTML (text/html) #
Transform
Syntax highlight
These components highlight matching fenced code blocks and return text/html:
Related tools: syntax highlighter and HTML accessibility tree.
JSON (application/json) #
json-prettify.wasm formats JSON with indentation and line breaks.
json-schema-2020-12-must-be-valid.wasm validates a document against a JSON Schema draft 2020-12 schema. It takes {"schema": …, "instance": …, "schemas": {…}} and outputs the document unchanged when it conforms.
json-schema-to-wasm.wasm compiles a draft 2020-12 schema into a validator component that takes bare documents. It returns application/wasm.
Related tool: JSON Schema validator, with examples, conformance results and a speed comparison with ata-validator and @cfworker/json-schema.
XML (application/xml) #
xml-must-be-well-formed.wasm accepts an XML 1.0 document unchanged if it is well-formed, like xmllint --noout, and reports the offset where it stops being well-formed. It works for OPML, RSS, Atom and SVG. It reads UTF-8, US-ASCII and ISO-8859-1, does not fetch or validate against DTDs, and does not reject namespace errors such as an undeclared prefix.
npx qipdo qip.dev -i subscriptions.opml application/xml/xml-must-be-well-formed.wasm > /dev/null
CSS (text/css) #
css-minify.wasm removes comments and unnecessary whitespace. It returns text/css.
Related tools: CSS minifier and CSS expression calculator.
General text #
Validation #
utf8-must-be-valid.wasm accepts valid UTF-8 bytes unchanged and reports the first invalid byte offset. utf8-must-be-valid-odin.wasm is the Odin implementation.
utf8-must-be-ascii.wasm accepts ASCII bytes unchanged and reports the first non-ASCII byte offset.
luhn.wasm validates a number with the Luhn checksum and returns its digits without spaces or hyphens.
cve.wasm validates one CVE ID (CVE-YYYY-NNNN, year 1999 or later, 4 to 19 sequence digits) and returns it with an uppercase prefix. It reports the offset of the first bad byte.
tld-validator.wasm validates a top-level domain label.
validate-hostname.wasm accepts an RFC 1123 host name unchanged: dot-separated labels of 1 to 63 letters, digits and hyphens, at most 253 characters in total. It reports the offset of the first byte that no host name can continue through.
bcp47-must-be-well-formed.wasm accepts a language tag unchanged if it matches the RFC 5646 grammar, and reports the offset of the first bad subtag.
bcp47-must-be-valid.wasm also requires every subtag to be in the IANA Language Subtag Registry (2026-09-17 snapshot) and rejects repeated variants and extension singletons.
i-regexp-to-wasm.wasm compiles an RFC 9485 I-Regexp into a validator component. The validator accepts text unchanged when the pattern matches all of it, and otherwise reports the offset where matching stopped. It returns application/wasm. By default it emits the smaller of two encodings. Set -u prefer_table=1 to always emit a transition table, which is larger but often faster. See regex.
printf '[a-z]{2,8}(-[a-z0-9]+)*' | npx qipdo qip.dev -o lang.wasm text/i-regexp-to-wasm.wasm
printf 'en-gb' | npx qipdo lang.wasm
The generated module looks up one table entry per input byte, so a pattern cannot make it backtrack, and it passes the strict profile, loop, and output-size checks. The compiler rejects patterns whose DFA needs more than 30,000 states or a 4 MiB table. Patterns that use \p{..} categories make much larger modules than ASCII patterns: \p{L}+\P{N} is 41 KB, or 260 KB as a table.
Related tool: regular expression validators, with ready-made patterns and a speed comparison with the browser's RegExp.
Unicode 17 #
Related tool: Unicode converter.
Text rendering #
Related tool: Open Graph image.
Programming languages #
JavaScript (text/javascript)
See the syntax highlight comparison for its output contract, Shiki oracle, and performance measurements.
C (text/x-c)
c-to-bmp.wasm renders the supported C syntax subset to a BMP image.
WebAssembly text (text/wat)
wat-to-wasm.wasm assembles a WebAssembly text module (WAT) into binary application/wasm. For valid modules the output is byte for byte the same as WABT 1.0.42 wat2wasm, without a name section. It accepts Core 2.0 with SIMD, plus relaxed SIMD, tail calls, extended constants, threads atomics, multi-memory and 64-bit memories. It does not accept exception handling, typed function references, GC or annotations. wat-to-wasm-odin.wasm is the Odin implementation, with the same output and the same rejections.
It assembles but does not type-check, so put the Core 2.0 validator after it:
npx qipdo qip.dev -i text/base64-decode.wat -o base64-decode.wasm \
text/wat/wat-to-wasm.wasm application/wasm/wasm-validate-core-2.0.wasm
On malformed text it reports the offset of the bad token and one of five failure modes: syntax, unknown or duplicate name, bad number, unsupported feature, or size limit. Input is limited to 1 MiB.
Dates #
Currency #
The locale-specific currency components accept a decimal value. A currency uniform selects the currency:
Related tool: currency formatter.
URI list (text/uri-list) #
Related tools: QR code and encode SVG as data URI.
Mermaid (text/vnd.mermaid) #
Related tool: Mermaid to Unicode box art.
CSV (text/csv) #
Related tool: component recipe finder.
Counts and examples #
Looking for other components? See image, audio, TUI, and GUI.