Thank you for your interest in contributing to Codra! We are building a high-performance, intelligent PR review engine for the Cloudflare ecosystem, and we value contributions that align with our goals of precision and reliability.
Before we can merge your pull request, you must sign our Contributor License Agreement. This is a quick process that takes about 10 seconds and ensures that your contributions can be included under our dual-licensing model (AGPL-3.0 for the core).
- How to sign: Visit codra.run/cla or follow the link provided by the automated GitHub check on your PR.
Codra is a monorepo-style project built with Hono (Worker), React (Vite), and Cloudflare Workers.
- Node.js (Latest LTS)
- Wrangler CLI (
npm install -g wrangler) - A Postgres-compatible database and a Cloudflare Hyperdrive config.
git clone https://github.com/devarshishimpi/codra.git
cd codra
npm installCopy .dev.vars.example to .dev.vars and fill in your secrets:
cp .dev.vars.example .dev.varsYou will need to set up:
- A GitHub App (for webhooks/checks).
- A GitHub OAuth App (for dashboard authentication).
- A Gemini API Key.
- A Hyperdrive local connection string for
wrangler dev. - A direct
DATABASE_URLfor migrations.
Codra uses concurrently to run the Vite frontend and the Wrangler worker simultaneously:
npm run dev- Frontend:
http://localhost:5173(proxied via Worker) - Worker:
http://localhost:8787
We use Vitest for unit and integration testing. npm test runs the non-database tests by default and automatically enables DB integration tests when TEST_DATABASE_URL points at a disposable Postgres database.
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run typecheck
npm run typecheck- Fork & Branch: Create a feature branch from
dev. - Atomic Commits: Keep your commits focused and descriptive.
- Sync: Ensure your branch is up to date with
dev. - Target Branch: Open pull requests against
dev. - PR Description: Use the provided template (if available) or clearly explain the what and why of your changes.
- CLA Check: Once you open the PR, an automated check will verify your CLA status. If you haven't signed yet, follow the link in the check output.
Codra is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). By contributing, you agree that your work will be licensed under the same terms, plus the additional grants specified in the CLA.