Contributing
Bug reports, fixes, docs and new provider adapters are all welcome. For a larger change, open an issue first so we can agree on the approach before you write the code. Everyone taking part agrees to the Code of Conduct. Security problems go to security@codevibe.in, not to the issue tracker.
Setup
You need Node 22.18 or later and pnpm 10 (corepack enable picks the version from package.json).
git clone https://github.com/codevibe-technology/codevibe-sign.git
cd codevibe-sign
pnpm install
pnpm buildPackages import each other through their built output, so run pnpm build once before tests or type checks, and again after changing a package another one depends on.
Commands
| Command | What it does |
|---|---|
pnpm build | Builds every package with tsup (ESM, CJS, types). |
pnpm test | Runs every package's vitest suite. |
pnpm typecheck | Runs tsc --noEmit in every package. |
pnpm lint | ESLint over the repository. |
pnpm format / pnpm format:check | Prettier. |
pnpm --filter <package> test | One package, for example @codevibe_technology/sign-core. |
pnpm --filter site dev | This documentation site, with live reload. |
pnpm changeset | Adds a release note for your change. |
Making a change
- Core is pure: no I/O, only ports.
- Keep each package's public API in its
src/index.ts. ThrowSignErrorwith a stablecode. - Tests are required, next to the code as
*.test.ts. Cover the rules and the failure paths. Never commit real documents, keys or personal data. - New runtime dependencies must be well maintained and permissively licensed (MIT, Apache-2.0, BSD or ISC), pinned to an exact version, and justified in the pull request.
Commit messages
Conventional Commits (opens in a new tab):
feat(core): add sequential routing
fix(pdf): keep field boxes inside the page
docs(server): document the webhook retry policyWrite the subject in lower case and the imperative, without a full stop, in 72 characters or fewer.
Pull requests
Keep each pull request to one concern. CI runs lint, format check, build, type check and tests on Node 22 and 24. A maintainer reviews every pull request, and changes to sealing, verification, authentication or the audit log get a second review.
Contributor licence agreement
Before your first pull request is merged, you sign the contributor licence agreement (opens in a new tab). The CLA Assistant asks for it with a comment on the pull request, and you sign by replying with the sentence it shows. You keep the ownership of what you contribute; the agreement gives Codevibe Technology Private Limited a licence to publish it and the right to relicense it, and it commits Codevibe to keep accepted contributions available under the project's open-source licence. You do not need to sign off commits.
If you contribute as part of your job, your employer signs the corporate agreement (opens in a new tab) instead. Both texts are marked "draft, for legal review" until the final wording is approved.
Your contributions are published under the licence of the part you change: Apache-2.0 for the libraries, AGPL-3.0-only for packages/server and the apps (see LICENSING.md (opens in a new tab)). The server and the apps are also offered under a commercial licence, which the agreement allows.