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

mynahq

v0.1.1

Published

A fast local API mock server powered by Rust. Mock REST APIs from YAML with one command.

Readme

CI npm Crates.io License

Mynahq

Mock APIs that mimic real systems — powered by OpenAPI

Mynahq is a lightweight API mock server that simulates real backend behavior using simple YAML configs or OpenAPI specs.

Inspired by the mynah bird — known for mimicking sounds — Mynahq mimics APIs for development and testing.

Features

  • ✅ YAML-based mock server
  • ✅ Path params (/users/:id)
  • ✅ Query matching
  • ✅ Header matching
  • ✅ Body matching
  • ✅ Template variables ({{params}}, {{query}}, {{body}})
  • ✅ OpenAPI import (3.0.x)
  • ✅ Hot reload (--watch)
  • ✅ Request logging
  • ✅ Response delay simulation
  • ✅ Scenario switching

Quick Start (Recommended)

Mynahq provides prebuilt binaries through GitHub Releases, so you do not need Rust installed to use it.

Run instantly with npx

npx mynahq import <open-api-file-name.yaml> --out mock.yaml
npx mynahq serve mock.yaml --watch

Install globally with npm

npm install -g mynahq

Then:

mynahq import <open-api-file-name.yaml> --out mock.yaml
mynahq serve mock.yaml --watch

Install with Cargo

cargo install mynahq

Then:

mynahq import <open-api-file-name.yaml> --out mock.yaml
mynahq serve mock.yaml --watch

Download Releases

👉 https://github.com/jainmohit535/mynahq-mock-server/releases/latest

Choose the correct release file for your operating system from the release assets.


CLI Commands

mynahq init               # generate sample config
mynahq import openapi.yaml --out mock.yaml               # generate yaml file from an OpenAPI YAML/JSON file
mynahq import openapi.yaml --out mock.yaml --base-path /api/v1 --port 400               # generate yaml file from an OpenAPI YAML/JSON file and use custome base path and port
mynahq serve <file>        # start mock server
mynahq validate <file>     # validate config
mynahq routes <file>       # list routes
mynahq import <file>      # import OpenAPI

OpenAPI import

Generate a Mynahq config from an OpenAPI YAML/JSON file:

./mynahq-macos-arm64 import examples/openapi.yaml --out generated-mock.yaml

Config example

server:
  host: 127.0.0.1
  port: 3000
  cors: true

routes:
  - method: GET
    path: /users/:id
    response:
      status: 200
      delay: 1000
      body:
        id: "{{params.id}}"
        name: "User {{params.id}}"

Why Mynahq?

  • Develop frontend without backend dependencies
  • Simulate real APIs quickly
  • Test different API scenarios easily
  • Replace complex mock setups with simple YAML

License

MIT