npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mimix-cli

v1.0.3

Published

A lightweight, local-first API mock server with strict schema validation.

Readme

Mimix

A zero-friction, local-first API mock server with strict Zod validation.

npm version VS Code Extension Build Status License: MIT

Links

Stop wrestling with massive OpenAPI specs just to mock a simple login route. Mimix is designed for modern frontend developers: feed it a basic JSON config, and get a running API with strict schema validation, record/replay proxying, and a live metrics dashboard.


Why does this exist?

Most basic JSON servers don't validate incoming payloads, leaving you to guess if your frontend is sending the right data. On the other end of the spectrum, enterprise mocking tools require writing hundreds of lines of tedious YAML.

Mimix hits the sweet spot. Paste a stringified Zod schema into your config, and your frontend will instantly know if it is sending the wrong data type. Perfect for pairing with LLMs—tell your AI to write a mock.json, and let Mimix serve it.


Features

  • Strict Schema Validation: Powered by Zod. If your frontend sends a string instead of a number, Mimix intercepts it and throws a strict 400 Bad Request explaining exactly what field is missing.
  • Record & Replay: Proxy a real backend API, capture its responses, and cache them locally. Ideal for coding offline or when staging servers go down.
  • Smart Autoschema: Feed Mimix a raw JSON file, and it will intelligently generate strict Zod schemas for you, detecting UUIDs, dates, and emails.
  • Built-in Dashboard: Navigate to /mimix/dashboard to see live traffic, latency charts, and a log of recent requests.
  • Hot-Reloading: Tweak your mock.json and the server updates instantly without restarting.
  • Collision Proof: Automatically finds the next available port if your requested port is busy.

Built With

Mimix is built using a modern, blazing-fast Node.js stack:

  • Hono: Ultrafast web framework for the core server.
  • Zod: TypeScript-first schema declaration and validation.
  • Vitest: Next-generation testing framework.
  • Commander.js: For the robust CLI interface.
  • VS Code API: Seamless editor integration.

Quick Start

Option 1: VS Code Extension

Search for Mimix in the VS Code Extensions Marketplace and click install. Use the status bar at the bottom right to start and stop your server with one click!

Option 2: CLI Interface

1. Install Globally

npm install -g mimix-cli

2. Initialize in your project

mimix init

(This creates a blank mock.json file in your current directory).

3. Start the Server

mimix serve -p 3000

CLI Commands

mimix serve

Starts the mock server using your mock.json file.

Options:

  • -p, --port <number> (Default: 3000)

UI: Open http://localhost:3000/mimix/dashboard in your browser to view live traffic.


mimix record --proxy <url>

Starts the server in Record & Replay mode.

How it works: The first time you request an endpoint, Mimix fetches it from the real URL and saves the data to recorded_responses.json. Make the same request again, and Mimix serves it instantly from the local cache.


mimix autoschema --from <file.json>

Reads a raw JSON file and automatically generates a strict Zod schema block you can copy and paste directly into your mock.json.


The mock.json API

No heavy schemas required. Just define your method, path, and stringified Zod definitions.

{
  "routes": [
    {
      "method": "POST",
      "path": "/api/users",
      "schema": {
        "body": {
          "email": "z.string().email()",
          "age": "z.number().min(18)",
          "id": "z.string().uuid()"
        }
      },
      "delay": { "min": 200, "max": 500 },
      "response": {
        "success": true,
        "message": "User validated!"
      }
    }
  ]
}

Contributing

Contributions, issues, and feature requests are always welcome!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.