Back to Home

About Mock-api-ai

Mock API AI is a platform that allows developers to generate mock REST APIs using natural language prompts.

The system combines AI-powered schema generation, persistent data storage, runtime validation, and an interactive playground for testing API endpoints.

Frontend Dashboard

Generate APIs, test endpoints, edit request payloads, and explore dynamic CRUD operations through an interactive dashboard and playground.

Backend Engine

Handles AI-based schema generation, runtime validation, dynamic CRUD operations, and PostgreSQL data persistence.

Project Links

Developer Use Cases

Frontend Development

Generate realistic APIs for UI development without building a backend first.

API Prototyping

Quickly create and test API structures during product discovery and development.

Testing & Learning

Experiment with CRUD operations, request payloads, and API workflows in an isolated environment.

Screenshots

Generate API
Generate API
API Playground
API Playground
Playground Editor
Playground Editor

Tech Stack

Frontend

React + TypeScriptViteReact Router

State Management & Data Fetching

TanStack Query

Forms & Validation

React Hook FormZod

Backend

Node.jsExpress.jsTypeScript

Database

PostgreSQLpgDrizzle ORM

AI Integration

Groq APILlama 3.3 70B Versatile

Security

HelmetCORSRuntime Schema Validation

Key Features

AI API Generation

Generate REST APIs from natural language prompts using Groq (Llama 3.3 70B)
AI generates schema, routes, and mock seed data in a single request
Each API is UUID-isolated — endpoints operate in their own namespace via /api/:apiId/:route
API metadata and records persisted in PostgreSQL using JSONB columns

Dynamic CRUD Operations

Full CRUD on any generated API without writing any code
Runtime Zod schema validation on POST, PUT, and PATCH — schema is fetched from DB and validated dynamically per request
Drizzle ORM for type-safe database operations
Centralized error handling with structured responses

API Playground

Test any generated endpoint directly from the dashboard
Real-time request body editing with syntax highlighting
Copy responses to clipboard

Security & Reliability

UUID-based API isolation prevents cross-API data leakage
Runtime payload validation on all mutating operations
Secure HTTP headers via Helmet
Production error handling without stack trace exposure