Repository navigation
GUID
This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.
The guid is a station's permanent identity in Radio 2.0: a UUID created once and never changed. Players and directories follow a station by its guid, not by a stream URL, so the station can move hosts, change formats or rename itself without being lost.
| Defined in | Specification 4.1 |
| Member |
guid in the Manifest
|
| Format | UUID (RFC 9562), lower-case canonical form |
| Allowed versions | Random (version 4) or name-based (version 5) |
| Required | Yes |
| Status | Draft |
A stream URL is an address, and addresses change. A station may change hosts, ports, formats or software. If a directory used the URL as the identity, each change would look like a new station and the old record would die. The guid is the identity that survives all of that. When a station moves, it updates its manifest, and everyone who reads it follows along. The origin story on History calls this the part that fixed dead links.
- Create the
guidonce, when the station first publishes. Never change it: not on rename, not on a change of host, streams or software. - A station that moves to new software must carry its
guidover. - Every station must create its own. A publisher must not copy a
guidfrom an example or from another station. - The
guidis written in lower case. The invalid test filemanifest--guid-uppercase.jsonmust fail for this reason.
Any standard UUID generator works: uuidgen on macOS or Linux, or [guid]::NewGuid() in PowerShell, as the create page says. The Create a manifest tool has a "Station ID only" tab that makes one in the browser. radio2.org does not issue or record IDs.
Four guids in the specification and examples are for documentation only: they appear in the examples folder and the spec text. Validators may warn when a manifest uses one (the reference validator does, with the rule name example-guid), and directories should not list a station under one.
A consumer stores the guid with the last verified manifestUrl and homepage origin. When it meets a verified manifest with a known guid at a new address, the move rules decide whether to accept it; see Verification and ownership. A directory that refuses a manifest because the guid belongs to another station should say so plainly, and an API should use the error code guid_taken.
The spec notes (informatively) that a version 4 UUID has 122 random bits, so even a billion stations would collide with a probability of about one in ten billion billion. A shared guid therefore means a copy, by mistake or on purpose.
The guid is not a secret and gives no control over a listing. Anyone can read it. A directory accepts a manifest only under the verification and move rules, which rest on the homepage origin.
Radio 2.0 is an open standard, MIT licensed. Documentation: radio2.org. Questions: Discussions.
Overview
The manifest
Discovery and identity
Live data
Money
Implementations and tools
- Implementations
- Reference implementation
- radio2 command line tool
- Create a manifest
- Conformance
- Stations
- Brand and badges
Project
Documentation
Community