6.4.0
API v6.4.0 — Public Docker image, 41 endpoints declared in the manifest, stricter text for /badge.
- 41 endpoints are now declared as contracts: the route, the check of the parameters and the description used by the documentation come from one declaration, so they cannot drift apart. Nothing changes in what they answer:
v4,v5andv6behave as in 6.3.0, with the same statuses, the same messages and the same order of checks, apart from the text of a badge (see below). - The manifest export now lists 42 entries: the 41 endpoints, with
levenshteinappearing twice (aGETuntilv5, aPOSTfromv6). Each entry has itsname,method,path,category, the first (since) and last (until) version that serves it, itsparamswith theirtype, fixedoptionsanddefault, and a requestexample. A parameter is markedrequiredonly when a request without it is refused before the endpoint runs, so the manifest declares fewer required parameters than the endpoints really have. Experimental - The manifest stays experimental: the endpoints that answer an image, keep a state (chat, tic-tac-toe, the verification of captcha and proof of work) or describe the API itself are not declared yet, and its shape may still change in a minor release.
- A public Docker image,
ghcr.io/moxondev/api, forlinux/amd64andlinux/arm64. Its tags are6.4.0,6.4and6, which follow the releases, andlatest, the most recent stable one. It listens on port3000, anddocker run -d -p 3000:3000 ghcr.io/moxondev/api:latestis enough to start it. See Instance. - It reads the same environment variables as the Node server (
PORT,CHALLENGE_SECRET,TRUSTED_PROXIES,DOCS_URL, the rate limits and the rest), given with-eor from a file with--env-file. - It is made for a locked-down host: the image runs as the unprivileged
nodeuser and writes nothing to disk, so it also starts with--read-only --tmpfs /tmp. It reports itselfhealthyonceGET /answers, and it stops at once onSIGTERMinstead of waiting to be killed. - Behind a reverse proxy, set
TRUSTED_PROXIES: otherwise the server sees the address of the proxy or of the Docker network instead of the caller's, and the rate limits count the wrong clients.
- GET /badge now refuses invisible characters in
labelandmessage: a soft hyphen, a word joiner, a bidirectional mark, a Hangul or Braille filler, a tag character, a lone surrogate and other format characters. A text made only of spaces, combining marks or variation selectors is refused too. They answer the same400as the control characters before them:Label cannot contain control or invisible characters(Message cannot contain control or invisible charactersformessage). - Still accepted: an emoji with its variation selector, accents, no-break spaces and the ideographic space around a visible text.
canvasgoes to3.2.3, whose release carries a prebuilt binary forlinux-arm64: it is what makes thearm64image possible. Nothing changes for the library.- A vulnerable
minimatchpulled in by the development dependencies is replaced by a patched release. It only concerned the development tools: it was never installed with@moxon/api. - The npm description and the README of the package now announce 50+ endpoints.
- The Manifest page now describes the
42entries: the fields of an entry and of a parameter, and the rule thatrequiredis set only when a request without the parameter is refused before the endpoint runs. It states which endpoints are not declared yet. Experimental - The Instance page has a new Docker section: the image, its tags, the port, the environment variables, the read-only start, the health check and
TRUSTED_PROXIESbehind a proxy. - The Badge page lists the invisible characters that
labelandmessagerefuse, and the error they answer.
Last updated on November 17, 2026