Concepts
Glossary
The terms the Folkways docs use, in one place, each with an example.
| Term | Meaning | Example |
|---|---|---|
| Workspace | Your team's account: one package, its segments, team members and billing | Acme |
| Package | The plan a workspace is on; sets its allowances | Free, or a paid package |
| Segment | One isolated app in one environment, with its own keys, rules and topics | Chat (production) |
| Realtime URL | The address your clients connect to; shown in a segment's Connect tab | https://realtime.folkways.net |
| Signing key | A key pair; your backend signs tokens with the private half | Key ID backend-2026-12 |
| Publishable key | A public key an app trades for anonymous, read-only tokens | Used by a live scoreboard |
| Platform API key | A key your servers use to read the Platform API | Sent as X-API-Key |
| Token | A short-lived JWT: segment, identity, capabilities | Lives 10 minutes |
| Identity | Who a connection is; the token's sub | user:42 |
| Service token | A token your backend signs for itself, with kind: "service" | Opens DMs, writes $user topics |
| Capability | A topic pattern and the ops allowed on it | rooms/42: subscribe, publish |
| Op | One kind of operation | subscribe, publish, set, signal, presence |
| Topic | A named channel in a segment | rooms/42 |
| Pattern | A topic name with wildcards: * one level, trailing > one or more | rooms/*, chat/> |
| Topic rule | Says which topics exist, what they carry and who may use them | rooms/*: stream, kv, signal |
| Public topic | A topic whose rule lets the token decide (access: token) | scores/match-7 |
| Private topic | A topic whose rule needs a member entry too (access: members) | dm/5f0c… |
| Member entry | One identity's ops on one private topic, kept by your backend | user:2 may subscribe |
| Personal topic | $user/{identity}: notices for one user, written by your backend | $user/user:42 |
| Event | One published item: a name, a type and a payload | message { "text": "hi" } |
| Event type | Stream, KV or Signal: how an event is kept and delivered | typing is a signal |
| Stream | Events kept in order and replayable for a bounded time | Chat messages |
| KV | The latest value per key | Read receipts |
| Signal | The latest short-lived value per sender | Typing indicators |
| Presence | Who is online, and who is in which topic | $presence/rooms/42 |
| Cursor | A stream event's position, (epoch, seq) | 7:42 |
| Epoch | The part of a cursor that changes if a topic's history may be lost | 7 |
| Gap | Notice that the history you asked for is gone | Expired |
| uid | A stream or KV event's permanent ID, a UUIDv7 | Point a read receipt at it |
| Idempotency key | A 128-bit ID that makes a retried publish safe | Reused on each retry of one message |
| Receipt | What a publisher gets back: position, uid, duplicate flag | accepted at 7:42 |
| Frame | One request or reply in the wire protocol | Publish, SubAck |
| Packet | One WebSocket message or HTTP body: 1 to 64 frames | A batch of publishes |