Static pages, enhanced in the browser#
The website represents Seedworks Labs, the software studio, introduces its products and explains the shared ecosystem and user-first principles. The wiki is the studio's technical reference. Neither should describe the brand as a collection of unrelated apps.
The repository seedworkslab.github.io serves https://seedworkslab.de. It is a static GitHub Pages site—not a server-rendered React app. Authored HTML provides the base document; ES modules add account behavior, language switching and GitHub release/README content.
The repository name remains seedworkslab.github.io even though the public custom domain differs. CNAME, robots.txt and sitemap.xml belong to that deployment, separately from this wiki.
Page and module map#
| File / directory | Responsibility |
|---|---|
index.html |
Landing page |
apps.html |
Product index |
apps/coconut/, apps/banana/, apps/cherry/, apps/grape/ |
Dedicated product/download/release pages |
about.html, contact.html |
Public information |
account.html |
Sign-in/up, recovery, profile, password, usage and deletion views |
oauth/consent.html |
Central OAuth approval UI |
404.html |
Ordinary website not-found page |
assets/css/styles.css |
Shared styling |
assets/js/main.js |
Public-site interactions |
theme-init.js, language-init.js |
Early preference initialization |
i18n-core.js, i18n.js, translations.js |
Locale selection, translation application/catalog |
account-config.js, account-core.js, account.js |
Public backend config, testable account service, DOM orchestration |
profile-picture.js |
Image selection/crop/encoding/editor |
oauth-core.js, oauth-consent.js, oauth-grants.js |
Request validation, consent and grant management |
app-page-core.js, app-page.js |
Testable release logic and browser fetching/rendering |
assets/vendor/supabase/ |
Pinned self-hosted Supabase JS distribution and license |
Public product pages#
app-page.js fetches GitHub releases and repository README content for the configured product. app-page-core.js contains the pure normalization, classification and selection rules.
Release records are normalized before rendering. Drafts are excluded. The latest stable selection excludes prereleases, while the history can include published prereleases. Pagination is bounded to ten pages of 100 releases rather than an unbounded API crawl.
assetKind classifies APK, AppImage, DEB, RPM, ZIP, DMG, Windows installers and checksum files. selectAsset prefers a canonical APK name or a matching versioned APK, and selects Linux types in a defined order. Classification by extension alone does not prove a particular platform artifact exists.
trustedReleaseUrl constrains download/tag links to the known product repository release paths on GitHub over HTTPS. That avoids accepting arbitrary URLs from a malformed release response.
Release notes#
extractReleaseNotes accepts one bounded section between:
<!-- seedworks:release-notes:start -->
published user-facing notes
<!-- seedworks:release-notes:end -->
Missing, duplicated or incorrectly ordered markers result in no extracted notes. This is intentional: release plans, arbitrary HTML or an entire build log should not become a changelog.
The browser renders notes as text with limited paragraph/heading/bullet structure. Older releases use disclosure controls; notes remain tied to the published release. Updating public GitHub release text can change the displayed feed without rebuilding the website.
README sanitization#
GitHub README HTML is not inserted as trusted application markup. sanitizeReadme and sanitizeNode reconstruct allowed elements, strip unsafe structures/attributes and rewrite links/images under explicit rules. README content remains external content, not executable application code.
When extending rendering, test dangerous URL schemes, event-handler attributes, embedded frames/scripts and malformed nodes. Do not replace the sanitizer with innerHTML assignment to raw fetched text.
Language and theme#
The website supports English, Hungarian and German. The preference key is seedworks-language; the first supported browser language is used when there is no saved preference, with English as fallback.
translations.js keys translated strings by authored English copy. i18n.js updates text and accessibility attributes while preserving page structure, form state and user content.
studio-copy.js contains the studio identity and product-positioning translations, merged into the same catalogue. Brand copy consistently identifies Seedworks Labs as the studio, not as a collection of unrelated applications.
Dates/numbers follow the selected locale. Usernames, devices, technical confirmation text and external release/README content are not blindly translated. Mark user/external content with translate="no" when adding new dynamic views.
Preference changes can synchronize across same-origin website tabs. App subdomains have independent preferences/storage. No translation service is contacted.
Account and consent integration#
account.html delegates validation/backend calls to createAccountService, while account.js owns DOM views and auth-event transitions. It uses the vendored Supabase SDK with persistent PKCE sessions and explicit email-code processing.
oauth/consent.html shares the central origin/session, so a person already signed in centrally can authorize Coconut without entering the password again. The Coconut app origin still receives its own delegated session, not a copied central token.
Read authentication and OAuth for the complete service boundaries.
Profile pictures#
profile-picture.js accepts JPEG/PNG/WebP source files up to 10 MiB and provides crop, zoom, reset and positioning controls. Canvas re-encoding produces a processed 256×256 PNG without the original image metadata.
Only the processed crop is sent to the profile RPC. Editing again starts from the saved crop unless the original is uploaded again; the original is not retained as a cloud editing asset.
The server separately enforces PNG signature/dimensions/size. Client canvas processing is usability/privacy work, not a replacement for server validation.
Hosting and security constraints#
The site uses same-origin scripts/assets and a meta Content Security Policy with narrowly configured network access. The account page has no-referrer behavior, refuses framing and is excluded from search indexing.
GitHub Pages cannot provide arbitrary per-page HTTP response headers. A meta CSP cannot supply all the protection of server headers such as frame-ancestors, HSTS or Cache-Control: no-store. Browser-stored sessions remain accessible to compromised same-origin JavaScript.
The hosted Coconut application lives at coconut.seedworkslab.de, deployed by Coconut. /apps/coconut/ is a product page. The removed /apps/coconut/web/ route is not an alternate login/cache migration mechanism.
Local verification#
From seedworkslab.github.io/, run npm test and npm run check. The latter syntax-checks authored JavaScript; tests cover release normalization, safe links, account flows and translation coverage. Browser acceptance is still needed for crop controls, email flows and real OAuth redirects.