- Svelte 65%
- TypeScript 31.4%
- CSS 3.2%
- HTML 0.3%
- Dockerfile 0.1%
| .github | ||
| docs | ||
| scripts | ||
| src | ||
| static | ||
| .dockerignore | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| bun.lock | ||
| Dockerfile | ||
| LICENSE | ||
| nginx.conf | ||
| NOTICE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Reseam website
The site at reseam.app: the home page, the patch catalog, the browser patcher, downloads, announcements, and the docs for writing patches, the CLI, and the API server.
It is a static SvelteKit 3 site (adapter-static) built with Tailwind 4 and Bits UI, and served by nginx.
Developing
bun install
bun run dev
dev and build first run docs:fetch, which pulls the documentation from the engine, CLI, and API repositories and renders it into src/lib/server/docs.json. The hub text at /docs/ comes from docs/index.md in this repository. To render docs from sibling checkouts on disk instead, run bun run docs:local. The build fails when two docs files map to the same URL.
vite dev cannot run the patcher's workers. Test /patch/ with bun run build && bun run preview.
Data
Every page is prerendered. Pages that show API data (patches, updates, requests, Reseam Manager downloads) are built with the API at API_URL (default https://api.reseam.app) and refresh from the visitor's configured API in the browser. Visitors can change that address in the settings dialog.
An update published after the build has no page of its own yet: the static 404.html fallback renders it in the browser from the API, so links posted by Relay work right away. The root layout and update pages load universally for that reason.
Requests need TURNSTILE_SITE_KEY (a build argument in the Dockerfile) for posting and voting; without it the list is read-only. /admin/ moderates requests and posts announcements with the API's admin token.
The Download page reads the latest CLI release from Forgejo at build time. Rebuild the site after a CLI release to update it.
Layout
src/lib/components/ui: design system components on Bits UI. Tokens live insrc/app.css.src/lib/components/<area>: components for one page or section.src/lib/patcher: the in-browser patcher state and helpers around@reseam/browser.src/lib/server: build-time data for prerendering.
Building
bun run build
bun run preview
Dockerfile builds the site and serves it with the nginx.conf beside it.
Checks
bun run check
License
AGPL-3.0-or-later, with additional terms under section 7 in NOTICE.