pkg:clod/com.clodhub/invitations 0.9.0 Invitation links and typed codes for a room, with a payload for a scannable code. `invitations` makes the link and the short code a person uses to invite others into a room: it generates a code from an alphabet with no look-alike characters, builds a link on the application's invite address that carries the code (and optionally a room), parses such a link back, formats a code for reading out and offers the link through the system share sheet or the clipboard on the web. It supplies the text a scannable-code renderer encodes; drawing the scannable code is a platform call and is not in this component. Examples A host creates a room; the screen shows `KT7-Q2P` to read out and a link to share. A guest types `kt7q2p` with different spacing and case and the right room is found. A guest scans the scannable code drawn from the payload and the application opens on the invite address with the code and room filled in. A link from another site, with a wrong-length code or an invalid room id, is ignored. Package URL: pkg:clod/com.clodhub/invitations@0.9.0 Class: Invitations (pkg:clod/com.clodhub/invitations-class@1.1.0): Invitation links and codes, shared or copied. Any component of this class can fill a recipe slot that asks for it. Category people-and-accounts/invitations; https://clodhub.com/classes/invitations-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Finvitations-class Provides (1) - invitations (com.clodhub/invitations 1.0.0): Invitations: a link to the application with a short code, for people to type, share or scan. TypeScript functions in server/invitations.ts and web/share.ts; the same rules in Swift (enum Invitations, struct Invitation) and Kotlin (object com.clodhub.invitations.Invitations, data class Invitation), and links round trip between them. Methods are tagged with the languages that provide them; native link and parse take inviteAddress and codeLength as separate arguments. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Finvitations Requires (0) - none Settings (2) Two settings. `inviteAddress` (address grammar, optional: without it no links are made) is the application's own page that invitation links point to: an absolute http or https address with no credentials, query or fragment. `codeLength` (default 6) is the number of characters in a code. - inviteAddress: string (address); optional, no default - codeLength: integer; optional, default 6 Depends on components: none How to use in a recipe A recipe uses it through a slot of class Invitations (pkg:clod/com.clodhub/invitations-class 1.1.0), naming pkg:clod/com.clodhub/invitations as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (invitations) to the slots that use it. The recipe sets inviteAddress and codeLength; any it leaves out takes its default. - as a slot in recipe.json components: {"id":"invitations","class":{"name":"pkg:clod/com.clodhub/invitations-class","version":"1.1.0","digest":"7ba0fd0a2c3c3f78a165071c910fa02549f9619251db47b81e3cf68329183716"},"preferred":{"name":"pkg:clod/com.clodhub/invitations","version":"0.9.0"}} - in place of another component of the class: clod fetch invitations@0.9.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=invitations@0.9.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot invitations) For developers: how an application uses it Server: when a room is created call `generateCode(settings.codeLength, random)`, keep it with the room and give it to the directory entry so people can join by code; send `inviteLink(settings, { code, roomId })` in the room's view for clients to show or share. Web: `shareInvitation(link, text, { share: navigator.share?.bind(navigator), writeText: navigator.clipboard?.writeText.bind(navigator.clipboard) })`. All platforms: `parseInvite` on a link the application was opened with. Scannable code: pass `scanPayload(link).text` to the platform's renderer (iOS Core Image `CIFilter.qrCodeGenerator`, level M, as the recipe does; Android and web need a library or service chosen by the application). `examples/consumer.ts` runs the whole cycle without a game. Accounts and services No service. The invite address belongs to the application's web hosting. How it is checked Required-local: `node --test tests/web.test.ts` checks the address grammar, generation inside the alphabet, normalising and reading-out format, link building and parsing against `tests/fixtures/invites.json`, the scan payload, every sharing outcome and the example. Platform: `python3 tests/native.py apple` compiles and runs the Swift port against the same fixture; `python3 tests/native.py android` compiles the Kotlin port (needs kotlinc, not installed on the authoring machine, so not run there). - `node --test tests/web.test.ts` (web, required-local; tools: node 26.5) - `python3 tests/native.py apple` (apple, platform; tools: python3 3.12, swiftc 6.4) - `python3 tests/native.py android` (android, platform; tools: python3 3.12, kotlinc 2.2, java 26.0) Updates Patch updates replace files; no persisted-state migration. Codes live with the rooms that use them. The link grammar is part of the interface: changing it needs a new interface version. Tags: invitations, people-and-accounts Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/invitations release v0.9.0; digest sha256:e5f2c3c3e139e4c94d9cd5077d70273097fa9bb0454d2ae0e79495dfa5a57a99 Release: features Line 0.9: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/invitations/0.9.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/invitations/0.9.0 Bundle download: GET https://clodhub.com/api/components/invitations/0.9.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/invitations-class@1.1.0 7ba0fd0a2c3c3f78a165071c910fa02549f9619251db47b81e3cf68329183716 com.clodhub/invitations 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, server server/index.ts, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: shared Platforms: android, ios, macos, server, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: none Styles: scope none; 0 namespaces; 0 conflicts Licence: Apache-2.0; 0 upstream sources, 0 exact dependencies, 29 files (listed on the details page) Suitable for jobs: invitations profile any: cost none; load none; regions any; compliance none Notes: Pure functions; no provider involved. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/invitations/issues; updates https://github.com/clodhub/invitations/releases (manual) What you download invitations-0.9.0.tar, from release v0.9.0 of clodhub/invitations: 29 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (6): android/ (1), apple/ (1), server/ (2), web/ (2) - Tests (5): android/ (1), apple/ (1), fixtures/ (1), native.py, web.test.ts - Interface documents (1): invitations.json - Class files: the class's interfaces and shared checks (3): invitations-class/ (3) - Examples (1): consumer.ts - Diagrams (5): definition.json, examples/ (1), output/ (3) Installing copies 6 of them into the application under components/invitations/: android 1, apple 1, server 2, web 2 Not included: the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.9.0 features (2026-11-26T11:28:04.331Z) sha256:e5f2c3c3e139e4c94d9cd5077d70273097fa9bb0454d2ae0e79495dfa5a57a99 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/invitations/details.txt?version=0.9.0 Page: https://clodhub.com/components/invitations; JSON: https://clodhub.com/api/components/invitations/0.9.0; connections diagram: https://clodhub.com/api/components/invitations/0.9.0/connections.svg Copyright Level N Ltd 2026