Inspiration

As a solo developer working on multiple projects, I found it frustrating to manually maintain clean, consistent documentation. Most existing solutions were either too rigid, too complex, or not tailored for indie devs. I wanted something lightweight, smart, and developer-first a tool that could convert readable code into usable docs with minimal effort.

What it does

DocuSaaS takes your JavaScript, TypeScript, or Python source code and automatically generates structured, readable documentation. It parses JSDoc-style comments and code structure to identify classes, interfaces, functions, and more all rendered in a clean UI with copyable code blocks and scrollable panes. It also stores your generated docs, lets you view history, and prepares your codebase for scaling and collaboration.

How we built it

The frontend is built with React + TypeScript using Tailwind CSS for a modern, responsive interface. Authentication, database, and storage are powered by Supabase. We use Supabase Edge Functions to securely handle code uploads and trigger analysis. For JavaScript/TypeScript, we use Babel parser (AST) to deeply understand code structure. For Python, a combination of simple AST parsing and fallback regex is used. Documentation is formatted into Markdown-like sections and styled for developer readability.

Challenges we ran into

Parsing edge cases across multiple languages and handling inconsistent comment formats. Preventing infinite re-render loops in React when working with dynamic state and live previews. Keeping performance smooth while rendering large blocks of code and output. Designing a UI that feels lightweight but still powerful enough to support pro-level usage.

Accomplishments that we're proud of

Built a working AST parser pipeline and deployed it via Supabase Edge Functions. Created a polished UI that mimics modern documentation sites. Enabled a zero-setup workflow — just paste code, hit generate, and get docs. Reused a shared Supabase project efficiently while isolating this app's data.

What we learned

Gained hands-on experience with Supabase edge deployments and secure file processing. Learned how to scope MVP features for a real-time documentation generator.

What's next for DocuSaaS

Add support for additional languages like Go and Rust. Build a Chrome/VSCode plugin for in-editor previews. Launch a hosted SaaS version with team collaboration and access control.

Built With

  • babel-parser
  • bolt.new
  • html2pdf.js
  • react
  • supabase
Share this project:

Updates