Case Study
Specwright
AST-Based API Documentation & Test Generation
The Problem
API teams struggle with documentation drift: docs fall out of sync after every PR, no visibility across repos, reviewers miss API changes, and CI ships stale specs. Swagger, Redoc, and Postman assume manual maintenance, leading to silent divergence between code and documentation.
The Solution: Specwright
Specwright reads your codebase through AST analysis — not guesswork — and keeps OpenAPI, a markdown API reference, pytest scaffolds, and ER diagrams aligned with your actual routes and models. It attaches to the repo and rewrites artifacts on every scan or on save.
- AST-Based Analysis*: Reads codebase through AST analysis for deterministic scan/score/CI. Routes from the last scan are used for all features — unknown paths are rejected or flagged.
- Specwright Score*: Weighted health metric (0–100) based on API docs, test coverage, spec freshness, and model docs. Route health dashboard shows method badges, coverage labels, metric cards, and action banners.
- Team Dashboard*: Multi-repo view for tech leads and EMs overseeing 3–8 codebases with project count, avg Specwright Score, avg doc/test coverage, drifted-this-week, sortable table, and weekly average score trend.
- Grounded AI Suite (Pro)*: Description fill, migration notes, test bodies, scoped chat, and AI polish. Every feature uses routes from the last scan — unknown paths are rejected or flagged. Auto-on-scan fills weak OpenAPI descriptions from docstrings.
The Impact
Specwright eliminates documentation drift by automatically syncing OpenAPI specs, markdown docs, and pytest scaffolds with code. The team dashboard provides visibility across repos, while the Specwright Score gives a clear health metric for API documentation quality.
Interested in Specwright?
$29/mo or $79/mo, billed monthly.
See plans & pricing