PubIDPubID

The Playground

An identifier workbench over the real engine: type any identifier and the Rust implementation — pubid-rscompiled to WebAssembly — parses it client-side, no server round-trip. The grammar artifacts are the checksummed PARG envelopes the whole fleet shares, bundled with the engine and re-verified at load.

Enginepubid-wasm v0.1.0 · df673a55ded1Bundle2.47 MB wasm — the ported fleet rides the engine (the ready line shows the count)
loading the wasm engine…
Flavor detection
waiting for input…
Examples
fed from the pubid-testsuite corpus (vendored slices)
no example rows for this flavor
Reference

The input/output contract

Input

Any spelling of a standards identifier. In auto-detect mode every ported flavor tries the input and the fastest-ordered hit parses it; in manual mode the chosen flavor's grammar decides. A grammar rejection, a failed check digit or an unknown flavor all come back as a verdict — the workbench never throws.

Output

The typed tree (the canonical _type-tagged attribute hash), the canonical human render, and theURN/MRN emission with its namespace class —urn for the RFC 8141 forms, mrnfor the urn:mrn: member identifiers (IHO, IALA, WMO).

Reference

The verdict classes

codemeaning
(ok)the input parsed; result carries the report
unknown_flavorno ported flavor of that name (the manual-mode picker prevents this)
parsethe grammar rejected the input
invalidthe grammar matched but the flavor semantics rejected it (a failed check digit, an out-of-range stage)
artifacta grammar envelope failed to load or verify — never silently tolerated
Reference

The engine surface

exportthe Rust mirror
pubid_flavors()implemented_flavors()
pubid_parse(f, s)FlavorImpl::parse + the canonical forms
pubid_try_parse(f, s)the verdict form (never throws)
pubid_detect(s)every flavor that accepts the input
pubid_examples()the corpus-fed example rows
pubid_artifacts()the envelope receipts (checksum, semantics hash)

The example set is fed from thepubid-testsuitecorpus: the vendored slices the conformance suite gates, distilled to the canonical rows. Every row parses under its flavor — the gate is part of the engine's own test suite.

Docs

Per-flavor documentation

When a parse succeeds the workbench links the flavor'spublisher schema pageand, where one exists, its URN scheme reference (41 flavors carry one underSpecifications).