Repository navigation
feat: store website for extensions.tarnbrowser.com - #1
Merged
Merged
Conversation
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>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Signed-off-by: Leopold <77323443+MadebyLeopold@users.noreply.github.com>
Merged
3 of 6 tasks
rgxdev
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):checkvalidates the new store fields ofcatalog.json(author,homepage,category,icon,screenshots);buildrenders the site from the signedindex.json/index.sigthe sign job produced./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.jsonand/index.sigbyte-identical,/search.json./search.json; without JavaScript every extension is still listed and category pages work.?q=and&category=keep results linkable.sign.ymlgainssiteanddeployjobs (pages: writeandid-token: writeonly in deploy, actions pinned by SHA);check.ymlruns the store tests, checks the catalog's store fields, and builds a preview from fictional fixtures insite/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:
Search and category:
Extension page, light and dark:
Install link opened outside Tarn:
Phone:
Setup after merge
extensions.tarnbrowser.com.extensions→quavon-dev.github.io(done); once the certificate is issued, tick Enforce HTTPS.tarnbrowser.comis verified for the organisation's Pages (done), so no other account can claim the name.Checks
store.py check catalog.json: 0 entries okpython3 -I -m unittest discover -s site: OKsha256andsizematch — n/apermissionsandhostsmatch the package's manifest — n/aauthor,homepage,category, icon and screenshots describe the extension accurately — n/arevoked— n/a