Thanks for your interest in contributing!
git clone https://github.com/nansen-ai/nansen-cli.git
cd nansen-cli
npm install# Run tests (mocked, no API key needed)
npm test
# Run tests in watch mode
npm run test:watch
# Run against live API (requires NANSEN_API_KEY)
npm run test:live- Add the API method in
src/api.js - Add the CLI handler in
src/index.js - Add tests in
src/__tests__/api.test.jsandsrc/__tests__/cli.test.js - Update
src/__tests__/coverage.test.jswith the new endpoint - Update
README.mdwith documentation
- ES modules (
import/export) - Async/await for API calls
- JSDoc comments for public methods
- All output is JSON (for AI agent consumption)
- Fork the repo
- Create a feature branch (
git checkout -b feature/new-endpoint) - Make your changes
- Run tests (
npm test) - Commit with a clear message
- Push and open a PR
Please include:
- Node.js version
- CLI command that failed
- Error message (with
--prettyflag) - Expected vs actual behavior
Open an issue or reach out on Discord.