Docs truth-sweep against ground truth (package.json, CI workflows): - npm → pnpm across evergreen docs (pnpm 11.25.0 is the package manager; npx tsx → pnpm exec tsx, npx ts-prune/jscpd → pnpm dlx, npm ci → pnpm install --frozen-lockfile, package-lock.json → pnpm-lock.yaml) - Jest → Vitest in README, CONTRIBUTING, COMMANDS (vitest 4 is installed) - Node claims: README 20+ → 22.13+ (engines) with CI/deploy on 24; deployment.md "Setup Node 20 (npm cache)" → Node 24 (pnpm cache), and the pipeline line now shows `pnpm run verify` as CI actually runs - TypeScript 5.x claims → 6 (typescript ^6.0.3); Next.js 14 → 16 in BLOG_SYSTEM, guides/ARCHITECTURE, AI_BOT_SYSTEM_PROMPT - COMMANDS.md: dropped nonexistent `dev:cms` script; services list fixed to db/meilisearch/listmonk (no redis in compose) - HR_RUNBOOK: `npm run test -- src/…` → `pnpm run test src/…` (pnpm passes args without the `--` separator) Historical records (docs/archive/**, dated audit reports, UPGRADE_PLAN) left as-is — they describe what was true when written. Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
4.3 KiB
Contributing
Thanks for the interest. This document covers the practical workflow for shipping changes to Revamp-IT.
Ways to contribute
- Code — fix a bug, ship a feature, refactor, add tests
- Docs — improve the docs/ index, write a how-to, fix outdated reference material
- Translation — RevampIT ships in seven locales (de · en · fr · es · it · ja · ko); the message catalogues are in
src/i18n/messages/ - Triage — reproduce bug reports, label issues, close stale ones
- Design — UI/UX critique, accessibility audit, visual polish (mobile-first matters here)
- Operations — donate hardware, time, or money to the Verein itself; the platform is one part of the org
Prerequisites
- Node.js 20+
- A Postgres instance — start local Docker with
pnpm run services:up(port 5433). Production runs on self-hosted Postgres 17 on Hetzner. - (Optional, for full feature coverage) Meilisearch, Redis (upstash), Listmonk
Local setup
git clone https://github.com/bitbaum/evig.git
cd evig
cp .env.example .env.local # fill in DATABASE_URL, AUTH_SECRET, payment + email keys
pnpm install
pnpm run db:migrate # apply scripts/db/migrations/*.sql
pnpm run dev # Next.js on :3000
The app is a single Next.js 16 application. There is no separate API server, CMS server, or microservice — everything (pages, API routes, admin surface) lives in src/app/. Earlier iterations had a cms-api/ subproject; it is no longer maintained and its files are not part of the dev loop.
Full architecture orientation: docs/ARCHITECTURE_QUICK_START.md. Every package script: docs/COMMANDS.md.
Workflow
Branch naming
<type>/<short-slug> — for example feat/marketplace-shipping-cost, fix/pool-join-race, docs/refresh-readme, refactor/erfassung-pipeline.
Commit messages
Conventional commits. Types we use: feat, fix, refactor, perf, test, docs, chore, deps.
fix(api): pool join — wrap memberCount check + INSERT in FOR UPDATE tx
Lead the body with why, not what — the diff already shows what.
Before opening a PR
pnpm test # Vitest (7,500+ tests across 500+ suites)
pnpm run lint # ESLint
pnpm run typecheck # tsc --noEmit
pnpm run lint:umlauts # catches ASCII umlaut substitutes in German strings
CI re-runs all of these. PRs blocked by failing CI will not be merged.
Code standards (enforced, not suggested)
These are the rules the codebase actually relies on. Violations either fail CI or break things at runtime — read docs/BEST_PRACTICES.md for the full set.
| Rule | Why |
|---|---|
import { logger } from '@/lib/logger' — never console.log |
Structured logs; console.* is silently dropped in serverless |
Use TABLE_NAMES from @/config/database — never hardcode table strings |
One source of truth; renaming a table is one diff |
| Parameterized queries only — never string-concatenate user input | SQL injection |
Use CONTACT / ORG / LOCATIONS from @/config/org — never hardcode addresses, phones, emails |
Same SSOT principle, applied to org-level data |
Swiss German: ss (not ß), proper ä/ö/ü (never ae/oe/ue) |
Project locale standard; pnpm run lint:umlauts enforces it |
Wrap multi-statement writes in db.transaction(...) with explicit FOR UPDATE when needed |
Concurrency safety — TOCTOU races cost us real bugs in 2026-Q1 |
| Mobile-first responsive Tailwind, 44×44 minimum tap targets | Most users land on phones |
Reviewing
Code reviews focus on: correctness, the rules above, test coverage, and whether the change is the simplest thing that solves the problem (no preemptive abstraction). Tone is direct; don't take it personally.
Recognition
Contributors land in GitHub's contributor graph; significant contributions get a callout in release notes. We don't currently maintain a separate CONTRIBUTORS file — git history is the source of truth.
License
By submitting a contribution, you agree it is licensed under the project MIT License.