Thank you for your interest in contributing to PrinceJS! We welcome contributions from the community and are excited to work with you.
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/MatthewTheCoder1218/princejs.git cd princejs - Create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
# Install dependencies
bun install
# Run tests
bun test
# Build the project
bun run build- Write clear, concise code that follows the existing style
- Add tests for new features or bug fixes
- Update documentation if your changes affect how the framework is used
- Ensure all tests pass before submitting your pull request:
bun test
- Use TypeScript for all new code
- Follow the existing code structure and naming conventions
- Use meaningful variable and function names
- Add comments for complex logic
- Keep functions focused and reusable
Write clear, descriptive commit messages:
git commit -m "feat: add new feature description"
git commit -m "fix: resolve bug in middleware"
git commit -m "docs: update JSX examples in README"Use these prefixes:
feat:for new featuresfix:for bug fixesdocs:for documentation changestest:for test additions or modificationsrefactor:for code refactoringperf:for performance improvements
- Push your branch to your fork:
git push origin feature/your-feature-name
- Open a Pull Request on GitHub with a clear title and description
- Reference any related issues (e.g., "Closes #123")
- Wait for review and address any feedback
We're particularly interested in contributions for:
- New middleware - authentication, security, validation
- Database support - additional database adapters
- Testing - improving test coverage, adding edge cases
- Documentation - examples, guides, API reference
- Performance - optimizations, benchmarks
- JSX components - additional HTML helper components
- Error handling - better error messages and recovery
If you find a bug or have a suggestion:
- Check existing issues to avoid duplicates
- Create a new issue with a clear title and description
- Include steps to reproduce for bugs
- Add example code when possible
- Specify your environment (OS, Bun version, etc.)
Feel free to open a discussion or reach out:
- GitHub Issues: https://github.com/MatthewTheCoder1218/princejs/issues
- Twitter: @Lil_Prince_1218
By contributing to PrinceJS, you agree that your contributions will be licensed under the same license as the project.
Thank you for contributing to PrinceJS! 🚀