Thanks for helping. Pick an issue, say so in a comment, and open one pull request per issue. Issues labeled good first issue are the best place to start.
apps/api: FastAPI, asyncpg and Postgres, managed with uv. Source is inapps/api/src/hackproofindexer/: reads the hack window from Horizon and Soroban RPC into Postgresgithub/: discovers and scans candidate reposlinking/: links repos to chain activity and builds theprojectstableexport/: writes the public JSON and YAML dataset and its schemachat/: the chat endpoint and its toolsqueries.py,routes.py,schemas.py: the public API
apps/web: React, Vite and shadcn/uidata:integrations.yaml, and one folder per hackathon with itsmain.yamland aprojectsfolder
The README has the commands to run everything locally.
- Python 3.13, uv, ruff and pytest.
- Pydantic models for anything that crosses a module boundary. No dataclasses, NamedTuple or TypedDict.
- A response model with defaulted fields sets
json_schema_serialization_defaults_required=Trueso the generated TypeScript marks them required, and uses aLiteralfor any closed set of strings. - Models for upstream responses use
extra="allow"so new fields are not lost. Models we derive useextra="forbid". - Tests run against the scratch Postgres database from
tests/conftest.pyand never touch the live network. Anything that needs an upstream response uses a recorded fixture inapps/api/tests/fixtures/. - New pipeline steps follow the existing shape: a
run_*job in the relevant package, a subcommand incli.py, and any schema change as files indb/schemawith a migration fromhackproof schema plan. SQL goes insrc/hackproof/sql, loaded withload_sql, never in Python strings.
- Vite, TypeScript in strict mode, Tailwind and shadcn/ui.
- Types for API responses are generated from the Pydantic models. Change a model, run
pnpm typesand commitapps/web/openapi.jsonwithapps/web/src/lib/api-schema.ts. Never write an API type by hand inlib/types.ts. CI fails when either file is stale. - Add shadcn components with the shadcn CLI. Never hand edit
components/ui. - Reusable pieces that know nothing about hackathons go in
components/chartsor a similar neutral folder. Pages live inpages/and are registered inApp.tsx. - Fetch data through
lib/api.tsand a hook inhooks/built on TanStack Query. - Comments only where they explain something non-obvious.
- The public dataset contains GitHub handles and public profile fields only.
- Never store or publish emails, private messages or anything that is not on a public profile.
- Locations are only ever the text the user wrote on their public profile, normalized to a country.
- A new column or table that appears in the export means a new export schema version. Keep the old schema files.
- Production does not run the scans, so whatever the scans find reaches it from the committed project files through
hackproof import, which CI runs on merge and the data sync runs before it exports. A new section on the project files must be added toRESTOREDinexport/restore.py, or toFROM_DATABASEwhen the database can rebuild it. A test fails until you do, and without it the sync would open a pull request that deletes the section.
Run these before you open a pull request:
cd apps/api && uv run ruff check . && uv run ruff format --check . && uv run pytest
pnpm lint && pnpm format:check && pnpm build- Commit messages are
type: subject, for examplefeat: add the stellar expert client. Use lowercase, the imperative mood and no scope. - Keep commits small and focused.
- Link the issue in the pull request description.
- Include screenshots for anything visual.