Thank you for your interest in contributing! This document provides guidelines for contributing to the project.
-
Fork the repository
-
Clone your fork
git clone https://github.com/your-username/connectorkit.git cd connectorkit -
Install dependencies
pnpm install
-
Create a branch
git checkout -b feature/your-feature-name
packages/connector/- Core wallet connector with React hooks and headless clientpackages/debugger/- Development debug panel with transaction analysisexamples/next-js/- Example Next.js application with shadcn/ui
cd examples/next-js
pnpm dev- Use TypeScript for all new code
- Follow the existing code style (Prettier + ESLint)
- Use functional and declarative patterns; avoid classes
- Prefer named exports for components
- Add tests for new functionality
- Ensure all tests pass:
pnpm test - Uses Vitest for testing
pnpm lint # Lint code
pnpm type-check # Type check
pnpm build # Build all packages
pnpm test # Run tests- Clear Description - Explain what changes you made and why
- Link Issues - Reference any related issues
- Small PRs - Keep changes focused and atomic
- Tests - Include tests for new functionality
- Documentation - Update README/docs if needed
When working with wallet integration:
- Follow Wallet Standard best practices
- Ensure compatibility with all compliant wallets
- Test with multiple wallets (Phantom, Solflare, Backpack, etc.)
- Test on devnet before mainnet
Include:
- Clear description of the issue
- Steps to reproduce
- Expected vs actual behavior
- Environment details (Node.js version, browser, wallet)
- Relevant error messages
- Check existing issues first
- Provide clear use case and requirements
- Consider Wallet Standard compatibility
- Think about impact on both React and headless usage
By contributing, you agree that your contributions will be licensed under the MIT License.
- Open an issue for questions
- Check existing documentation in package READMEs
- Review Wallet Standard specification