Skip to main content
GatoJS is a working Next.js application (the core plus optional modules) whose code is copied into every new project. A change in the kit reaches every project built from it, so the bar is correctness first. Contributions are welcome: bug reports, fixes, documentation and new modules. The repository is github.com/webamigos/gatojs.
GatoJS is moving from an internal kit to an open-source project. Parts of the in-repository documentation are still in Polish; English is the language for all new content.

Before you start

  • For anything larger than a small fix, open an issue first so we can agree on the approach.
  • Read AGENTS.md and CLAUDE.md in the repository root. They are the rules for humans and AI agents alike: data access through getOrgContext() with an organizationId filter, the service mode contract, no code comments except // WHY:, no edits to generated files. The code patterns guide explains them.
  • Kit-only rules (the CLI, manifests, releases) are in kit/CLAUDE.md; this tab explains them: Kit repository, New kit module, Releases.
  • New decisions are recorded as ADRs in docs/adrs/; known gotchas are collected in docs/lessons.md.

Set up

You need Node.js 22 with npm 11 (packageManager pins npm@11.21.1; older npm rewrites package-lock.json). The kit repository is a full reference app with every module installed; see Installation for ports, environment variables and the first admin.

Issues

  • Bugs and feature requests: GitHub issues, using the templates. Include the kit version (kitVersion in .wa/kit.json of your project, or the commit), steps to reproduce and what you expected.
  • Security vulnerabilities: never in a public issue. See Security.

Pull requests

  • Target main and keep a pull request to one concern. Fill in the pull request template.
  • Commit messages follow Conventional Commits with a lowercase subject, for example feat(core): … or fix(uploads): …. Husky runs lint-staged and commitlint on commit. Commit types also decide kit releases, so pick them carefully: feat releases a minor version, fix and perf a patch (Releases).
  • Tests for every behaviour you change. A bug fix comes with a test that fails without the fix. Expected values are literals or come from a spec, never from the code under test. See Testing.
  • Mutation gate. Data access, auth, organizations and roles are covered by mutation testing: npm run test:mutation:task -- <files> and npm run test:mutation:gate. A surviving mutant needs a test, or a justified allowed entry that a maintainer approves.
  • Kit files. If you change files of a kit module, bump that module’s version in kit/modules/<module>.json and run npm run wa -- kit sync.
  • Generated files. Never edit generated files or wa:* regions; run npm run wa -- generate and commit the result.
  • User-facing text goes into both pl and en messages.
  • Schema changes need migration notes for projects, since the kit commits no migrations.

Verify before you push

npm run verify runs lint, typecheck, unit tests and a production build of the app, then the workspace packages’ own checks and the hook tests. For tool package changes also run that package’s gate:
After a change in packages/gato-cli/src, commit the rebuilt bundle .wa/bin/wa.mjs with it (Kit repository).

Code review

You do not need CodeRabbit. Review your own change against .claude/skills/wa-code-review/SKILL.md, the checklist of what npm run verify cannot check (organization scoping, service mode, generated files, tests, i18n), and tick the pull request template. In Claude Code the same checklist runs as the wa-code-review skill. If CodeRabbit comments on your pull request, treat its comments like any reviewer’s. A pull request merges on the required checks and a maintainer’s approval.

Security

Report vulnerabilities privately to security@webamigos.pl or through GitHub private vulnerability reporting. Include the affected area (core, a kit module, the CLI), the kit version, steps to reproduce or a proof of concept, and the impact as you understand it. A partial report is better than none. Reporters are credited in the release notes unless they ask not to be. Organization isolation, authentication and roles, the signup gate and invitations, the kit modules and the CLI are in scope. Third-party dependency issues without a GatoJS-specific impact, projects that changed the affected kit code, and findings that need a compromised machine or admin account are out of scope. Fixes go to the latest kit version; projects pick them up with gato update.

Code of conduct

Everyone taking part follows the Contributor Covenant Code of Conduct.

License

GatoJS is licensed under the Apache License 2.0. By contributing, you agree that your contributions are licensed under the same license.