Contributing to Embed PDF Viewer
August 8, 2025 ยท View on GitHub
Thank you for your interest in contributing to Embed PDF Viewer! This document provides guidelines and steps for contributing.
Code of Conduct
By participating in this project, you agree to abide by our Code of Conduct. Please be respectful and constructive in all interactions.
How to Contribute
Reporting Bugs
- Check if the bug has already been reported in Issues
- If not, create a new issue with:
- A clear, descriptive title
- Detailed steps to reproduce the bug
- Expected vs actual behavior
- Screenshots if applicable
- Your environment details (browser, OS, etc.)
Suggesting Enhancements
- Open a new issue describing your proposed enhancement
- Include:
- The use case for the enhancement
- How it would benefit other users
- Any implementation details you have in mind
Pull Requests
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests if available
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Pull Request Guidelines
- Follow the existing code style
- Include comments in your code where necessary
- Update documentation if needed
- Add tests for new features
- Ensure all tests pass
- Keep pull requests focused on a single feature/fix
Development Setup
- Clone the repository
- Install dependencies:
pnpm install - Watch for changes and build:
pnpm build:watch - Run an example for example the vanilla example:
pnpm dev --filter @embedpdf/example-vanilla
License
By contributing, you agree that your contributions will be licensed under the MIT License.