I built an API in C, couldn't document it, so I…
    Neura MarketNeura Market/Stable Diffusion
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityStable DiffusionStable Diffusion
    DeepSeekDeepSeekCoPilotCoPilotMidjourneyMidjourney
    View All Directories
    OverviewPromptsBlogVideosGuidesCoursesCommunityModelsLoRAsComfyUI WorkflowsTrending
    Stable DiffusionBlogI built an API in C, couldn't document it, so I accidentally created an open-source tool
    Back to Blog
    I built an API in C, couldn't document it, so I accidentally created an open-source tool
    webdev

    I built an API in C, couldn't document it, so I accidentally created an open-source tool

    Laura Durieux April 19, 2026
    0 views

    It started with C and suffering A while back I built an API in C. Yes, C — I am weird, I...

    It started with C and suffering

    A while back I built an API in C. Yes, C — I am weird, I know. Using Mongoose — an embedded HTTP server library for C/C++ by Cesanta (not to be confused with Mongoose.js, the Node ODM).

    Every route, every handler, every response — written by hand. No framework. No annotation type system. No decorators.

    When I was done, I went looking for a documentation tool and immediately ran into a problem.

    Why Swagger didn't work

    Swagger and OpenAPI are great, but they work by reading metadata from your code: annotations, decorators, type definitions. Java has them. Python has them. Node has them.

    Raw C? Nothing. No reflection, no annotations, no schema to scrape. My API had zero metadata — I have built everything manually, so there was nothing for a tool to discover automatically.

    You can write an OpenAPI YAML spec by hand, but no tool will generate it for you from C code. Or if you are only using Mongoose to create your API.

    So I built something

    I made a small static page that reads an api.json file and renders interactive API documentation. No backend. No build step. Just HTML + CSS + vanilla JS. <u>So it is completely language and framework agnostic.</u>

    The JSON describes your API — tables, endpoints, parameters, responses, auth — and Tabula turns it into a browsable, interactive doc site.

    {
      "settings": { "title": "My API" },
      "tables": [
        {
          "name": "posts",
          "primaryKey": "id",
          "columns": [
            { "name": "id", "type": "integer" },
            { "name": "title", "type": "string" }
          ]
        }
      ]
    }
    

    Then I realized that I built a complete doc generation tool

    Halfway through polishing it, I stepped back and noticed: this isn't just a workaround for my weird C project. This is a documentation tool for any API where you want full control — where you can't or don't want to rely on code introspection.

    So I did what you do when that happens: I cleaned it up properly.

    • Wrote a CLI (init, validate, serve, sync)
    • Added a zero-dependency linter that validates your api.json before you deploy
    • Created three example projects (minimal, blog, e-commerce)
    • Set up CI, wrote docs, published to npm

    Try it (please 🥸)

    npx tabula-docs init my-docs
    cd my-docs
    npx tabula-docs serve .
    

    Open http://localhost:3000. Edit api.json. Reload. That's it.

    🔗 Live demo ⭐ GitHub 📦 NPM

    <u>It's v0.1.3 and still early</u>. I'd love feedback — especially on the JSON schema design. Does it feel intuitive? Is anything confusing or missing?

    And if you're building something weird in C: you're not alone.


    PS: This post has been generated by Claude, based on my storytelling that I wrote myself. I wanted to be sure that the English would understandable and share correctly my story! I am really proud of this little project, this is my first open source project I fully committed to and went through to the end.

    Tags

    webdevprogrammingjavascriptopensource

    Comments

    More Blog

    View all
    Context bankruptcy: The case for strategic forgetting for AI Agentsai

    Context bankruptcy: The case for strategic forgetting for AI Agents

    Most of us have seen a coding agent fail to complete a task we know it can do. We just don't...

    J
    James O'Reilly
    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestrationgooglecloud

    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestration

    When building Generative AI applications, developers often encounter a massive bottleneck: sequential...

    A
    Aryan Irani
    Is It Ethical to Post and Ask About Circuits on Dev.to?discuss

    Is It Ethical to Post and Ask About Circuits on Dev.to?

    I’ve been thinking about sharing some electronic circuit posts on Dev.to — small circuits, DIY...

    C
    codebunny20
    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limitsagents

    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limits

    What nobody tells you about exporting your multi-agent prototype to a local workspace. Every...

    L
    leslysandra
    Guarding the till while autonomous data agents do the diggingagenticarchitect

    Guarding the till while autonomous data agents do the digging

    Autonomous agents are genuinely good at answering messy business questions. Give one an LLM and a set...

    S
    Sireesha Pulipati
    Return on Attention: Why AI Code Reviews Are Wearing Us Outai

    Return on Attention: Why AI Code Reviews Are Wearing Us Out

    PR volume went up, ticket quality didn't, and the gap got filled with LLMs on both sides of the review: bots reviewing, bots replying, bots occasionally arguing with bots about priorities that only existed in a teammate's head. Our CEO named the actual problem, and it's bigger than code review.

    C
    christine

    Stay up to date

    Get the latest Stable Diffusion prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Stable Diffusion and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Stable Diffusion resource

    • Document Q&A Chatbot with Gemini AI and Supabase Vector Search for Telegramn8n · Free · Related topic
    • Generate Professional Document Drafts from PDFs with Google Drive, GP-4, and Email Notificationsn8n · Free · Related topic
    • Generate Weekly Document Digests from Google Docs with GPT-4 and Email Deliveryn8n · Free · Related topic
    • Build a PDF Document RAG System with Mistral OCR, Qdrant, and Gemini AIn8n · Free · Related topic
    Browse all workflows