A lightweight mock backend + mock database built for Frontend Developers — no backend knowledge required.
Create data models, generate mock data, and call real REST APIs instantly while focusing entirely on UI development.
- Create Projects and organize your mock data
- Define Resources (tables/collections) like
users,products,posts, etc. - Add Fields with supported types:
string- Text fieldsnumber- Numeric fieldsboolean- Boolean fieldsdate- Date fields (ISO string)timestamp- Unix timestamp (milliseconds)json- JSON object fieldsfaker- Auto-generate realistic test data with Faker.js
- Switch Data Mode:
- Schema Mode — simple structured fields
- JSON Template Mode — supports complex nested objects/arrays
- Clean, RESTful dynamic API endpoints
- Frontend devs learning React / Vue / Svelte / Next.js
- Rapid UI prototyping without backend setup
- Portfolio / demo / hackathon projects
- Teams who need mock data that actually looks real
| Layer | Technology | Reason |
|---|---|---|
| Backend | NestJS | Scalable, clean architecture |
| ORM | Prisma | Strong Postgres + DX |
| Database | PostgreSQL (JSONB) | Flexible schema, no heavy migrations needed |
| Auth | JWT | Works anywhere, simple integration |
| Mock Data | Faker.js | Generate realistic sample data |
- Node.js: Version 20 or higher
- PostgreSQL: Local instance or Docker
- Yarn or pnpm (recommended)
-
Clone the repository:
git clone https://github.com/huynam/mockpilot.git cd mockpilot -
Install dependencies:
yarn install # or pnpm install -
Setup environment variables:
cp .env.example .env # Update .env with your database credentials and other settings -
Database Setup:
# Generate Prisma client and run migrations npx prisma generate npx prisma migrate dev # Seed initial data (Admin user) yarn seed:admin
# Development mode
yarn start:dev
# Production mode
yarn build
yarn start:prod| Area | Status | Notes |
|---|---|---|
| Auth / Users | ✅ Done | JWT, Role-based access |
| Projects | ✅ Done | Create / List / Manage workspaces |
| Resources | ✅ Done | Logical data tables & Field management |
| Mock Data | ✅ Done | Smart generation (Faker & JSON Templates) |
| Public API | ✅ Done | Dynamic CRUD endpoints /api/v1/pilot/... |
| Pagination | 🚧 In Progress | Performance for large datasets |
| API Keys | 🔜 Planned | Access without JWT |
| Export | ⭐ Planned | Export to Supabase SQL |
Focus on UI, not backend. Data should be easy to create, realistic to display, and effortless to integrate.
The project backend is production-ready with core features complete. Frontend dashboard development is ready to begin.
Stay tuned ✨