portkey-ai / gateway
typescriptmain669825c66.3K linessynced on Sep 29, 2026
Code health
7.4out of 10Good
Explore this codebase
- Code health map661files scored
- Ownership333sole-owned files: one author, no second reader
- Architecture5modules, 21 entry points
- Decisions1recorded, of which 0 in force and 1 background
- Refactoring91open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 2
2 things worth doing this quarter.
Worth planning
Fix 1 broken reference in
.github/README.cn.mdThe document points readers and agents at a path this repository no longer has.
- broken references
- 1
- first
- .github/README.cn.md#supported-sdks
Small effortDelete 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
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health929 open findingsCriticalFunction hotspot · src/handlers/handlerUtils.ts30 findings · 7.5 deducted
- Refactoring91 open opportunitiesMediumCohereGetBatchOutputHandler+1.5 health, S effort · src/providers/cohere/getBatchOutput.ts
- Doc drift2Medium.github/README.cn.mdLink points at #supported-sdks, which .github/README.cn.md no longer declares.
- Ownership333 sole-owned filesMediumcookbook/integrations/vercel/app/api/chat/route.tsOne author, no second reader
- Dead code32Lowcookbook/integrations/vercel/core/stream-text.tsUnreachable symbol (10 lines)