Skip to content
Will Luck edited this page Nov 13, 2026 · 7 revisions

API

Waymark serves what its pages show as JSON, a live stream and an Atom feed, for dashboards, uptime monitors and feed readers. Every endpoint only reads, and none needs a token. Back to the README.

There is no login here either. Anyone who can reach the page can read all of this. See Privacy.

Contents

Endpoints

Endpoint What it gives
GET /api/site.json Everything the pages show, in one document
GET /api/p/<slug>.json One project, as in projects below; 404 for an unknown slug
GET /api/live.json The header's state and a hash for each project
GET /healthz Whether every source is OK, for uptime monitors
GET /events Live updates as Server-Sent Events
GET /feed.atom The newest 100 events as an Atom feed
POST /api/refresh Asks for an early read of every forge
  • JSON answers are UTF-8, gzipped when the client asks for it. Times are RFC 3339.
  • /api/search.json feeds the page's search box. It is not part of the API and can change in any release.

Stability

Fields are added, never renamed or removed. A new release can add a key anywhere, so read the keys you need and ignore the rest.

Site JSON

GET /api/site.json. Its top-level keys:

Key What it holds
generated_at When this data was assembled
sources Each source's name, ok, refreshed_at, and its error or note when there is one
stats The overview's counts: total projects, active, live, quiet, dormant, on_hold, archived, needs_you, open_issues, open_prs, releases_last_30d, ideas
categories Each category's key, label, icon, hue and project count
projects Every project in the overview's order: slug, name, tier, headline, its repo, deploy, probes, issues, PRs, CI runs, commits, releases, notes, ideas and links
needs_you Each item that waits on you: project, verb (Fix, Deploy, Review, Confirm or Decide), text, level, at, href
events The activity feed: the last 14 days, newest first
releases Releases of every project, newest first, the last 18 months
heatmap A year of daily commit counts: days, max, total
ideas Every idea
graph The map's nodes and edges
roundup_date The date of the ideas file
meta The site's title and timezone, which optional sources it has, and each forge's name

Live state

GET /api/live.json is what the page reads when its live stream comes back.

Key What it holds
refreshed_at When the current data was assembled
sources Each source the page shows: name, label (its name on the page), ok, refreshed_at, and its error or note
hashes Each project's slug and a hash that changes whenever anything shown for it changes

Health

GET /healthz answers 200 whenever the server is up:

{
  "ok": true,
  "generated_at": "2026-11-13T14:02:00Z",
  "sources": [
    {"name": "github", "ok": true, "refreshed_at": "2026-11-13T14:01:58Z"}
  ]
}
  • Server up: check for the status 200.
  • Every source OK: check the field ok at the top ($.ok is true). It is false while any source fails, and sources says which, with its error. In Gatus: [BODY].ok == true.
  • No HEALTHCHECK is built into the image: add one in your own runtime if you want it.

Live stream

GET /events is a Server-Sent Events stream. It starts with retry: 5000, sends a : ping comment every 25 seconds, and these events:

Event data
project {"slug": "...", "hash": "..."}: that project changed
activity One new event, with the keys of events above
tick The header's state: /api/live.json without hashes
  • At most 256 streams are open at once. The next one gets 503 with Retry-After: 30.
  • A stream ends after 30 minutes. Connect again; a browser's EventSource does that on its own.

Atom feed

GET /feed.atom gives the newest 100 events, newest first, as Atom (application/atom+xml). Each entry's id is made from the event's id, so it never changes, and its link is the project's page.

  • ?kind= keeps the kinds you list, comma separated: release, deploy, container, ci, commits, issues, probe, note, tier. An unknown kind or project gives an empty feed.
  • ?project=<slug> keeps one project's events.
  • The same privacy as the page: a repo the page hides is not in the feed.

For example /feed.atom?kind=release,ci&project=beacon follows one project's releases and CI.

Refresh

POST /api/refresh asks for an early read, as Refresh now in the page's command palette does.

  • What it costs: an early run of the normal pass. Every forge is listed again, and a repo's detail is read only when its list entry moved or its last read failed. Mirrors read in the last 5 minutes, and the heatmap, filed-idea search, F-Droid and probes read in the last 2 minutes, are not read again. A rate-limited forge is not asked.
  • At most one a minute: the answer is 202 with {"queued": true}, or {"queued": false, "next_at": "..."} when one started less than a minute ago.
  • Turn it off: refresh: false in the config file (or WAYMARK_REFRESH=false) makes it answer 404, and the palette has no Refresh now.
  • Cross-site: a request that another site makes a browser send (Sec-Fetch-Site of cross-site or same-site) gets 403.

From a push webhook

A forge webhook can call it on every push, so a push shows up without waiting for the next list (Waymark lists every forge once a minute anyway). In Gitea or Forgejo: the repo's or the org's Settings, Webhooks, a Gitea webhook to https://status.example.com/api/refresh, method POST, for push events. The forge must reach Waymark: behind a login, let the forge's address through to /api/refresh, or skip the webhook.

Dashboards

A Homepage Custom API widget with the project count and the Needs you count:

# services.yaml
- Status:
    - Waymark:
        href: https://status.example.com
        description: Project status
        widget:
          type: customapi
          url: http://waymark:8080/api/site.json
          refreshInterval: 60000
          mappings:
            - field:
                stats: total
              label: Projects
              format: number
            - field:
                stats: needs_you
              label: Needs you
              format: number
  • Once a minute is enough: site.json holds every project's detail, so it is large on a big site, and Waymark reads the forges once a minute.
  • Behind a login: point the widget at Waymark's own port from the dashboard's network, not through the login proxy.

Clone this wiki locally