repowiserepowise
Sign in
portkey-ai/gateway
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowiseportkey-ai/gateway
GA
GA

portkey-ai / gateway

typescriptmain669825c66.3K linessynced 1w ago

Code health

7.4out of 10Good

This codebase scores 7.4 out of 10 for code health, which we rate good. It also scores maintainability 7.8 and static performance 9.9 out of 10. The three are scored separately and never blended into one number.

Full health report →
Documentation753pages46 with model-written prose, 707 built from the indexDead code114exportsUnused exports that nothing in the graph reaches

Do next

2 things worth doing this quarter.

Worth planning

  • Fix 1 broken reference in .github/README.cn.md

    The document points readers and agents at a path this repository no longer has.

    broken references
    1
    first
    .github/README.cn.md#supported-sdks
    Small effort
  • Delete 26 unused symbols and files (562 lines)

    Nothing in the graph reaches them, across 14 files; every reader and agent pays to skip them.

    symbols
    26
    lines
    562
    safe to delete
    Yes(inferred)
    Medium effort

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report
    Small effort
Lines of code
66.3K
Files
661
Symbols
2,373
Modules
5
Languages
3

Recent activity

All commits →

Commits

  • 55d653ecformatting4mo ago
  • c9ee9436redact provider options in logs4mo ago
  • 9bcaee4ddisable logs when admin token not set4mo ago
  • e4570228remove admin token default4mo ago
  • 4e43b19dadd auth validation for public routes4mo ago
  • b341133ffeat: forward request metadata to CrowdStrike AIDR4mo ago

Decisions

  • Strip brotli from proxy Accept-Encoding for Cloudflare compatibilityproposed · 1w ago
▸

Everything we found

1,526 open

Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.

  • worst item is critical severity. Code health926Function hotspot · src/handlers/handlerUtils.ts30 findings · 7.5 deducted→
  • worst item is medium severity. Refactoring137CohereGetBatchOutputHandler+1.5 health, S effort · src/providers/cohere/getBatchOutput.ts→
  • worst item is medium severity. Doc drift2.github/README.cn.mdLink points at #supported-sdks, which .github/README.cn.md no longer declares.→
  • worst item is medium severity. Decisions1Strip brotli from proxy Accept-Encoding for Cloudflare compatibility1 awaiting review→
  • worst item is medium severity. Ownership428cookbook/integrations/vercel/app/api/chat/route.ts100% single-owner concentration, not touched in 90 days→
  • worst item is low severity. Dead code32cookbook/integrations/vercel/core/stream-text.tsUnreachable symbol (10 lines)→

Composition

Open the graph →
typescript 99%
javascript 1%dockerfile 0%

Explore this codebase

  • Docs753 pages across 5 modules→
  • ChatAsk this codebase a question and get an answer with its sources.→
  • Files661 files with per-file docs, health and history→
  • ArchitectureDependency graph, layers, and 21 entry points→
  • Code healthPer-file scores, 933 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.→