Architecture review for the public surface: abstractions that earn their place, dependency direction, seams, and the patterns the codebase already has.
Overview
An API surface is a promise — every exposed type and method is something callers will depend on and you will maintain. This setup reviews a client SDK's public surface under the architecture focus: layer violations, responsibilities in the right modules, abstractions earned by real variation rather than speculation, dependency direction from volatile toward stable, interface seams for testing, and consistency with the codebase's established patterns — with the TypeScript pack watching for any-leaks and assertion-hidden errors at the boundary.
Workflow
1
Review the surface, not the internals
Paste the public types and signatures — the architecture focus judges what callers see and depend on.
2
Challenge every abstraction
"Earned by real variation, or speculative generality?" — the question that shrinks APIs before they ship.
3
Hold new code to the old patterns
Consistency findings matter most at the surface: callers learn the API's patterns once and expect them everywhere.
Why This Works
Architecture focus reviews position and responsibility, which surface-level style review misses
The earned-abstraction test prevents the speculative generality that bloats public APIs
Pattern-consistency checks protect the API's learnability — its real usability metric
Best for
Client SDKs and shared libraries with real consumers
Public surfaces about to be frozen by semver
Teams whose API grew endpoint by endpoint without a review
Not for
Writing the API documentation — that's the Markdown Output Builder's api-documentation setup
Reviewing endpoint performance — switch focus to Performance
Use cases
Reviewing an SDK's public surface before the first external release
Catching speculative abstractions before they become permanent API
Checking that new endpoints follow the API's established patterns
Tip: Save time by exploring related resources and tools that integrate with this workflow.
Found a bug, have a suggestion, or want to report something confusing? Send a short note.
Cookie preferences
NewPrompt uses optional Google Analytics cookies to understand site usage and improve the tools.
The site works normally if you decline analytics cookies.
Read more in our Cookie Policy.