A powerful self-hosted API mocking platform for development and testing. Deploy your own private mock server with an intuitive interface and advanced response generation capabilities.
Start instantly with ephemeral storage:
docker run -p 36666:36666 andrecrjr/mockzilla:latestTo persist data between container restarts:
docker run -p 36666:36666 -v mockzilla-data:/data andrecrjr/mockzilla:latestRun with an external database:
docker run -p 36666:36666 -e DATABASE_URL=postgresql://username:password@host:5432/database_name andrecrjr/mockzilla:latestThe mock server and dashboard will be available at http://localhost:36666
The following environment variables can be configured:
DATABASE_URL(optional): PostgreSQL connection string (when using an external database)PORT(optional): Port to run the server on (default: 36666)
Integrate Mockzilla's specialized AI experts into your agent workflows:
npx skills add github.com/andrecrjr/mockzillaAvailable experts:
- Mock Maker: High-fidelity mocks using JSON Schema and Faker.
- Workflow Architect: Stateful scenarios and business logic.
- Spec Translator: Fast bootstrapping from OpenAPI/technical specifications.
- Logic Doctor: Forensic debugging and state repair.
- Framework: Next.js 16 (App Router)
- Runtime: Bun (JavaScript runtime)
- Database: PostgreSQL with Drizzle ORM
- Styling: Tailwind CSS 4
- Components: Radix UI
- Desktop: Tauri
mockzilla/
├── app/ # Next.js app directory (mock server UI)
├── components/ # React components (UI elements)
├── lib/ # Utility functions and configurations
├── drizzle/ # Database migrations
├── public/ # Static assets
├── Dockerfile # Production container specification
└── docker-compose.yaml # Development compose file
We welcome contributions to this open-source project. Please make sure you have Docker and Bun installed locally.
Start the development environment with hot-reloading:
make dev-upGenerate and apply database migrations:
make db-generate && make db-migrateOpen database GUI (Drizzle Studio):
make db-studioRun checks locally before submitting code:
bun run lint && bun run typecheckStop the development environment:
make dev-down- Fork the repository.
- Create your 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.
This project is licensed under the MIT License.
