A full-stack developer tool that converts source code or GitHub repositories into OpenAPI specifications, interactive documentation, and mock APIs using static code analysis across multiple languages.
https://apiforge-vmin.onrender.com
- Paste source code and generate API specifications instantly
- Detects:
- Functions and methods
- Classes and controllers
- REST endpoints
- Parameters (path, query, body, headers)
- Response structures
- Accepts public GitHub repository URLs
- Recursively scans source files
- Filters relevant code files
- Generates a consolidated OpenAPI specification
- OpenAPI 3.0 compliant
- YAML and JSON formats
- Includes:
- Paths and operations
- Parameters and request bodies
- Response schemas
- Security schemes
- Swagger UI integration
- Visual API exploration
- Endpoint-level inspection
- Simulate API responses
- Test endpoints with authentication tokens
- Tracks:
- Generation count
- Language distribution
- Endpoint statistics
- 🐍 Python (Flask, FastAPI, Django)
- ☕ Java (Spring Boot, Spring MVC)
- 🟨 JavaScript (Node.js, Express)
- 🔷 TypeScript
- 🐹 Go (Gin, Echo, net/http)
- 🟪 C# (ASP.NET Web API)
- 🐘 PHP
- 💎 Ruby
- Python (Flask)
- Static Analysis Engine (AST + pattern-based parsing)
- PyYAML (OpenAPI generation)
- GitHub REST API
- HTML
- Tailwind CSS
- JavaScript
- Swagger UI
POST /generate
{
"code": "your_source_code_here"
}POST /generate-repo
{
"repo_url": "https://github.com/user/repo"
}POST /fetch-github
GET /analytics
APIForge/
│
├── app.py # Backend (Flask + parsing engine)
├── index.html # Frontend UI
├── requirements.txt # Dependencies
├── Procfile # Deployment config
└── .gitignore
- Clone Repository
git clone https://github.com/Anusha-Sundar-2912/APIForge.git
cd APIForge- Create Virtual Environment
python -m venv venv
venv\Scripts\activate- Install Dependencies
pip install -r requirements.txt- Configure Environment Variables
Create a .env file:
GITHUB_TOKEN=your_github_token
👉 Required for GitHub API access and higher rate limits
- Run Application
python app.py- Improved Spring Boot and multi-layer Java parsing
- Enhanced schema inference from complex code structures
- Better handling of large repositories
- AI-assisted endpoint detection
- Postman export support
- CI/CD integration
- Multi-language static code analysis
- GitHub repository-level API extraction
- OpenAPI + Swagger integration
- Mock API testing support
- Real-world applicable developer tool