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

offline-blitz

v0.2.0

Published

Sandboxing unplugged

Readme

How To Use

To run this application. From your command line:

# Install package globally
$ npm install -g offline-blitz

# Run sandbox
$ offline-blitz <filename>

# Edit the code with your favorite editor
$ vim <filename>

# Run terminal in a vim split
vim -s <(echo ":vs|:term offline-blitz -a <action> %") <filename>

Options

  • -n, --no-gui Run without gui, using only stdout.
  • -a, --action <action> Specify one or more actions that should be callable from the sandbox environment. <action> should correspond with function names in the file being tested. Actions can be provided either one by one or using a comma separated list. Actions will be ignored when using the -n option.

Key Features

  • Sandbox mode: Run your local ts-files with watch mode
  • Local environment: Enables to use locally installed packages
// my-sandbox-repo/src/sum.ts
import { of } from 'rxjs'; // <-- resolved from locally installed package
import { reduce } from 'rxjs/operators';

const source = of(1000, 300, 30, 7);
const example = source.pipe(reduce((acc, val) => acc + val));
//output: sum: 1337'
example.subscribe(val => console.log('sum:', val));
  • Interactive mode => provide actions: Use provided action to be triggered within interactive mode
# This will make functions action1() and action2() callable at will from within the sandbox.
$ offline-blitz -a action1 -a action2 <filename>

# This is equavilent to the above example.
$ offline-blitz -a action1,action2 <filename>

Short example

// ordersum.ts
const price = 149;
let amount = 33;

function setRandomAmount() {
  amount = Math.round(Math.random() * 1000);
  console.log('Amount updated to', amount);
}

function calculateSum() {
  console.log('Total amount is:', price * amount);
}
# Run above example with
$ offline-blitz -a setRandomAmount,calculateSum ordersum.ts
  • Simple logging: Possibility to keep it simple
# This will run offline-blitz without gui, using stdout. Any actions provided will be ignored.
$ offline-blitz -n <filename>

(See CHANGELOG for latest features/fixes)

Roadmap

0.2.0

  • ~Enable interactive gui~
  • ~Enable to use provided actions~

0.3.0

  • Add -h, --help argument to list all available options.
  • Improve documentations. Provide more examples/use cases.
  • Improve public api for locally installed offline-blitz package.
  • ...

Dependencies

Stated goal is to keep dependencies as minimal as possible without reinventing the wheel twice.

  • chokidar: watch files for changes
  • ts-node: compile and run typescript code
  • blessed: interactive ui
  • arg: parse command line arguments