Thank you for your interest in contributing to PCAP Replaya! This document provides guidelines and information for contributors.
By participating in this project, you agree to abide by our Code of Conduct:
- Be respectful and inclusive
- Focus on constructive feedback
- Help maintain a welcoming environment for all contributors
- Docker and Docker Compose
- Linux environment (for network interface access)
- Git for version control
- Basic knowledge of Python (Flask) and JavaScript (React)
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/pcap-replaya.git - Create a feature branch:
git checkout -b feature/your-feature-name
# Clone the repository
git clone https://github.com/blink-zero/pcap-replaya.git
cd pcap-replaya
# Start the development environment
sudo docker-compose up --buildcd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.pycd frontend
npm install
npm start- Check existing issues before creating new ones
- For bugs, provide detailed reproduction steps
- For features, discuss the proposal in an issue first
feature/description- New featuresbugfix/description- Bug fixesdocs/description- Documentation updatesrefactor/description- Code refactoring
Follow conventional commit format:
type(scope): description
[optional body]
[optional footer]
Examples:
feat(upload): add support for .cap filesfix(websocket): resolve connection issues with dynamic hostsdocs(readme): update installation instructions
- Ensure your code follows the coding standards
- Add tests for new functionality
- Update documentation as needed
- Ensure all tests pass
- Create a pull request with:
- Clear title and description
- Reference to related issues
- Screenshots for UI changes
- Testing instructions
- Follow PEP 8 style guidelines
- Use type hints where appropriate
- Add docstrings for functions and classes
- Maximum line length: 88 characters (Black formatter)
- Use ES6+ features
- Follow React best practices
- Use meaningful variable and function names
- Add JSDoc comments for complex functions
- Write self-documenting code
- Add comments for complex logic
- Use meaningful commit messages
- Keep functions small and focused
cd backend
python -m pytest tests/ -vcd frontend
npm test# Start the application
sudo docker-compose up --build -d
# Test API endpoints
curl http://localhost:5000/api/health
# Test file upload
curl -X POST -F "file=@test.pcap" http://localhost:5000/api/upload- Check existing issues and documentation
- Ask questions in GitHub Discussions
- Contact @blink-zero for questions or security issues
Thank you for contributing to PCAP Replaya!