Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

README.md

24 lines1.2 KB

1# modelschemas catalog data
2​
3A read-only mirror of the [modelschemas](https://github.com/TanStack/modelschemas)
4catalog, refreshed hourly from `GET /v1/admin/export`. D1 behind
5https://modelschemas.openstory.workers.dev stays the source of truth.
6​
7- `providers/<provider>.json`
8- `models/<provider>/<modelId>.json`
9- `schemas/<provider>/<endpointId>.json` (current input and output schema)
10- `feed.json`: the newest `/v1/changes` row when the export began, and the
11 recent ids already listed in a commit message
12​
13Each commit message lists the `/v1/changes` ids recorded since the last
14commit. The export is not one snapshot, so a commit's files can already hold
15a change the next commit lists. Fields that move on every poll (such as
16`lastSeenAt`) are left out, so a commit is a real change.
17​
18A run refuses an export that would delete over half the files (rerun with
19`MIRROR_ALLOW_SHRINK=1` if that is real), or whose latest change is gone or
20older than the mirror's (delete `feed.json` to re-seed).
21​
22**Pull requests here are overwritten by the next run.** A wrong fact is an
23adapter fix, not a data edit: open an issue on
24[TanStack/modelschemas](https://github.com/TanStack/modelschemas/issues).