First off, thank you for considering contributing! 🎉
This is a hackathon project, but we've built it with community reuse in mind. Whether you're fixing a bug, improving documentation, or adding a feature, your contribution is welcome.
Be kind, respectful, and constructive. We're all here to learn and build cool stuff.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/lazorkit-nextjs-gasless-starter.git cd lazorkit-nextjs-gasless-starter - Install dependencies:
npm install
- Create a branch:
git checkout -b feature/your-feature-name
- Check existing issues first
- Include steps to reproduce
- Provide browser/OS info
- Share error messages and screenshots
- Describe the problem you're solving
- Explain your proposed solution
- Consider alternatives you've thought about
- Keep PRs focused on a single change
- Update documentation if needed
- Add tests where applicable
- Ensure the build passes:
npm run build - Write a clear PR description
- Use strict TypeScript (no
anyunless absolutely necessary) - Prefer
interfaceovertypefor object shapes - Use explicit return types for functions
- Use functional components with hooks
- Mark client components with
'use client' - Keep components small and focused
- Write comments that explain why, not what
- Document complex logic and non-obvious decisions
- Use JSDoc for exported functions
/**
* Sends a gasless USDC tip using the Lazorkit Paymaster.
*
* @param recipient - Solana wallet address to receive the tip
* @param amount - Amount in USDC (not atomic units)
* @returns Transaction signature on success, null on failure
*/
async function sendTip(recipient: string, amount: number): Promise<string | null> {
// Implementation...
}Follow Conventional Commits:
type(scope): description
[optional body]
| Type | Description |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation changes |
style |
Formatting, missing semicolons, etc. |
refactor |
Code change that neither fixes a bug nor adds a feature |
test |
Adding or updating tests |
chore |
Maintenance tasks |
feat(auth): add passkey authentication flow
fix(gasless): handle user cancellation gracefully
docs(readme): add tutorial for gasless transactions
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for helping make Solana more accessible! 💜