A powerful tool that transforms complex API documentation (OpenAPI/Swagger) into simple, understandable explanations for non-technical users using AI.
- Multiple Input Methods: Upload files, paste URLs, or input raw content
- AI-Powered Simplification: Uses OpenAI GPT-4 to create user-friendly explanations
- Support for Multiple Formats: JSON, YAML, and YML files
- Beautiful Modern UI: Clean, responsive interface with drag-and-drop functionality
- Comprehensive Analysis: Extracts key information like endpoints, methods, and API structure
- Real-time Processing: Fast processing with loading indicators and error handling
- Node.js (v14 or higher)
- OpenAI API key
-
Clone or download the project
git clone <your-repo-url> cd api-doc-simplifier
-
Install dependencies
npm install
-
Set up environment variables
cp env.example .env
Edit
.envand add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here PORT=3000 -
Start the application
npm start
For development with auto-restart:
npm run dev
-
Open your browser Navigate to
http://localhost:3000
- Click on the "Upload File" card
- Drag and drop or click to select your OpenAPI/Swagger file (.json, .yaml, .yml)
- Click "Simplify Documentation"
- Click on the "From URL" card
- Enter the URL to your API documentation
- Click "Simplify Documentation"
- Click on the "Paste Content" card
- Select the format (JSON or YAML)
- Paste your API documentation content
- Click "Simplify Documentation"
api-doc-simplifier/
├── server.js # Main Express server
├── package.json # Dependencies and scripts
├── env.example # Environment variables template
├── README.md # This file
├── public/
│ └── index.html # Frontend interface
└── uploads/ # Temporary file storage (auto-created)
GET /- Serve the main applicationPOST /api/upload- Process uploaded API documentation filesPOST /api/process-url- Process API documentation from URLPOST /api/process-raw- Process raw API documentation contentGET /api/health- Health check endpoint
- Backend: Node.js, Express.js
- AI: OpenAI GPT-4
- API Parsing: Swagger Parser
- File Handling: Multer
- Frontend: Vanilla HTML/CSS/JavaScript
- Styling: Modern CSS with gradients and animations
- File type validation (only JSON, YAML, YML allowed)
- File size limits
- Automatic cleanup of uploaded files
- Input validation and sanitization
- Error handling and logging
- Responsive Design: Works on desktop, tablet, and mobile
- Drag & Drop: Easy file uploading
- Loading States: Visual feedback during processing
- Error Handling: Clear error messages
- Modern Styling: Beautiful gradients and animations
- Accessibility: Keyboard navigation and screen reader friendly
-
"OPENAI_API_KEY not found" warning
- Make sure you've created a
.envfile with your OpenAI API key
- Make sure you've created a
-
File upload not working
- Check that your file is in JSON, YAML, or YML format
- Ensure the file contains valid OpenAPI/Swagger documentation
-
URL processing fails
- Verify the URL is accessible and returns valid API documentation
- Check if the URL requires authentication
-
Processing takes too long
- Large API documentation files may take longer to process
- Check your internet connection for OpenAI API calls
- "Failed to parse API document": Your file format is invalid or corrupted
- "Failed to simplify API documentation": Issue with OpenAI API (check your API key and quota)
- "Network error": Connection issues or server problems
You can test the application with popular API documentation like:
- Swagger Petstore:
https://petstore.swagger.io/v2/swagger.json - GitHub API:
https://api.github.com/swagger.json - Any OpenAPI 3.0 or Swagger 2.0 specification
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
- Check the troubleshooting section above
- Review the error messages in the browser console
- Ensure all dependencies are properly installed
- Verify your OpenAI API key is valid and has sufficient quota
- Support for more API documentation formats
- Export simplified documentation to PDF/Word
- Team collaboration features
- API documentation comparison tools
- Integration with popular documentation platforms