repowiserepowise
Sign in
opencollective/opencollective-api
OverviewDocsArchitectureKnowledge GraphFilesCode HealthRefactoring

People & History

CommitsContributorsDecisions
ChatPro
Stats
repowiserepowise
ExplorePricingDocs
Sign inIndex repoIndex your repo free
repowiseopencollective/opencollective-api
OP
OP

opencollective / opencollective-api

typescriptmain033d4af274.2K linessynced 1mo ago

Code health

7.6out of 10Good

This codebase scores 7.6 out of 10 on defect risk, which we rate good. It also scores maintainability 8.6 and static performance risk 9.9 out of 10. The three are scored separately and never blended into one number. The files you change most are the weak spot: 97 of 2,082 files are git hotspots, and they average 4.7.

Full health report →
Score validation19/209.51× baselineOf the 20 lowest-health files, 19 were bug-fixed in the last 6 months — 9.51× the 10% baselineDead code112exportsUnused exports that nothing in the graph reaches
Lines of code
274.2K
Files
2,082
Symbols
4,988
Modules
52
Languages
8

Recent activity

All commits →

Commits

No commits indexed yet.

Decisions

  • Use manual truncate query for performance and deadlock avoidanceproposed
  • Rewrite Orders resolver using Kysely query builder and update migrationsproposed
  • Implement ExportRequest GraphQL interface and exports workerproposed
  • Support historical balances via TransactionBalances viewproposed
  • Fix Stripe clearedAt timestamp units and add migrationproposed
  • Add paidAt to ExpensesCollectionQuery with index and resolver checksproposed

Needs attention

73 open
  • medium severity. ProposedUse manual truncate query for performance and deadlock avoidanceAuto-proposed decision awaiting review
  • medium severity. ProposedRewrite Orders resolver using Kysely query builder and update migrationsAuto-proposed decision awaiting review
  • medium severity. ProposedImplement ExportRequest GraphQL interface and exports workerAuto-proposed decision awaiting review
  • medium severity. ProposedSupport historical balances via TransactionBalances viewAuto-proposed decision awaiting review
  • medium severity. ProposedFix Stripe clearedAt timestamp units and add migrationAuto-proposed decision awaiting review

Where the risk concentrates

All 97 hotspots →

Ranked by prior bug fixes and change frequency, mined from full git history rather than from the code alone.

FileChurnPrior fixesMaintainersCommits 90d
ExpenseMutations.test.jstest/server/graphql/v2/mutation100.0th4513
expenses.tsserver/graphql/common99.9th13620
OrdersCollectionQuery.tsserver/graphql/v2/query/collection99.9th765
Collective.tsserver/models99.8th13628
Host.tsserver/graphql/v2/object99.8th469

Composition

Open the graph →
typescript 55%javascript 42%markdown 1%shell 1%json 1%Other 1%

Explore this codebase

  • Docs0 pages across 52 modules→
  • ChatAsk this codebase a question and get an answer with its sources→
  • Files2,082 files with per-file docs, health and history→
  • ArchitectureDependency graph, layers, and 466 entry points→
  • Code healthPer-file scores, 3,940 open findings, coverage and refactoring targets→
  • Knowledge graphEntities, communities, and the paths between them→
  • Change couplingFiles that keep changing together, mined from commit history→
  • CommitsChange-risk ranked history with agent provenance→
  • ContributorsBus factor, per-file maintainers, and the human/agent split→
  • StatsSize class, origin, lifetime churn, rhythm and records→
  • CostsWhat indexing this snapshot cost, by model and by run→