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

@nifrajs/runner

v3.1.0

Published

Run requests through a nifra app's fetch and capture structured results - the engine behind the playground and the agent run/verify tool. Dependency-free; runs in the browser, Bun, Node, Deno, and on the edge.

Readme

@nifrajs/runner

Run requests through a nifra app and capture structured results - the shared engine behind the website playground (humans) and the agent run/verify tool (an AI writes code → runs it → sees the failure → fixes it). It only touches app.fetch(Request) → Response, which is Web-standard, so it runs unchanged in the browser, Bun, Node, Deno, and on the edge - and depends on nothing.

import { runApp } from "@nifrajs/runner"
import { app } from "./app"

const results = await runApp(app, [
  { path: "/users/1" },
  { method: "POST", path: "/users", body: { name: "Ada" } },
])
// → [{ method, path, ok, status, headers, body, durationMs }, …]
  • runApp(app, requests, options?) - run a batch in order; one RunResult per request. Never throws: a crash on any request becomes that result's error and the batch continues.
  • runRequest(app, spec, options?) - a single request.

A plain object/array body is JSON-encoded (with a JSON content-type unless you set one); a string/Uint8Array is sent as-is. Relative paths resolve against options.origin (default http://nifra.local). Body text is captured up to options.maxBodyChars (default 64 KB).

It's a runner, not a security sandbox: it calls the app you hand it in-process, with no isolation. Isolation, when you need it, comes from the host - the browser tab for the playground, your own process/CI for the agent runner. Don't feed it code you wouldn't already run.

For AI agents

Start with LLM.md - this package's contract card (the exports you call + its footguns), one cheap read instead of the whole corpus. For the wider framework: the repo's AGENTS.md is the copy-paste quick reference, and llms-full.txt is the full machine-readable corpus. Run nifra check as the done-gate, or nifra mcp to give the agent live project tools.