Plate № 08 · Routing design

A pattern from the gf.cx specimen book

Tag-router · numeric + slug peers

Source · Dan, 2026-06-22

"QR-encoded asset tags need to be dense — a phone camera reads /1042 faster than /sennheiser-hd-560s-headphones — and re-assignable: the physical tag number outlives the asset description. But humans need friendly URLs they can type, share, and remember. Choosing one forces a compromise on the side you didn't pick."

The problem

QR-encoded asset tags need to be dense (a phone camera reads /1042 faster than /sennheiser-hd-560s-headphones) and re-assignable (the physical tag number outlives the asset description). But humans also need friendly URLs they can type, share, and remember. Choosing one over the other forces a compromise on the side you didn't pick.

Both numeric and slug forms are first-class peers in the Worker — neither is a redirect to the other. Both resolve directly to the same record:

// io.gf.cx/found Worker
GET /1042              → render record #1042
GET /ford-transit-van  → render record (slug-looked-up) #1042
GET /1042.json         → JSON projection of same record

The numeric ID carries class-prefixed structure for cheap human grouping (1xxx = vehicles, 2xxx = tools, 5xxx = electronics) without leaking the actual category into URL semantics — the prefix is a hint, not a contract.

The element, in-page

Tag chips for both forms of three real asset classes — click either row. Both forms serve the record directly with no intermediate redirect. The resolved card shows the canonical numeric ID, its slug peer, and the class-prefix hint.

Where it applies

Reusable elements

Reference

Source
Dan, 2026-06-22 · io.gf.cx/found asset tag system; extended to svc.gf.cx service records.
In use / example
io.gf.cx/found — gf.cx lost-property and asset-tag recovery surface; KV-backed, numeric + slug peers live, QR codes on physical tags resolve to both forms.
Also in use
svc.gf.cx — service-record QR labels with brand-keyed slug + numeric ID; the same dual-route Worker pattern applied to maintenance records.
Reusable elements
Dual-route Worker handler · class-prefix numeric scheme · canonical-at-render · tag chip pair · JSON projection route (listed above).
Origin
Asset tagging system design, 2026 — the constraint that physical QR codes must outlive the human-readable description of the thing they tag.