A powerful tool that converts natural language descriptions into JSON schemas, REST API endpoints, and ERP diagrams using AI.
- 🧠 Natural Language Processing: Describe your data requirements in plain English
- 📊 JSON Schema Generation: Automatically generates valid JSON schemas
- 🔗 REST API Generation: Creates complete OpenAPI specifications
- 🎨 ERP Diagram Generation: Visual entity relationship diagrams using Mermaid
- 🚀 Export Options: Download schemas, API specs, and diagram code
- 💡 AI-Powered: Uses Google Gemini API for intelligent parsing
- Node.js + Express
- Google Gemini API
- JSON Schema validation
- OpenAPI/Swagger generation
- React + TypeScript
- Tailwind CSS
- Mermaid.js for diagrams
- Axios for API calls
- Node.js (v16 or higher)
- npm or yarn
- Google Gemini API key
-
Clone the repository
-
Install dependencies:
npm run install-all
-
Set up environment variables:
cp backend/.env.example backend/.env
Add your Google Gemini API key to the
.envfile. -
Start the development servers:
npm run dev
-
Open http://localhost:3000 in your browser
-
Describe Your Data: Enter a natural language description of your data requirements
Example: "I need to store user profiles with name, email, and age, and also product details with name, price, and description"
-
Generate Schema: The AI will parse your description and generate:
- JSON Schema definitions
- REST API endpoints
- ERP diagram code
-
View Results:
- Interactive ERP diagram
- Downloadable JSON schemas
- OpenAPI specification
- Sample API code
I need to manage a library system with:
- Books that have title, author, ISBN, and publication year
- Authors with name, biography, and birth date
- Users who can borrow books, with name, email, and membership date
- Borrowing records that link users to books with borrow and return dates
schema-api-generator/
├── backend/ # Express.js backend
│ ├── src/
│ │ ├── controllers/ # API controllers
│ │ ├── services/ # Business logic
│ │ ├── utils/ # Utilities
│ │ └── app.js # Express app
│ └── package.json
├── frontend/ # React frontend
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── services/ # API services
│ │ ├── types/ # TypeScript types
│ │ └── App.tsx # Main App component
│ └── package.json
└── package.json # Root package.json
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License - see LICENSE file for details