Skip to Content
Sevnly Docs

Contributor setup

Run a checkout, make a change, and check it locally.

Thanks for helping. Sevnly is a calm, open-source weekly planner, and contributions of every size are welcome: code, docs, translations, themes, pixel-art avatars, bug reports with steps to reproduce.

Status: early. The plan lives in PLAN.md; most apps are still being scaffolded (milestones in §19). Small, focused PRs that move a milestone forward are the most useful right now.

Before you start

  • Read the Code of Conduct. Be kind.
  • For anything bigger than a small fix, open an issue or a Discussion first so we can agree on the approach. You can also email ideas to [email protected] with [Idea] in the subject.
  • Security problems: don't open a public issue. See SECURITY.md.

Setup (about 5 minutes)

You need Node 24, pnpm 10, Docker, and (only for the native apps) Rust stable + the Tauri 2 prerequisites.

git clone https://github.com/HippoDev03/Sevnly.git
cd Sevnly
cp .env.example .env
pnpm install
pnpm services:up              # docker/docker-compose.yml: Postgres on localhost:5434, Mailpit on :8025
pnpm db:migrate
pnpm db:seed                  # verified dev account (login in .env: DEV_USER_*)
pnpm dev                      # web :4800, api :8787, collab :1234

Native apps:

pnpm --filter native tauri dev            # desktop
# iPhone / iPad: the native Swift app in apps/ios (needs Xcode), see PLAN.md §11.4

Port 5434 is on purpose, so Sevnly doesn't clash with other Postgres containers on 5432/5433.

Repo map

PathWhatLicense
apps/webAstro + React planner and websiteAGPL-3.0
apps/apiHono: REST, auth, remote MCP, jobsAGPL-3.0
apps/collabHocuspocus (Yjs) server + projectionAGPL-3.0
apps/nativeTauri 2 desktop (Windows, macOS, Linux)AGPL-3.0
apps/docsFumadocs siteAGPL-3.0
apps/mcp@sevnly/mcp stdio CLIMIT
apps/claude-pluginClaude Code plugin (MCP config + skill)MIT
packages/coreY.Doc schema, task ops, recurrence, permissions, auditAGPL-3.0
packages/db, auth, ui, configDrizzle schema, Better Auth config, components, shared configAGPL-3.0
packages/mcp-tools, themes, i18nReusable piecesMIT

How it fits together: docs/architecture.md.

Code conventions

  • TypeScript config: every package extends a preset from packages/config/tsconfig/: node.json for servers, CLIs and packages Node runs directly (api, collab, mcp, db, core…), react.json for the Astro/React UI. Both build on the strict base.json. Don't loosen strictness per package.
  • No build step for Node code: Node 24 runs .ts files directly, so only use TypeScript syntax Node can strip (erasableSyntaxOnly: no enum, namespace or constructor parameter properties) and write imports with the .ts extension.
  • Imports inside a package use the #/ alias for src/: import { createApp } from "#/app.ts" (defined in each package's package.json "imports", which Node, TypeScript and Vitest all understand; tsconfig paths would not work at runtime). Imports between packages use the package name: import { createDb } from "@sevnly/db".

Workflow

  1. Fork, then create a branch from main:
    • feat/<short-name>, fix/<short-name>, docs/…, i18n/<locale>, theme/<name>, chore/…
  2. Make your change. Keep PRs small and about one thing.
  3. Run the checks:
    pnpm check         # everything CI runs: Biome + typecheck + tests
    pnpm lint          # Biome
    pnpm typecheck
    pnpm test          # Vitest
    pnpm e2e           # Playwright (when you touched UI)
    cargo clippy       # only if you touched apps/native
  4. Commit with Conventional Commits: feat(web): add month view week column, fix(api): reject expired invite tokens, docs: explain rollover.
  5. If your PR changes behavior, add a changeset: pnpm changeset (which part, patch/minor/major, one user-facing sentence). PRs are squash-merged, so the PR title must be a Conventional Commit. Releases and tags are made by the release workflow, never by hand (see PLAN.md §16.1).
  6. Open the PR and fill in the template. The first time, the CLA Assistant bot comments with a link to sign the CLA: sign in with GitHub and click "I agree" (once, for all future PRs).

What reviewers look for

  • It works, and there's a test for any new logic (a branch, a parser, anything touching security or data).
  • No secrets, no tracking, no new network calls to third parties.
  • Every user-facing string goes through t() (see below).
  • Accessible: keyboard works, labels exist, contrast passes.
  • Security-sensitive code (packages/auth, packages/core, anything touching tokens, permissions, uploads or outbound requests) needs a review from a code owner.

AI-assisted contributions

Welcome. Sevnly itself is built in collaboration with Claude. The rules:

  • You understand and have tested everything you submit. "The AI wrote it" is not an explanation in review.
  • Say in the PR description which parts were AI-assisted.
  • Commits may include a Co-Authored-By: trailer.
  • AI-written code is held to the same bar: security, tests, no unexplained code.

Common contributions

Translate Sevnly

See docs/translating.md. In short: copy packages/i18n/locales/en.yml to your locale, translate the values (keep keys and {placeholders}), run pnpm --filter @sevnly/i18n build, keep lore names (Sev, the Margin) as they are, and open a PR with the i18n label. CI fails if keys are missing.

Add an MCP tool

  1. Define it in packages/mcp-tools with a Zod input schema, a one-sentence English description, and its scope (read, write or admin).
  2. Writes go through packages/core (never raw SQL) so they reach every client live and get logged in agent_actions with an undo entry.
  3. Destructive or bulk tools ask for confirmation with elicitation.
  4. Add a Vitest test using the MCP SDK client, and document it in docs/mcp.md.

Make a theme

See docs/making-a-theme.md. pnpm theme:new my-theme, edit tokens, pnpm theme:check my-theme, open a PR with the theme label.

Draw avatar parts or presets

Pixel-art parts live in packages/core/avatar/parts.ts as 24×24 character grids. Keep to the palette and the 1-pixel outline style. Art must be original (or CC0).

Lore

New lore goes through a PR to docs/lore.md and must map to a real feature or moment.

Supporter for contributors

On the hosted sevnly.com, each merged PR that a maintainer labels supporter-eligible gives 12 months of Supporter (stacking up to 36 months). Meaningful work counts: code, docs, translations, themes, avatar art, accessibility fixes, bug fixes. Typo-only changes don't. After merge, a bot comments with a claim link; link your GitHub account in Settings → Supporter to receive it. See PLAN.md §3.27.

Labels

LabelMeaning
good first issueSmall, well-described, good for a first PR
help wantedWe'd love outside help here
bug, feature, docsType
i18n, theme, mcp, native, web, api, collab, securityArea
supporter-eligibleMerged PR earns Supporter time (maintainers apply it)
needs-repro, needs-design, blockedStatus

License

By contributing you agree your contribution is licensed under the license of the folder you changed (AGPL-3.0, or MIT for apps/mcp, packages/mcp-tools, packages/themes, packages/i18n), and you sign the CLA once.

Questions? Open a Discussion or email [email protected].

On this page