Thanks for taking the time to improve InsightFlare.
This project is still early, so the most useful contributions are focused bug fixes, tests, documentation improvements, and small feature changes that are easy to review.
InsightFlare uses Node.js 24 and npm.
npm ci
npm run devFor local Cloudflare-related development, copy the example environment file and fill in local values:
cp .dev.vars.example .dev.varsAt minimum, local secret-backed flows need MAIN_SECRET and BOOTSTRAP_ADMIN_PASSWORD. Legacy DAILY_SALT_SECRET is still supported for migration tests, but new development should prefer MAIN_SECRET.
Before opening a pull request, run:
npm run checkThis runs the same core checks expected by CI:
- TypeScript type checking
- ESLint
- Prettier format check
- i18n key validation
- Vitest tests
For build-related changes, also run:
npm run build:demoKeep pull requests small and focused. A good PR should include:
- A clear description of the problem and solution
- Tests for behavioral changes when practical
- Documentation updates for user-facing behavior
- Screenshots or recordings for UI changes when useful
Avoid mixing unrelated refactors with feature or bug-fix changes.
Tests are written with Vitest. Prefer colocated tests under __tests__ directories near the code being tested.
npm run test
npm run test:coverageUser-facing behavior should be documented in the README or project docs when it affects installation, deployment, configuration, privacy behavior, APIs, or tracking behavior.
Do not open public issues for security vulnerabilities. Follow the reporting process in SECURITY.md.