Thank you for your interest in contributing!
- Install Bun:
curl -fsSL https://bun.sh/install | bash- Clone and install:
git clone https://github.com/pavanscales/jpeg.encoder.git
cd jpeg.encoder
bun install- Run tests:
bun testsrc/core/- Core algorithms (DCT, quantization, etc.)src/encoding/- JPEG encoding logicsrc/image-processing/- Image I/O and conversiontest/- Unit testsexamples/- Usage examples
- Use TypeScript with strict mode
- Follow existing naming conventions
- Add JSDoc comments for public APIs
- Keep functions small and focused
All new features must include tests:
import { describe, test, expect } from 'bun:test';
describe('MyFeature', () => {
test('should work correctly', () => {
expect(true).toBe(true);
});
});- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Run
bun test - Submit PR with clear description
- Use TypedArrays for large data
- Cache expensive calculations
- Profile before optimizing
- Document performance trade-offs
Open an issue or reach out to pawanpediredla@gmail.com