Contributing
The Cooperative project welcomes contributions. This page describes how to install dependencies and run the project locally. Policies for issues, pull requests, commit conventions, and code style are maintained in the repository’s Contributing guide; please read that document before opening substantial work.
Working on the SDK
Section titled “Working on the SDK”After cloning the repository, work from the repository root and use the following commands as needed:
pnpm installpnpm dev # watch buildpnpm run typecheckpnpm run build:dev # dev build (localhost API)Run pnpm run build when you require a production-oriented build. Additional context and expectations for SDK changes are covered in CONTRIBUTING.md.
Working on the documentation
Section titled “Working on the documentation”The documentation site is implemented under docs/. From the repository root, the recommended workflow uses the scripts defined in the root package.json:
pnpm run docs:installpnpm run docs:dev # http://localhost:4321pnpm run docs:typecheckpnpm run docs:build # optional: full build checkAlternatively, you may install and run commands directly inside the docs/ directory (pnpm install, pnpm dev, pnpm run build). For extended instructions, refer to docs/README.md in the repository.
Pull Request Process
Section titled “Pull Request Process”1. Before creating a pull request
Section titled “1. Before creating a pull request”From the repository root, run the checks that apply to your change. SDK work should pass typecheck and build; documentation work should pass the docs checks (and typecheck at the root if you touched shared expectations described in CONTRIBUTING.md).
# SDK-related changespnpm typecheckpnpm build
# Documentation changes (and whenever you edit files under docs/)pnpm run docs:typecheckpnpm run docs:build2. Branch strategy
Section titled “2. Branch strategy”- Integration branch:
develop— open pull requests againstdevelop. - Source branch: create your branch from
developafter it is up to date. - Naming (examples):
feat/feature-name— new functionalityfix/bug-description— bug fixesdocs/topic— documentation onlychore/task-description— maintenance
3. Opening and describing the pull request
Section titled “3. Opening and describing the pull request”Push your branch to your fork or to the remote you use for collaboration, then open a pull request targeting develop. Summarize what changed, why and how you verified it. Prefer focused changes (one coherent goal per pull request when practical) so review stays efficient.
4. Review
Section titled “4. Review”Maintainers will review when available. Update the branch if requested, reply to review comments, and keep the pull request description accurate if the scope shifts.