Thank you for your interest in contributing!
By participating, you agree to abide by our Code of Conduct.
- Node.js >= 22 (24 recommended — see
.node-version) - npm >= 10 (latest LTS recommended)
git clone https://github.com/Decentral-America/node-api-js.git
cd node-api-js
npm install| Command | Description |
|---|---|
npm run build |
Build distribution files |
npm test |
Run tests with Vitest |
npm run test:watch |
Tests in watch mode |
npm run test:coverage |
Tests with V8 coverage |
npm run typecheck |
TypeScript type checking |
npm run lint |
Biome lint |
npm run lint:fix |
Biome lint with auto-fix |
npm run format |
Format with Biome |
npm run validate |
Full CI validation pipeline |
npm run bulletproof |
Format + lint fix + typecheck + test |
npm run bulletproof:check |
CI-safe: check format + lint + tc + test |
- Fork → branch from
main(feat/my-feature) - Make changes with tests
npm run bulletproof- Commit with Conventional Commits
- Push → open PR
feat: add new method
fix: handle edge case
docs: update API reference
chore: bump dependencies
test: add coverage for X
refactor: simplify implementation
- Strict mode — all TypeScript strict flags enabled
- Biome — auto-formatting on commit
- Coverage — thresholds enforced
- Immutable — operations return new instances where applicable
- Tests added/updated
-
npm run bulletproofpasses - Documentation updated if needed
- Commit messages follow conventional commits