Open data
Rivr is a social coordination platform for communities. People, groups and local places use it to publish events, marketplace offerings, projects, jobs and posts, and to organize together. Whatever an author makes public is readable here without an account, by a person, a search engine or an assistant; everything else stays with its members.
This page describes those ways in. The same list, in plain text for an
assistant, is at /llms.txt.
What counts as public
One rule decides, everywhere below: an object is public when its visibility is
public or locale (posts, people, groups and rings: public only;
households: never), it
is not deleted, its author has not turned off search indexing, and it is not
addressed to particular people or groups. Being filed under a locale does not
hide anything — a locale is public information. The rule lives in
src/lib/discovery-paths.ts (isPubliclyDiscoverable), and the sitemaps, the
public API, the public events page and the anonymous MCP tools all call it, so
they can never disagree about what Rivr has published.
The public read API
No account, no key. Every response is JSON, readable from any origin, and may be cached by a shared cache for five minutes.
GET /api/public/events lists upcoming public events, soonest first. Each
item is a schema.org Event — exactly the JSON-LD the event's own page
publishes — whose startDate and endDate carry the event's UTC offset, plus a
rivr block with the event's id, visibility, last update and locales. An online
event's location is a VirtualLocation at its event page, which links to the live room.
| Parameter | Meaning |
|---|---|
locale | A locale's id, or its name (case-insensitive), e.g. Boulder. |
after | ISO 8601 date or date-time. Defaults to now; an event still running then is included. |
before | ISO 8601 date or date-time. Events starting later are left out. |
limit | 1–100, default 50. |
cursor | The previous page's nextCursor, unchanged. |
GET /api/public/events/{id} returns one event, the same item; 404 when it
does not exist or is not public.
GET /api/public/objects lists every public object — events, groups,
places, offerings, projects, jobs, posts and people — most recently updated
first. Each entry has its type, name, canonical url, updatedAt and the
jsonLd its page publishes. It takes type, locale, limit and cursor.
Lists answer { "@context": "https://schema.org", "items": [...], "nextCursor": ... };
nextCursor is null on the last page. A malformed argument is a 400 naming
the parameter, and a locale that names no place is a 404.
Sitemaps
/sitemap.xml is an index of three files:
/sitemap-static.xml (the public pages),
/sitemap-events.xml (upcoming events and those that
ended in the last 30 days, each with its last update) and
/sitemap-objects.xml (every other public object).
Signed-out visitors can browse upcoming events at /events.
MCP
The MCP endpoint is POST /api/mcp (JSON-RPC 2.0). Without a token, a client
can list and call the public tools: rivr.events.upcoming and
rivr.discovery.list (the same data as the two list endpoints above), the
handbook's rivr.wiki.search, rivr.wiki.read and rivr.wiki.glossary, and
the published-form tools. They are documented with the rest in the
MCP reference.
Anything else needs a scoped token. A headless client gets one with the device
flow (RFC 8628): POST /api/mcp/device/code returns a device_code and a
user_code; the person opens /mcp/authorize?user_code=… and approves; the
client polls POST /api/mcp/device/token with the device_code until it
returns the token. See Auth models for the OAuth flow and
scopes. A token that has expired or been revoked is answered HTTP 401 with a
WWW-Authenticate header naming /.well-known/oauth-protected-resource, so the
client knows to authorize again.
The handbook
Every user-facing surface is documented in the wiki, readable
without an account — as one file at /docs/wiki/index.json, or a page at a
time as Markdown at /docs/wiki/<page>.md.