Noyau
Sections

Documentation › Develop

Contributing to Noyau

Thanks for your interest. Noyau is a small project with one lead maintainer, so review time is the scarce resource. This guide keeps your effort and ours well spent. By taking part you agree to the Code of Conduct.

How we work

You have Do this
A question or need help Discussions › Q&A, see SUPPORT.md
An idea or a feature wish Discussions › Ideas first; it becomes an issue once a maintainer agrees on the scope
A reproducible bug An issue with steps, version and platform
A security problem A private advisory, never a public issue (SECURITY.md)
A fix or a small improvement A pull request; link the issue unless the fix is small and obvious
A larger change (new feature, new dependency, data format, API, UI redesign) An issue labelled status: confirmed before writing code. Unannounced large PRs are usually closed
A plugin Build it in its own repository from noyau-plugin-template, then ask for a listing in noyau-plugins

Good starting points: issues labelled good first issue and help wanted. Comment on the issue before you start so two people don't do the same work. A review or a test of an open PR is worth as much as a new PR.

What we usually decline

  • Features that fit better as a plugin.
  • Large refactors, reformatting or renames without a behaviour change.
  • New dependencies when a few lines of code would do.
  • UI changes that ignore the UI guidelines or come without screenshots.
  • Telemetry, ads, or anything that sends user data to a third party by default.
  • Code the author cannot explain (see AI-assisted contributions).

A PR that follows every rule can still be declined if it does not fit the project's direction. We say why.

Local setup

Requirements: Node.js 22, tmux, Git; Linux or macOS (Windows through WSL2).

git clone https://github.com/getnoyau/noyau.git
cd noyau
npm ci --include=dev
npm run dev                       # http://localhost:4242

Run a second instance next to your real one without touching its data:

PORT=5310 NOYAU_DATA_DIR=/tmp/noyau-dev npm run dev

Runtime data lives in .data/ and is never committed. Environment variables are listed in the configuration guide.

Checks

Command When
npm test Always. Unit tests run in an isolated temporary folder; npm test -- server/foo.test.js runs one file
node scripts/i18n-check.mjs When you add or change interface text
npm run build When you touch src/
npx playwright test e2e/<name>.spec.mjs When you change the interface; run the specs close to your change

CI runs the same checks on Linux and macOS for every pull request.

Project layout

Folder Content
server/ Express + WebSocket API and services, with *.test.js next to each service
shared/ Pure logic shared by client and server
src/ React interface (Vite); translations in src/locales/; demo data in src/demo/
bin/ The noyau CLI
plugins/, packages/plugin-sdk/ Built-in plugins and the plugin SDK
scripts/ Agent command-line tools, installers and builds
android/, ios/, desktop/ Mobile and desktop apps
packaging/ Homebrew, Winget and AUR packages
e2e/, test/ Browser and cross-cutting tests

Code conventions

  • Code, comments, commit messages and PR text are in English.
  • Match the style of the surrounding code; there is no formatter to argue with.
  • Prefer new small files over growing server/index.js or src/main.jsx.
  • Comments explain a non-obvious why, in one line.
  • New source files start with // SPDX-License-Identifier: AGPL-3.0-only (/* … */ in CSS, # in shell).
  • Add or update tests for behaviour you change: node:test next to the service, Playwright specs in e2e/ for the interface. Tests that create temporary folders delete them.
  • Never commit secrets (even fake ones that look real), .env files, .data/, databases, logs, build output or personal information.
  • Don't bump the version: maintainers do it at release time.

Interface and translations

  • Follow the UI guidelines: design tokens only, light and dark themes, desktop and phone.
  • Run the layout audit in your Playwright spec: expect(await auditUi(page, { scope: ".your-view" })).toEqual([]) (from e2e/ui-audit.mjs).
  • Interface strings are written in French in the code, wrapped in tr("…"), with translations in src/locales/en.json, es.json and de.json. node scripts/i18n-check.mjs lists what is missing. If you can't translate one language, say so in the PR and we'll help.
  • Screenshots use the demo mode (?demo=1) so they show no personal data.

Commits and pull requests

We use Conventional Commits. The PR title is checked automatically and becomes the commit message, so it matters most:

<type>(<optional scope>): <summary in the imperative, lower case>

fix(terminal): keep the cursor visible after a resize
feat(plugins): let a plugin declare its own settings page

Types: feat, fix, perf, refactor, docs, test, build, ci, chore, i18n, revert. Add ! after the type for a breaking change (feat(api)!: …) and explain it in the description.

A good pull request:

  • solves one problem; unrelated cleanups go in their own PR;
  • fills in the template: the problem, the change, and how you verified it ("tests pass" alone is not evidence);
  • includes before/after screenshots (light and dark, desktop and phone) for any visible change, uploaded to the PR, not committed;
  • stays reasonably small; above ~500 changed lines, split it or discuss it first;
  • is open for edits by maintainers ("Allow edits from maintainers").

Keep at most three PRs open at a time. Draft PRs are welcome for early feedback. A PR without activity for 30 days after a review request may be closed; you can reopen it.

Review and merge

  1. Automatic checks run: CI, PR title, description, labels, CLA.
  2. A maintainer reviews, usually within a week. Answer review comments with new commits; don't force-push during review unless asked.
  3. Once approved, the maintainer imports your PR: this repository is published from the maintainers' source tree, so the merge button is not used. Your change lands in a commit on main that keeps you as its author, and the PR is closed automatically with a link to that commit and the status: merged label. See docs/maintainers.md.

Contributor License Agreement

Noyau is released under AGPL-3.0-only and also offered under a commercial license. To make that possible, every contributor signs the CLA once: a bot asks you on your first pull request, and you reply with one sentence. You keep the copyright on your work. If you contribute for your employer, ask them to sign the entity version first (CLA.md).

The name and logo are covered by the trademark policy: forks are welcome under another name.

AI-assisted contributions

Coding agents are welcome here (Noyau is built to run them), with a human in the loop:

  • You understand, have run and can explain every line you submit.
  • Say in the PR which model and tool did most of the work.
  • Write issues, PR descriptions and replies yourself; quote and label any AI-generated text you paste.
  • Fully automated PRs or comments with no human behind them are closed.
  • No AI co-author trailers or "generated with" lines in commits.

Security

Report vulnerabilities privately; see SECURITY.md.

Edit this page on GitHub