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

jitsu-playground

v1.1.0

Published

Local debugging playground for Jitsu transformation functions

Downloads

29

Readme

jitsu-playground

npm version license node

A local debugging playground for Jitsu transformation functions. Run and inspect your function pipeline in a browser UI before deploying.


Features

  • Visual pipeline builder — compose ordered transformation steps from your local .ts files
  • Live execution — run the full pipeline against any JSON payload and see step-by-step results
  • Environment variables — inject KEY=VALUE pairs directly into each run
  • Geo context — simulate geo-enriched events with an optional JSON geo block
  • Per-step results — status badge (passed / dropped / error), output diff, and structured logs (info / warn / error / debug)
  • Keyboard shortcutCmd+Enter / Ctrl+Enter to run the pipeline instantly
  • Zero config — points at ./src/functions by default, works with any project structure

Installation

Install globally to use from any project:

npm install -g jitsu-playground
# or
pnpm add -g jitsu-playground

Or run without installing:

npx jitsu-playground

Usage

jitsu-playground [options]

| Option | Alias | Default | Description | |---|---|---|---| | --dir <path> | -d | ./src/functions | Path to the directory containing your .ts function files | | --port <port> | -p | 3333 | Port to start the local server on | | --help | -h | — | Print help and exit |

Examples

# Start with defaults (./src/functions on port 3333)
jitsu-playground

# Custom directory and port
jitsu-playground --dir src/functions --port 4000

# Subdirectory of functions
jitsu-playground --dir src/functions/dashboard

Then open http://localhost:3333 in your browser.


How it works

Each file in your functions directory should export a default async function conforming to the Jitsu function signature:

export const config = {
  name: "My Transform",
  slug: "my-transform",
};

export default async function myTransform(event, ctx) {
  // Return a modified event, or return "drop" to discard it
  return {
    ...event,
    custom_prop: "value",
  };
}

jitsu-playground discovers all .ts files in your functions directory, presents them as pipeline steps in the UI, and executes them in order against the input payload you provide. Each step receives the output of the previous one.


Requirements

  • Node.js ≥ 18
  • jiti ≥ 2.0.0 (peer dependency — already installed if you use Jitsu's SDK)

License

MIT © Hazem Khaled