API Docs that auto-sync with your code

CI/CD friendly documentation that keeps pace with your development. Kontext analyzes your FastAPI routes, generates beautiful docs, and syncs automatically with every code change — giving developers peace of mind.

feat: Add new payment endpoints
#89 opened by @backend-dev
Open
Kontext Bot
kontext-bot bot just now
I've scanned your FastAPI routes and automatically generated API documentation for the new payment endpoints.
Documentation Changes 3 files updated
docs/api/payment-endpoints.mdx Generated
docs/api/webhooks.mdx Synced
docs/api-reference.mdx Synced

Seamless integration with your CI/CD pipeline

Kontext fits naturally into your development workflow. Write code, push changes, and your API docs stay current automatically.

1

Point at your codebase

Run Kontext on your FastAPI project. It intelligently parses your routes, handlers, and models using tree-sitter.

2

AI generates docs

Kontext analyzes your code structure and generates comprehensive MDX documentation with examples, parameters, and responses.

3

Auto-sync on changes

Integrate with your CI/CD. Every code change triggers a doc update. Deploy with confidence knowing your docs are always accurate.

Built for developers who ship fast

Stop worrying about outdated API docs. Kontext handles the documentation so you can focus on building features.

FastAPI Native

Deep understanding of FastAPI patterns. Extracts routes, request/response models, dependencies, and error handlers automatically.

AI-Powered Generation

Uses LangChain and OpenRouter to generate human-quality documentation with examples, edge cases, and best practices.

CI/CD Ready

Runs in GitHub Actions, GitLab CI, or any pipeline. Detects code changes and updates docs automatically on every push.

Beautiful MDX Output

Generates Astro Starlight-compatible MDX with tabs, code blocks, callouts, and interactive components out of the box.

Smart Parsing

Uses tree-sitter for robust code analysis. Understands imports, router graphs, handler dependencies, and call flows.

Developer Peace of Mind

Never worry about doc drift again. Your API documentation is always in sync with your actual implementation.

Works with your stack

Built for modern Python APIs and seamlessly integrates with your existing tools.

Stop worrying about outdated API documentation

Install Kontext in your CI/CD pipeline and your API docs will stay perfectly in sync with your code.

$ pip install kontext && kontext generate --target ./src
or add to your CI/CD pipeline