Source of privateaim.de, the website of PrivateAIM (Privacy-Preserving Analytics in Medicine) and its federated analysis platform FLAME. The site is available in English and German (/de/...).
- Vue 3 with TypeScript and
<script setup> - Vite and vite-ssg: every page is prerendered to static HTML
- Vue Router with one route per page and locale
- ilingo for translations
- ESLint via
@tada5hi/eslint-config, which also handles formatting - Hosted on GitHub Pages
Requires Node.js 24.3 or newer and npm.
git clone https://github.com/PrivateAim/website
cd website
npm install
npm run devThe dev server runs at http://localhost:5173.
| Command | Purpose |
|---|---|
npm run dev |
Start the dev server |
npm run build |
Type-check and prerender the site to dist/ |
npm run build-only |
Prerender without type-check |
npm run preview |
Serve the build output locally |
npm run type-check |
Run vue-tsc for the app and the build scripts |
npm run lint |
Lint and check formatting (the CI gate) |
npm run lint:fix |
Lint with auto-fix |
npm run check-dist |
Check the build output: sitemap, head tags, hreflang |
npm run check-links |
Check all external links in dist/ |
src/
views/ one component per page
components/ shared and page section components
data/news/ news entries per locale (en.ts, de.ts)
data/privacy/ privacy policy (Markdown)
data/references/ predecessor projects (/references/...)
i18n/locales/ UI translations (en.ts, de.ts)
router/ routes, page titles and descriptions, scroll handling
seo/ structured data (JSON-LD)
assets/ colour tokens (dark-mode.css), fonts
scripts/ prerender, sitemap, avatars, thumbnails, build checks
public/ static files: images, PDFs, robots.txt, llms.txt
- News: Add an entry to
src/data/news/en.tsandsrc/data/news/de.ts, and put the images inpublic/images/news/. Thumbnails are generated at build time. - Texts and labels:
src/i18n/locales/en.tsandde.ts. Every key needs both languages. - New page: Add the view, add the route with title and description in
src/router/index.ts, and add the path to the prerender list inscripts/prerender.ts. - Colours: Only use the tokens from
src/assets/dark-mode.css, which has a light and a dark palette. - Team avatars: These are fetched from GitHub at build time.
- Deploy: Every push to
masterbuilds the site and deploys it to GitHub Pages. A daily scheduled build picks up changed team avatars. - CI: Lint and build run on every pull request.
- Links: A weekly job checks all external links.
- Branches: Work on a feature branch and open a pull request against
master. - Before pushing: Run
npm run lintandnpm run build. - Commits: Use Conventional Commits (
feat:,fix:,chore:). Releases are created by release-please.