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

zenera-faker

v1.0.13

Published

Mock HTTP server for swagger/OpenAPI documents, with response bodies generated by a model.

Readme

zenera-faker

A mock HTTP server for swagger/OpenAPI documents. Point it at a spec and it serves it — the response bodies are written, once, by a model.

License: MIT Node

Part of ZeneraNeo. It ships no binary of its own: installing it adds a faker subcommand to zen, which is also where the credentials already are.

Install

Node.js 24+ and podman. Install it alongside the CLI:

npm i -g zenera-cli zenera-faker openai
zen key add openai          # the keyring `zen` already uses

The first start builds one image; every start after that reuses it. zen --help lists faker whether or not it is installed, and says what to run if not.

Use

zen faker serve api/openapi.yaml --port 8787
curl -s localhost:8787/users/12324
# { "user_id": 12324, "email": "[email protected]", ... }

More than one document at a time is fine, and the same request answers the same way every time when you pin a seed:

zen faker serve specs/*.yaml --seed 42

Warm it up before a demo or a test run, so no request pays for a model turn:

zen faker build api/openapi.yaml     # write every generator now and exit
zen faker cache ls                   # what has been generated
zen faker cache clear                # throw it away

zen mock is the same command under a shorter noun.

How a body is produced

The first time an operation is called, the faker asks a model to write a Python generator for it — one file, taking a JSON input path and a JSON output path. That file is then run against synthetic probes and judged twice: against the operation's response schema, and against the echo rule, which says that where a path or query parameter shares a name with a property in the response, the response has to carry the value that was asked for. GET /users/12324 answering with somebody else's id validates perfectly and is still wrong.

If it fails, the diagnostics go back to the model and it tries again, up to --attempts. If it passes, the file is cached under ~/.zenera/neo/faker and every later request is just podman exec python3 gen.py in.json out.json — no model, no tokens.

Generators run in a container with no network, on an image baked once with faker, exrex, jsonschema and python-dateutil.

Commands

zen faker serve <spec...>    Serve them. Generators are written on demand.
zen faker build <spec...>    Write every generator now and exit.
zen faker cache ls | clear   What has been generated, or throw it away.

Useful options: --port, --host (loopback by default), --model, --seed (same request, same answer), --rebuild, --attempts, --concurrency, --timeout, --cache <dir>, --quiet. zen help faker prints the full table.

GET /__faker/routes lists what is being served; GET /__faker/health is a health check.

Credentials

The keyring is zen's, so there is nothing new to configure:

zen key add openai
zen key ls --check

Environment variables still win over the keyring, exactly as they do for zen.

The rest of the family

| Package | What it is | | ------------------------------------------------------------------------------------------ | ---------------------------------------------------- | | zenera-cli | zen — agent projects on the command line | | zenera-neo | the runtime — agents, models, tools, skills, memory | | zenera-rag | zen rag — an API description as a searchable graph |

License

MIT.