Build, manage, test and share production-grade mock APIs in minutes β no backend required.
Perfect for frontend devs, prototyping, QA, and simulating real-world APIs while the real backend catches up.
- Key Features
- UI Walkthrough & Experience
- Query Parameters for Mock API Endpoints
- Tech Stack
- Installation & Setup
- Usage
- Contributing
-
Smart Filtering
Filter API responses by any field β get exactly the data slice you need for different test scenarios -
Built-in Pagination
Automatic pagination support with custom page sizes, offsets, and navigation β behaves like real-world APIs -
Response Delays
Add realistic network latency (configurable ms) to test loading states, spinners, skeletons & timeouts -
Request Validator
Validate the request body based on the validations defined while creating the schema. -
Faker Integration
Generate lifelike mock data on-the-fly: names, addresses, emails, phones, dates, products, finance, etc. using Faker.js -
Nested Data Support
Build complex, deeply nested JSON structures β objects inside arrays, arrays inside objects β exactly like production APIs -
Data Relationships
Link related entities (users β their posts, orders β customer + items, etc.) for consistent, relational mock data -
Integrated Real-time Testing Tool (Postman-style, but better β inside your app)
- All HTTP methods (GET, POST, PUT, DELETE, PATCHβ¦)
- Custom headers, JSON body editor with validation
- Instant responses: pretty-printed JSON, status codes, timing, headers
- One-click copy response / headers
-
Private API
Create private apis with JWT Bearer token for authorization
Plus:
- Clean Dashboard with stats, recent APIs, public/private overview
- Full API & Endpoint CRUD β descriptions, visibility control
- Schema Builder for defining requests/responses
- Secure Auth (login/register) with protected routes
- Modern, responsive UI (Tailwind + shadcn/ui)
- Overview Dashboard: Get insights into your API portfolio with statistics cards
- Recent APIs: Quick access to your most recently created APIs
- User-friendly Stats: Track total APIs, active public APIs, and private APIs
- Create APIs: Easy-to-use forms for creating new mock APIs
- API Organization: Manage APIs with version control, descriptions, and visibility settings
- Public/Private APIs: Control access to your APIs with visibility settings
- Search & Filter: Quickly find APIs using the built-in search functionality
- CRUD Operations: Create, read, update, and delete API endpoints
- HTTP Methods: Support for all standard HTTP methods (GET, POST, PUT, DELETE, etc.)
- Schema Builder: Define request/response schemas for your endpoints, with validations.
- Detailed Configuration: Set up complex endpoint behaviors and responses
- Interactive Testing: Test your API endpoints directly from the interface
- Request Configuration:
- HTTP method selection
- Custom headers management
- JSON request body editor with validation
- Response Analysis:
- Formatted JSON response display
- HTTP status codes and response times
- Response headers inspection
- Copy response functionality
- User Authentication: Secure login and registration system
- Protected Routes: Ensure only authenticated users can access the platform
- User Profiles: Manage user information and preferences
Your mock APIs are designed to feel like real-world REST APIs, with support for filtering, pagination, delays, and single-item retrieval.
GET /:username/:apiBasePath/:endpointPath[/:resourceId]
textExamples:
- List all:
/ibrahim/shop/products - Single item:
/ibrahim/shop/products/acde070d-8c4c-4f0d-9d8a-162843c10333 - With params:
/ibrahim/shop/products?name[like]=phone&price[gte]=500&delay=1200
| Parameter | Purpose | Example | Default |
|---|---|---|---|
page |
Pagination β which page to return | ?page=3 |
1 |
limit |
Number of items per page | ?limit=20 |
infinite |
delay |
Simulate network latency (milliseconds) | ?delay=1500 |
0 |
| Filtering | Filter results by any field in your data | ?name[like]=ali&age[gte]=18 |
β |
Use bracket notation (field[operator]=value) β it's clean, readable, and matches modern API conventions.
Supported operators:
| Operator | Meaning | Bracket Example |
|---|---|---|
| (none) | Equals | ?status=active |
eq |
Equals (explicit) | ?status[eq]=active |
gt |
Greater than | ?age[gt]=25 |
gte |
Greater than or equal | ?price[gte]=100 |
lt |
Less than | ?score[lt]=90 |
lte |
Less than or equal | ?age[lte]=35 |
like |
Contains substring (case-insensitive) | ?name[like]=ali |
- Frontend: React, TypeScript
- Styling: Tailwind CSS, shadcn/ui components
- Backend: Express, PostgreSQL
- Routing: React Router DOM
- Build Tool: Vite
- UI Components: Radix UI primitives
- Icons: Lucide React
- Form Handling: React Hook Form + Zod validation
- Node.js (v18 or higher)
- npm or yarn package manager
git clone https://github.com/IbrahimNazir/mock-api-generator
cd mock-api-generatorcd frontend
npm install
npm run devnpm run build
# or
yarn build- Sign Up/Login: Create an account or login to access the platform
- Create Your First API: Use the "Create API" button to define your API
- Add Endpoints: Define endpoints with HTTP methods, paths, and responses
- Test Your API: Use the built-in testing tool to verify endpoint behavior
- Manage & Share: Set APIs as public/private and share with your team
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Built with β€οΈ by Ibrahim Nazir








