Data model
The tables the registry keeps in Postgres, and what lives in storage.
The registry keeps its records in a Postgres schema, sypnia_skills, and the packages in storage.
| Table | Holds |
|---|---|
publishers | handle, whether a person or an organization, its account or organization, verified domain |
publisher_members | who holds the publisher or admin role of an organization’s publisher |
skills | publisher, name, description, visibility, kind, homepage, repository |
versions | version, state, SHA-256, size, the manifest, touches, signature and key, provenance, yank reason, who published it |
findings | the result of each check: check, file, line, message |
reviews | the reviewer, the decision and its notes |
tokens | name, scopes, a hash of the token (never the token), expiry, last use |
trusted_publishers | the repositories, branches and workflows allowed to publish a skill |
reports | reports from people, and what was done |
install_counts | installs per skill, version and day; no people, no addresses |
keys | the public signing keys and the dates each is valid |
Storage
| Path | What it is |
|---|---|
packages/<publisher>/<name>/<version>-<sha256>.tar.gz | a version’s package; written once, never overwritten |
uploads/ | packages being published; deleted after 24 hours |