{"id":39584716,"url":"https://github.com/qodex-ai/apimesh","last_synced_at":"2026-01-26T15:01:18.439Z","repository":{"id":270471013,"uuid":"910368884","full_name":"qodex-ai/apimesh","owner":"qodex-ai","description":"Auto-generate OpenAPI 3.0 specs + interactive HTML API UI from your codebase — in seconds.","archived":false,"fork":false,"pushed_at":"2026-01-02T08:05:40.000Z","size":836,"stargazers_count":230,"open_issues_count":1,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-08T05:28:57.103Z","etag":null,"topics":["api-docs","api-documentation","api-ui","auto-documentation","code-to-docs","developer-tools","expressjs","fastapi","nodejs","openapi","openapi-generator","openapi3","python","ruby-on-rails","swagger","swagger-ui"],"latest_commit_sha":null,"homepage":"https://qodex.ai","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qodex-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-31T05:09:41.000Z","updated_at":"2026-01-07T13:01:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8262465-988d-42cc-983e-62d7a7d5f762","html_url":"https://github.com/qodex-ai/apimesh","commit_stats":null,"previous_names":["qodex-ai/swagger-bot","qodex-ai/swagger-generator","qodex-ai/apimesh"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/qodex-ai/apimesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodex-ai%2Fapimesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodex-ai%2Fapimesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodex-ai%2Fapimesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodex-ai%2Fapimesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qodex-ai","download_url":"https://codeload.github.com/qodex-ai/apimesh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodex-ai%2Fapimesh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-docs","api-documentation","api-ui","auto-documentation","code-to-docs","developer-tools","expressjs","fastapi","nodejs","openapi","openapi-generator","openapi3","python","ruby-on-rails","swagger","swagger-ui"],"created_at":"2026-01-18T07:35:27.099Z","updated_at":"2026-01-26T15:01:18.432Z","avatar_url":"https://github.com/qodex-ai.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"Python\"\u003e\u003c/a\u003ePython"],"sub_categories":[],"readme":"# ApiMesh: Code to OpenAPI Docs, Instantly\n\n[![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![Docker Build](https://img.shields.io/badge/docker%20build-passing-22c55e?logo=docker\u0026logoColor=white)](https://github.com/qodex-ai/apimesh/actions/workflows/docker-build.yml)\n[![Tutorial](https://img.shields.io/badge/%F0%9F%93%96%20tutorial-get%20started-brightgreen.svg)](#quick-start-30-seconds)\n[![Examples](https://img.shields.io/badge/%F0%9F%9A%80%20examples-ready--to--run-orange.svg)](#quick-start-30-seconds)\n[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865f2?logo=discord\u0026logoColor=white)](https://discord.gg/MHDayrP7)\n[![Twitter](https://img.shields.io/badge/Twitter-Follow%20Updates-1da1f2?logo=x\u0026logoColor=white)](https://x.com/qodex_ai)\n\n**Open-Source OpenAPI Generator** – Automatically scan your codebase, generate **accurate OpenAPI 3.0 specs**, and render a **beautiful interactive HTML API UI** for instant exploration.\n\n**From code to live API docs in seconds** — no manual writing, no drift, no hassle.\n\n---\n\n## Overview\n\n**ApiMesh** is the AI-powered open-source tool that:\n\n- Scans your codebase automatically.\n- Discovers all REST API endpoints, parameters, auth, and schemas.\n- Generates a **valid `swagger.json` (OpenAPI 3.0)**.\n- **Renders `apimesh-docs.html`** — a **fully interactive API UI** powered by Swagger UI.\n\n![img.png](img.png)\n\u003e **Open the HTML file in any browser. No server. No setup. Just click and explore.**\n\n---\n\n### ✨ Key Features\n\n| Feature | Benefit |\n|-------|--------|\n| 🔍 **Smart Code Discovery** | Finds endpoints across frameworks — no annotations needed |\n| 📄 **OpenAPI 3.0 Spec** | `swagger.json` ready for CI/CD, gateways, and tools |\n| 🌐 **Interactive HTML UI** | `apimesh-docs.html` — **instant API playground** with try-it-out |\n| 🌍 **Multi-Language** | Python, Node.js, Ruby on Rails, Go, and more |\n| ⚡ **Zero Config Start** | One command → full docs + UI |\n| 📱 **Self-Contained HTML** | Share via email, GitHub, or CDN — works offline |\n\n---\n\n### 🧠 How It Works\n\nA **precise, AI-augmented pipeline** ensures reliable, up-to-date docs:\n\n1. **Scan Repo** → `FileScanner` walks your code (respects `.gitignore` + `config.yml`)\n2. **Detect Framework** → Heuristics + LLM identify Express, FastAPI, Rails, etc.\n3. **Harvest Endpoints** → Native parsers + LLM extract routes, methods, schemas\n4. **Enrich Context** → Vector embeddings pull auth, models, examples per endpoint\n5. **Generate Spec** → `swagger.json` built with OpenAI precision\n6. **Render UI** → **`apimesh-docs.html`** embedded with **Swagger UI** — fully interactive\n7. **Optional Sync** → Push to **Qodex.ai** for auto-tests and security scans\n\n---\n\n### 🌐 Supported Languages \u0026 Frameworks\n\n| Language | Frameworks | Detection Method |\n|--------|------------|------------------|\n| **Python** | Django, Flask, FastAPI, DRF | Route files + decorators |\n| **Node.js / TS** | Express, NestJS | `app.get`, `Router`, decorators |\n| **Ruby on Rails** | Rails | `routes.rb` + controllers |\n| **Go** | Gin, Echo, Fiber, Chi, Gorilla Mux, net/http | Tree-sitter router analysis |\n| **Java, etc.** | Any REST | LLM fallback + patterns |\n\n\u003e Add custom patterns in `config.yml` — PRs welcome!\n\n---\n\n### 📂 Output Files\n\n| File | Location | Purpose |\n|------|----------|--------|\n| `swagger.json` | `apimesh/swagger.json` | OpenAPI 3.0 spec |\n| **`apimesh-docs.html`** | `apimesh/apimesh-docs.html` | **Interactive API UI** — open in browser |\n| `config.json` | `apimesh/config.json` | Persisted CLI configuration (repo path, host, API keys) |\n| `config.yml` | Repo root | Customize scan, host, ignores |\n\n\u003e **Deploy `apimesh-docs.html` to GitHub Pages, Netlify, or Vercel in 1 click.**\n\n---\n\n## Quick Start (30 Seconds)\n\n### Option 1: docker (Recommended)\n\nNavigate to your repository\n```bash\ncd /path/to/your/repo\n```\n\nRun interactively - will prompt for any missing inputs\n```bash\ndocker run --pull always -it --rm -v $(pwd):/workspace qodexai/apimesh:latest\n```\n\n### Option 2: Using MCP\n\nDownload the MCP server file\n\n```bash\ncurl https://raw.githubusercontent.com/qodex-ai/apimesh/main/swagger_mcp.py -o swagger_mcp.py\n```\n\nAdd this to your MCP settings\n```bash\n{\n  \"mcpServers\": {\n    \"apimesh\": {\n      \"command\": \"uv\",\n      \"args\": [\"run\", \"/path/to/swagger_mcp/swagger_mcp.py\"]\n    }\n  }\n}\n```\n\nReplace /path/to/swagger_mcp/swagger_mcp.py with the actual file path.\n\n\n### Option 3: Curl\n\nNavigate to your repository\n```bash\ncd /path/to/your/repo\n```\n\nInside your repo root\n```bash\nmkdir -p apimesh \u0026\u0026 \\\n  curl -sSL https://raw.githubusercontent.com/qodex-ai/apimesh/refs/heads/main/run.sh -o apimesh/run.sh \u0026\u0026 \\\n  chmod +x apimesh/run.sh \u0026\u0026 apimesh/run.sh\n```\n\n\u003e Each run leaves `swagger.json`, `apimesh-docs.html`, `run.sh`, and `config.json` side-by-side inside the `apimesh/` workspace folder.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome!\n\nOpen an issue for bugs, feature requests, or improvements.\n\nSubmit PRs to enhance language/framework coverage.\n\nHelp us make API documentation automatic and effortless 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodex-ai%2Fapimesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqodex-ai%2Fapimesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodex-ai%2Fapimesh/lists"}