Skip to main content

Contributing Guide

Thank you for your interest in contributing! This document covers how to contribute to the API, SDK, and documentation.

Active Development

The Web3 Identity API is under active development. Features may change, and you may encounter bugs. We appreciate bug reports and feedback โ€” they help us improve!

Ways to Contributeโ€‹

TypeDescriptionWhere
๐Ÿ› Bug ReportsFound something broken?GitHub Issues
๐Ÿ’ก Feature RequestsHave an idea?GitHub Discussions
๐Ÿ“ DocumentationImprove guides, fix typosPR to docs-site/
๐Ÿ’ป SDK CodeEnhance the JavaScript SDKPR to packages/atv-x402-sdk/
๐Ÿงช TestingAdd test coveragePR with tests

Reporting Issuesโ€‹

Before Submittingโ€‹

  1. Search existing issues โ€” your problem may already be reported
  2. Check the status page โ€” https://status.web3identity.com
  3. Try the latest version โ€” npm update @atv-eth/x402-sdk

Bug Report Templateโ€‹

## Description
Brief description of the bug

## Steps to Reproduce
1. Call endpoint X with parameter Y
2. Observe error Z

## Expected Behavior
What should happen

## Actual Behavior
What actually happens

## Environment
- SDK Version: 1.1.4
- Node.js Version: 20.x
- Operating System: macOS 14

Security Issuesโ€‹

Do not open public issues for security vulnerabilities.

Email security concerns to: support@web3identity.com

Suggesting Featuresโ€‹

Open a GitHub Discussion with:

  • Use case: What problem does this solve?
  • Proposed solution: How should it work?
  • Alternatives considered: Other approaches you've thought about

Contributing Codeโ€‹

Setupโ€‹

# Clone the SDK repository
git clone https://github.com/ATV-eth/x402-sdk.git
cd x402-sdk

# Install dependencies
npm install

# Run tests
npm test

Development Workflowโ€‹

  1. Fork the repository
  2. Create a branch: git checkout -b feature/your-feature
  3. Make changes with clear, focused commits
  4. Test thoroughly: npm test
  5. Submit PR with description of changes

Commit Messagesโ€‹

Follow Conventional Commits:

feat: add batch price endpoint support
fix: handle null ENS records gracefully
docs: update authentication examples

Pull Request Guidelinesโ€‹

  • One feature per PR โ€” keep changes focused
  • Update documentation โ€” if behavior changes
  • Add tests โ€” maintain or improve coverage
  • Describe changes โ€” what and why in PR description

Documentation Contributionsโ€‹

Local Developmentโ€‹

cd docs-site
npm install
npm start
# Opens http://localhost:3000

Writing Guidelinesโ€‹

  • Be concise โ€” developers skim documentation
  • Include examples โ€” code speaks louder than prose
  • Test code samples โ€” ensure they actually work
  • Use consistent terminology โ€” see Glossary

Adding a New Pageโ€‹

  1. Create .md file in appropriate directory
  2. Add frontmatter:
    ---
    sidebar_position: 5
    description: Brief description for SEO
    ---
  3. Write content with clear headings
  4. Test locally: npm start

SDK Contributionsโ€‹

Adding a New Methodโ€‹

  1. Add method to index.mjs
  2. Add TypeScript types
  3. Add tests
  4. Update README with example
  5. Update CHANGELOG

Questions?โ€‹


Thank you for helping make Web3 Identity API better! ๐Ÿ™