mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
1.4 KiB
1.4 KiB
Contributing to KoalaSync
Thank you for your interest in contributing to KoalaSync! We welcome all contributions, from bug reports to new features.
Development Workflow
1. Prerequisites
- Node.js (v18+)
- Docker (for local server testing)
2. Setup
- Clone the repository.
- Run
npm installin the root directory to install build dependencies.
3. Protocol Synchronization
KoalaSync uses a "Single Source of Truth" for protocol constants in shared/constants.js.
- CRITICAL: If you modify the constants, you MUST run the build script:
This will automatically synchronize the changes to the extension and generate the browser-specific bundles in the
node scripts/build-extension.jsdist/folder.
4. Code Standards
- Vanilla JS: The extension must remain dependency-free. Do not add npm packages to the
extension/directory. - Privacy: Do not add external requests (CDNs, fonts, etc.).
- Comments: Maintain the existing documentation style, especially for complex sync logic.
Pull Request Process
- Create a new branch for your feature or bugfix.
- Ensure your code is tested locally (Chrome and Firefox).
- Update relevant documentation (e.g.,
docs/ARCHITECTURE.mdif you change the protocol). - Submit your PR with a clear description of the changes.
Security
If you find a security vulnerability, please do not open a public issue. Instead, refer to our SECURITY.md for disclosure instructions.