Skip to content

feat: store website for extensions.tarnbrowser.com - #1

Merged
MadebyLeopold merged 13 commits into
mainfrom
feat/store
Nov 17, 2026
Merged

MadebyLeopold merged 13 commits into
mainfrom
feat/store

Conversation

@MadebyLeopold

@MadebyLeopold MadebyLeopold commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

What changed

A static store website for extensions.tarnbrowser.com, built from the signed index and published with GitHub Pages.

  • site/store.py (Python standard library only): check validates the new store fields of catalog.json (author, homepage, category, icon, screenshots); build renders the site from the signed index.json / index.sig the sign job produced.
  • Pages: home with search and category chips, /category/<id>/, /extension/<id>/ (icon, author, version, description, screenshots, permissions and sites in plain language, homepage, Install in Tarn), /install/<id>/ (shown outside Tarn, no download), /index.json and /index.sig byte-identical, /search.json.
  • Search: a small unminified script over /search.json; without JavaScript every extension is still listed and category pages work. ?q= and &category= keep results linkable.
  • No cookies, storage, analytics or third-party requests; fonts (Geist, Funnel Display, OFL) are self-hosted; strict CSP by meta tag.
  • Look matches tarnbrowser.com; light and dark; phone width without horizontal scroll.
  • Footer links Imprint and Privacy to tarnbrowser.com (Quavon-dev/tarn-landing#1).
  • sign.yml gains site and deploy jobs (pages: write and id-token: write only in deploy, actions pinned by SHA); check.yml runs the store tests, checks the catalog's store fields, and builds a preview from fictional fixtures in site/fixtures/ signed with a throwaway key.
  • TRADEMARKS.md: the Tarn name and logo are not covered by the licence.

The Install in Tarn button links to https://extensions.tarnbrowser.com/install/<id>; Tarn handles that link (Quavon-dev/tarn-browser#51). The page gives the browser no channel: Tarn takes the entry only from its own verified catalog copy and asks before installing.

Screenshots

Taken from a build of the fixture catalog (fictional extensions).

Home, light and dark:

Home light
Home dark

Search and category:

Search "tab"
Category Reading

Extension page, light and dark:

Tab Tidy
Tracker Lens dark

Install link opened outside Tarn:

Install page

Phone:

Home on a phone Extension page on a phone, dark

Setup after merge

  1. Settings › Pages › Source: GitHub Actions; custom domain extensions.tarnbrowser.com.
  2. DNS: CNAME extensions → quavon-dev.github.io (done); once the certificate is issued, tick Enforce HTTPS.
  3. tarnbrowser.com is verified for the organisation's Pages (done), so no other account can claim the name.
  4. Merge and deploy Quavon-dev/tarn-landing#1 first, so the footer's Imprint and Privacy links resolve.

Checks

  • No catalog entries are added or changed (the package, permission and store-field items below do not apply); store.py check catalog.json: 0 entries ok
  • python3 -I -m unittest discover -s site: OK
  • Each new or changed entry's package was reviewed, mirrored as a release asset of this repository, and its sha256 and size match — n/a
  • permissions and hosts match the package's manifest — n/a
  • author, homepage, category, icon and screenshots describe the extension accurately — n/a
  • A removed package is listed in revoked — n/a
  • No secrets, credentials or personal data in the diff

Catalog entries gain store-only fields (author, homepage, category,
icon, screenshots) that Tarn's index parser ignores. site/store.py
validates them against assets/<id>/ and builds a static site from the
signed index: home with search and category chips, category pages,
extension pages with an Install in Tarn link, /install/<id>/ fallback
pages, search.json, and the signed index.json and index.sig byte for
byte.

The Check job validates the store fields and builds a preview from
site/fixtures, signed with a throwaway key. Sign catalog builds the site
from the index it just signed and deploys it to GitHub Pages.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
The store now uses the landing page's brand: the Tarn mark and
wordmark header, Geist and Funnel Display (self-hosted under the SIL
Open Font License, licence texts beside them), the warm sky and navy
palette with lake accents, pill buttons and a footer with links back
to tarnbrowser.com. Dark mode follows the same navy and lake tokens.

The screenshot row is a labelled, focusable region whose items take
78% of the width up to 480px, so on narrow screens the next screenshot
peeks in, and it scrolls with the keyboard and snaps per screenshot.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
The icon on the extension page is top-aligned to the cap height of the title instead of centred on the title block, and the title column flexes so long bylines wrap beside the icon on narrow screens.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
Adds TRADEMARKS.md and a README section for site/static/mark.svg, pointing to Tarn's trademark policy, as tarn-browser does under section 7(e) of the GPL.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
Browsers ignore frame-ancestors in a <meta> policy and GitHub Pages cannot send headers. The README says so and why a framed store gives a page nothing: Tarn acts only on install links opened in a top-level tab.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
The diacritic range and the quotes are written as \u escapes, and the ?q= value is restored only if nothing was typed before search.json loaded.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
Every field is type-checked before use, so a malformed entry gives a clean error. Text fields refuse control, format and line or paragraph separator characters and have length caps. A homepage needs a lowercase ASCII host with no backslash, user, password or port, and the page shows that host. Icons and screenshots must be complete PNG or JPEG files with nothing after IEND or EOI, and screenshots at most 2560 px high as well as wide. site/test_store.py covers each refused case and runs in the check job.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
A PNG's IHDR must be 13 bytes and a JPEG may have only one frame header; any parse failure is reported as a damaged image instead of a traceback. Text refuses unassigned characters, Hangul and braille fillers, the combining grapheme joiner and variation selectors. Host patterns follow the WebExtension match-pattern grammar (scheme *, http or https; host *, *.<domain> or <domain>; no user or port) and show as the domain, with "and its subdomains" for *.<domain>. The six-screenshot test uses six distinct files so only the count limit refuses it, and refusals with a specific cause assert their message.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
…ones it may ask for

Tarn compares every host pattern the engine reads, required or optional, word for word with the entry's hosts, so the store accepts the WebExtension grammar: <all_urls>, *, http, https, ws, wss and ftp patterns with *, *.<domain>, <domain> or IP hosts and optional ports, file:/// paths and data:/urn: patterns. It still refuses userinfo, backslashes, whitespace, misplaced wildcards, empty hosts or ports and ports above 65535. Known forms read as "example.org and its subdomains", "localhost (port 3000)", "every site" or "local files"; others are shown escaped as written.

Because the catalog lists required and optional hosts together, the detail page lists them under "Sites it may ask for" with Tarn's note that it asks per site; host patterns in optional_permissions join that list. Permissions read in plain language, with Tarn's activeTab sentence, and unknown ones as "Uses the <name> API".

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
…bining marks

Text made only of whitespace and combining marks is refused, U+17B4 and U+17B5 join the invisible characters, and a character may carry at most two combining marks after canonical decomposition, which still admits Vietnamese and Thai.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
A PNG needs an IDAT chunk, a valid bit depth and colour type pair and at most 4 KiB of text chunks; eXIf and XMP chunks are refused. A JPEG needs a scan after its one frame header, and Exif or XMP (APP1), IPTC (APP13) and comment segments are refused, with a message to export the image again without metadata, so no camera, place or author data is published. The fixture JPEG loses the Exif and IPTC segments its export added.

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
…y page

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
@MadebyLeopold
MadebyLeopold requested a review from a team as a code owner November 17, 2026 08:23
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
@MadebyLeopold MadebyLeopold changed the title feat: store website for extension.tarnbrowser.com feat: store website for extensions.tarnbrowser.com Nov 17, 2026
@MadebyLeopold
MadebyLeopold merged commit 9321a99 into main Nov 17, 2026
6 checks passed
@MadebyLeopold
MadebyLeopold deleted the feat/store branch November 17, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants