Publishers
Declare your website
A website that publishes signed records can ask to be listed in the publisher index on typedstandards.org, which the Publishers page shows. It declares itself with one signed record, served from the website itself, and one pull request. Read what declaring makes public before you start.
What declaring makes public
- Your website is listed on the Publishers page of typedstandards.org, and in the machine-readable file of the same list. It is listed under the display name your declaration gives, with the day you were listed and the day of the latest check.
- The listing links to your website, and to your records list and your policies when your declaration gives their https addresses. typedstandards.org links to them. It does not crawl or copy your records.
- The number of lookups of your records on the typedstandards.org verifier is published beside your listing. It covers the last 30 days, and the time since the day you were listed. Lookups from before that day are not published. The list is alphabetical, never ordered by count.
- Your website's origin is written in a public file of the typedstandards repository. The repository's history keeps it even after you withdraw or it is removed from the file.
- The pull request, the account that opens it, and the report of the check on that pull request are public in the typedstandards repository. So are the name and email address in its commit. All of it stays public after a withdrawal.
Declaring gives your records nothing in the verifier, which does not read the index. The “Known publisher” label is a separate step that typedstandards.org decides.
You can withdraw at any time; Withdrawing, below, gives the steps. Withdrawing takes your listing and your published count off the Publishers page and the machine-readable file. It does not take your origin out of the repository's history, and it does not remove the pull request or copies others made.
How to declare
- Use an origin that is yours alone. An origin is your website's https address with no path and no / at the end, for example https://<your-host>. Write an internationalized name in its ASCII form. Serve your declaration file, your key registry and your records from that one origin. The declaration file and the key registry must be there. No check looks at where your records are, but lookups are counted under the website a record is fetched from. Records served from another origin are not in your count. A website shared with other accounts or projects cannot be listed: give your website a custom domain or subdomain first.
- Write the declaration's input,
host.json. It must give your origin, a display name you choose, and the name of this index, https://typedstandards.org. It must also name the signer, with the identifier and the key id your key registry lists. It may give the addresses of your records list and your policies. - Sign it with a key your key registry lists as active. The command-line tool reads that key's seed from the environment variable
TYPEDSTANDARDS_SIGNING_SEED_B64, and signs with it:npx @typedstandards/cli declare --input host.json > declaration.json - Build your declaration file from the signed declaration, naming your key registry's address:
npx @typedstandards/cli view --signed declaration.json --visibility public --trust-registry-url https://<your-host>/.well-known/typed-publisher.json > typed-host.json - Check the file with the command-line tool before you serve it:
npx @typedstandards/cli verify --input typed-host.json - Serve the declaration file,
typed-host.json, from your website at https://<your-host>/.well-known/typed-host.json. Keepdeclaration.json: a withdrawal is built from it. - Open a pull request in the typedstandards repository that adds your origin, and nothing else, to
apps/web/declared-hosts.json. The pull request runs the check and reports the reason for any refusal. - Sign off the commit in that pull request:
git commit -sadds aSigned-off-byline with your name and email address. The repository requires that line on every commit. - A maintainer of the typedstandards repository reads the pull request's checklist and merges it once its checks pass.
- After the pull request is merged, typedstandards.org checks your website once a day. You are listed at the first check that passes. That day, in Coordinated Universal Time (UTC), is your listed day.
A declaration needs no timestamp and no transparency-log entry. If it carries either one, the check verifies it too, and refuses a declaration whose timestamp or log entry fails.
The daily check fetches two files from your website: your declaration file, which carries any withdrawal, and your key registry. It does not read your records. If the declaration file or the key registry cannot be fetched, your listing stays. It is marked with the day of that check and the day of the last good one.
A later check may fetch your declaration and find that it does not pass, for example after a key change. Your listing then stays, marked, and keeps its listed day. Your count is not published until you serve a declaration that passes. It then covers every day since your listed day.
If the check refuses a declaration, it gives the reason and what to change.
Withdrawing
At the next daily check, your website leaves the Publishers page and the machine-readable file, and your published count leaves with them. A withdrawn website stays off the list even when it cannot be reached.
Your origin stays in the repository's file until a pull request removes it, and in its history after that. typedstandards.org cannot remove copies others made of the Publishers page, the machine-readable file or the repository. Those copies may still hold your name and count.
The pull request that added your website stays public in the typedstandards repository. So do the account that opened it, the name and email address in its commit, and the report of the check on that pull request.
After you withdraw, lookups of your records are still counted. They are published only inside typedstandards.org's monthly total across all websites, as for any website that is not listed.
Taking your declaration off your website does not withdraw it: your listing stays, marked, and its count is still published.
To withdraw, sign a withdrawal of your declaration with the key that signed it. Its input, withdraw.json, gives the declaration's envelopeHash as targetNodeId, a reason, and the declaration's signer. The command-line tool signs it:
npx @typedstandards/cli withdraw --input withdraw.json > withdrawal.jsonThen build your declaration file again with the withdrawal in it:
npx @typedstandards/cli view --signed declaration.json --visibility public --trust-registry-url https://<your-host>/.well-known/typed-publisher.json --withdrawal withdrawal.json > typed-host.jsonCheck it as before, and serve it at the same address.
If you can no longer sign with the key that signed your declaration, open a pull request that removes your origin from the repository's file. Your website leaves the Publishers page and the machine-readable file at the next daily check after it is merged.
If you declare again, you are listed with a new listed day, and your published count starts again from that day.
Removal
Without a request from the website, typedstandards.org removes a listing for two reasons: the listing impersonates another person or organization, or the website serves malware. Such a removal is a pull request that takes the website's origin out of the repository's file and states the reason.
A website can also ask for its own removal, by a pull request that takes its origin out of the repository's file. A maintainer merges it once the request is confirmed to come from that website.
A removed website leaves the Publishers page and the machine-readable file, and its published count leaves with them. Its origin stays in the repository's history.
To report a listing, or to question a removal, open an issue in the typedstandards repository.