mockzilla
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
This is a self-hosted API mocking platform designed to help developers quickly create and manage mock endpoints for development, testing, and building MVPs.
Security Assessment
The tool operates as a standalone Docker container and listens on port 36666. It does not request dangerous system permissions or access sensitive host data. The light code scan reviewed 12 files and found no dangerous patterns, hardcoded secrets, or suspicious shell command executions. Depending on your configuration, it will make standard network requests, such as connecting to an external PostgreSQL database if you provide the connection URL. Overall risk is rated as Low.
Quality Assessment
The project is relatively new and has very low community visibility, currently sitting at only 6 GitHub stars. However, the repository is under active development (the last push was today), meaning the creator is actively maintaining it. It uses standard, modern development practices and includes an MIT license, which is highly permissive and standard for open-source tools.
Verdict
Safe to use, though keep in mind that it is a very new project with minimal community vetting.
Mockzilla is the Next Gen Mocking Tool API Server to easier create endpoints faster for MVPs with AI and MCP Tooling
Mockzilla 🦖
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.
🚀 Quick Start
Option 1: Fast In-Memory with PGLite (Recommended for Development)
Perfect for quick testing and development. By default, all data is stored in memory and will be lost when the container stops. Use volume persistence to maintain data between restarts (if needed).
# Pull the latest image
docker pull andrecrjr/mockzilla:latest
# run with volume persistence to maintain data between container restarts
docker run -p 36666:36666 \
-v mockzilla-data:/data \
andrecrjr/mockzilla:latest
[!TIP]
This option is ideal for development, testing, and quick experimentation. It starts instantly with no external dependencies. Use volume persistence to keep your mocks between container restarts.
Your mock server will be available at http://localhost:36666
Option 2: Persistent with External PostgreSQL (Recommended for Production)
For production use or when you need data persistence between container restarts.
# Pull the latest image
docker pull andrecrjr/mockzilla:latest
# Run with external PostgreSQL database
docker run -p 36666:36666 \
-e DATABASE_URL=postgresql://username:password@host:5432/database_name \
andrecrjr/mockzilla:latest
[!NOTE]
This option is recommended for production environments where data persistence is required. Make sure your PostgreSQL database is accessible from the container.
Your mock server will be available at http://localhost:36666
🤖 AI Agent Skills
Mockzilla includes specialized AI agent skills to help you build and manage mocks.
You can add easier with add-skill:
npx add-skill https://github.com/andrecrjr/mockzilla
or copy the .agent/skills folder to your project's root.
📦 Available Scripts
Development
bun run dev- Start development server on port 36666bun run build- Build for productionbun run start- Start production serverbun run lint- Run ESLint
Database
bun run db:generate- Generate database migrationsbun run db:migrate- Run database migrationsbun run db:push- Push schema changes to databasebun run db:studio- Open Drizzle Studio (database UI)
Docker Commands
docker pull andrecrjr/mockzilla:latest- Pull latest imagedocker run -p 36666:36666 andrecrjr/mockzilla:latest- Run with PGLite (in-memory)docker run -p 36666:36666 -e DATABASE_URL=... andrecrjr/mockzilla:latest- Run with PostgreSQL
Running in Background
docker run -d \
--name mockzilla \
-p 36666:36666 \
andrecrjr/mockzilla:latest
Running with Volume Persistence
docker run -d \
--name mockzilla \
-p 36666:36666 \
-v mockzilla-data:/data \
andrecrjr/mockzilla:latest
Development and Contributing
For development purposes, the project includes Makefile commands:
make dev-up- Start development environment with hot-reloadmake dev-down- Stop development environmentmake dev-logs- View logsmake db-studio- Open Drizzle Studio in Dockermake help- See all available development commands
[!NOTE]
Makefile commands are primarily for development and contributing to the project, not for production self-hosting.
🛠️ Self-Hosting Stack
Mockzilla is designed for easy self-hosting with the following technologies:
- Framework: Next.js 16 with App Router (for mock server UI)
- Runtime: Bun (fast JavaScript runtime)
- Language: TypeScript
- Database: PostgreSQL with Drizzle ORM (for mock configuration storage)
- Styling: Tailwind CSS 4
- UI Components: Radix UI
- Forms: React Hook Form + Zod
- Containerization: Docker (for simplified self-hosting)
🐳 Self-Hosting with Docker
Mockzilla provides optimized Docker images for reliable self-hosting:
- Docker Hub Image:
andrecrjr/mockzilla:latest- Production-ready image - In-Memory Option: Uses PGLite for fast, ephemeral storage
- Persistent Option: Connects to external PostgreSQL for data persistence
Pulling the Image
Always start by pulling the latest image:
docker pull andrecrjr/mockzilla:latest
Running with Data Persistence
For production use, connect to an external PostgreSQL database:
docker run -d \
--name mockzilla \
-p 36666:36666 \
-e DATABASE_URL=postgresql://username:password@host:5432/database_name \
andrecrjr/mockzilla:latest
Running with Volume Persistence
To persist data without an external database, mount a volume to /data/:
docker run -d \
--name mockzilla \
-p 36666:36666 \
-v mockzilla-data:/data \
andrecrjr/mockzilla:latest
Or mount a local directory:
docker run -d \
--name mockzilla \
-p 36666:36666 \
-v /path/to/local/data:/data \
andrecrjr/mockzilla:latest
[!NOTE]
Using volume persistence at/data/will maintain your mocks and configurations between container restarts while still using the in-memory PGLite database.
Environment Variables
DATABASE_URL(optional): PostgreSQL connection string (when using external database)PORT(optional): Port to run the server on (default: 36666)
Data Persistence
- Volume mount: Mount a volume to
/data/to persist mocks and configurations between container restarts when using PGLite
📁 Self-Hosting Structure
mockzilla/
├── app/ # Next.js app directory (mock server UI)
├── components/ # React components (UI elements)
├── lib/ # Utility functions and configurations
│ └── db/ # Database schema and connection (for mock storage)
├── drizzle/ # Database migrations (for self-hosted database)
├── public/ # Static assets
├── Dockerfile # Development Docker configuration (for local self-hosting)
├── Dockerfile.dev # Development Docker configuration (legacy)
├── Dockerfile.prd # Production Docker configuration (for production self-hosting)
└── docker-compose.yaml # Development compose file (for easy self-hosting setup)
🗄️ Self-Hosted Database Management
Using Drizzle Studio
Drizzle Studio provides a visual interface for managing your self-hosted database:
Running Migrations
With Docker (self-hosting):
docker exec -it mockzilla-app-dev bun run db:push
Without Docker (self-hosting):
bun run db:push
🔧 Self-Hosting Configuration
When running with an external PostgreSQL database, configure the DATABASE_URL environment variable:
# PostgreSQL connection string (when using external database)
DATABASE_URL=postgresql://username:password@host:5432/database_name
🤝 Contributing
- 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
📚 Self-Hosting Documentation
For more information about running your own Mockzilla instance:
- Next.js Documentation (for understanding the UI)
- Drizzle ORM Documentation (for database management)
- Tailwind CSS Documentation (for UI customization)
- Docker Documentation (for containerized self-hosting)
📄 License
This project is open source under MIT license
Deploy your own Mockzilla instance with ❤️ using Next.js and Bun
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found