prajjwalkumarpanzade / rails-autodoc
PublicRuby gem that auto-generates and serves OpenAPI 3.0 specs from Rails routes, strong params, and db/schema.rb.
rails-autodoc is a documentation generator for Rails web applications. Instead of writing documentation by hand or maintaining separate test files, it reads the code you already have — your route definitions, form parameters, and database structure — and automatically creates beautiful OpenAPI documentation. It provides an interactive website where developers can explore your API, and can verify that documentation stays in sync with your code. The tool supports adding manual notes for complex business logic and works with popular serialization libraries.
How It Works
You've built a web service with many endpoints, but keeping the documentation up to date is a chore.
With one simple addition to your project, the tool is ready to read your existing code.
The tool automatically reads your routes, form parameters, and database structure to build your documentation.
A beautiful, searchable website shows all your API endpoints with examples and field descriptions.
For tricky business logic, you add friendly notes directly in your code to fill in the gaps.
Set up your project to warn you if documentation gets out of sync with your code.
Save your documentation as a file to share or publish wherever you like.
Every time you ship new features, your docs update too — no more manual work or outdated pages.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.