Contributing Guide
Thank you for your interest in contributing! This document covers how to contribute to the API, SDK, and documentation.
Ways to Contributeโ
| Type | Description | Where |
|---|---|---|
| ๐ Bug Reports | Found something broken? | GitHub Issues |
| ๐ก Feature Requests | Have an idea? | GitHub Discussions |
| ๐ Documentation | Improve guides, fix typos | PR to docs-site/ |
| ๐ป SDK Code | Enhance the JavaScript SDK | PR to packages/atv-x402-sdk/ |
| ๐งช Testing | Add test coverage | PR with tests |
Reporting Issuesโ
Before Submittingโ
- Search existing issues โ your problem may already be reported
- Check the status page โ https://status.web3identity.com
- 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โ
- Fork the repository
- Create a branch:
git checkout -b feature/your-feature - Make changes with clear, focused commits
- Test thoroughly:
npm test - 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โ
- Create
.mdfile in appropriate directory - Add frontmatter:
---
sidebar_position: 5
description: Brief description for SEO
--- - Write content with clear headings
- Test locally:
npm start
SDK Contributionsโ
Adding a New Methodโ
- Add method to
index.mjs - Add TypeScript types
- Add tests
- Update README with example
- Update CHANGELOG
Questions?โ
- Email: support@web3identity.com
- Twitter: @ATV_eth
Thank you for helping make Web3 Identity API better! ๐