Repository navigation
API
ForgeMap 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 forge token. Back to the README.
Who can read it is who can see the page. With a config file or the quick-start variables, anyone who can reach the page can read all of this. Set up in the browser, while the page asks for sign-in (Only me, after signing in in setup, Ask for sign-in to see the page in Settings), it needs the session or the feed key. See Privacy.
- Endpoints
- The feed key
- Stability
- Site JSON
- Live state
- Health
- Live stream
- Atom feed
- Refresh
- Dashboards
| 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.jsonfeeds the page's search box. It is not part of the API and can change in any release.
On an install set up in the browser, while the page asks for sign-in, a feed
reader, a script or a webhook cannot type a password: it sends the feed key
instead. The key is fm_ and 32 characters, shown once in Settings,
Access, when Make a new key makes it (which also stops the old one).
It works three ways:
-
In the address:
/feed.atom?key=fm_.... -
As a Bearer token:
Authorization: Bearer fm_.... -
As a Basic password, with any user name:
https://reader:fm_...@status.example.com/feed.atom.
It opens /feed.atom, the /api/*.json endpoints and POST /api/refresh,
and nothing else: the pages and Settings still need you signed in. With
sign-in off, or with a config file, none of this needs a key.
Changing your password does not change the feed key, so feed readers and scripts keep working. If someone else may have used the account, press Make a new key as well.
Fields are added, never renamed or removed. Only a major version can rename or remove one, and the CHANGELOG names it. A new release can add a key anywhere, so read the keys you need and ignore the rest.
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. issues and prs hold the 10 newest open ones (issues also holds up to 10 of a mirror's); issues_all and prs_all (since 0.3.1) hold up to 50 of each per repo, each item naming its repo, with draft on a draft pull request; issue_repos lists the repos of a project that has more than one, with their open counts |
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 |
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
|
overview |
A hash of the overview's head (the tiles, the week strip and Needs you) and of which projects are on the board in which state. It changes when any of those does, and not for a newer refresh time alone |
hashes |
Each project's slug and a hash that changes whenever anything shown for it changes |
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
okat the top ($.okistrue). It isfalsewhile any source fails, andsourcessays which, with itserror. In Gatus:[BODY].ok == true. - No HEALTHCHECK is built into the image: add one in your own runtime if you want it.
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
|
renew |
{}: the stream ends here, as planned (see below) |
-
At most 256 streams are open at once. The next one gets
503withRetry-After: 30. -
A stream ends after 30 minutes, with a
renewevent andretry: 1000first, so a client can tell a planned end from a dropped connection. Connect again; a browser'sEventSourcedoes that on its own, a second later. - A write that waits 30 seconds ends the stream: a client that stops reading loses it.
GET /feed.atom gives the newest 100 events of the last 14 days, newest
first, as Atom (application/atom+xml). Each entry's id is
urn:forgemap:event: and the event's id, so it never changes; its title is
the event's text as the page words it, its category the event's kind, and
its link the project's page.
-
?kind=keeps the kinds you list, comma separated:release,deploy,container,ci,commits,issues,probe,note,tier. -
?project=<slug>keeps one project's events. - An unknown kind or project gives an empty feed, not an error.
- The same privacy as the page: a repo the page hides is not in the feed, and note changes are in it only with a notes source.
-
While the page asks for sign-in the feed needs the
feed key: give a feed reader
/feed.atom?key=fm_..., or the key as a Bearer token or Basic password. -
Links use the address the feed was read at. A proxy in front must
pass the original
Hostheader (for nginx,proxy_set_header Host $host), and one that ends TLS should sendX-Forwarded-Proto: https, or the links start withhttp.
For example /feed.atom?kind=release,ci&project=beacon follows one
project's releases and CI.
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 the projects and ideas files are read 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
202with{"ok": true, "queued": true}, or, when one was queued less than a minute ago,200with{"ok": true, "queued": false, "last_at": "...", "next_at": "..."}: the last was queued atlast_at, and the next can start atnext_at(RFC 3339, UTC). -
Turn it off:
refresh: falsein the config file (orFORGEMAP_REFRESH=false) makes it answer404, and the palette has no Refresh now. -
Cross-site: a request that another site makes a browser send
(
Sec-Fetch-Siteofcross-siteorsame-site) gets403.
A forge webhook can call it on every push, so a push shows up without
waiting for the next list (ForgeMap 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 ForgeMap: behind a login, let
the forge's address through to /api/refresh, or skip the webhook. Set up
in the browser, while the page asks for sign-in, give the webhook the
feed key: https://status.example.com/api/refresh?key=fm_...,
or the key as a Bearer token or Basic password.
A Homepage Custom API widget with the project count and the Needs you count:
# services.yaml
- Status:
- ForgeMap:
href: https://status.example.com
description: Project status
widget:
type: customapi
url: http://forgemap: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.jsonholds every project's detail, so it is large on a big site, and ForgeMap reads the forges once a minute. - Behind a login: point the widget at ForgeMap's own port from the dashboard's network, not through the login proxy.
-
While the page asks for sign-in (set up in the browser), add the
feed key to the widget's
urlas?key=fm_..., or send it as a Bearer token in the widget's headers.
Getting started
Using ForgeMap
Reference