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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jupyter-web-proxy

v0.1.5

Published

A CLI proxy to securely connect web apps to jupyter servers via HTTP and WebSocket.

Readme

jupyter-web-proxy

A proxy tool designed for web applications like nbfiddle and dandiset-explorer to connect to JupyterHub resources (such as dandihub). It securely manages HTTP and WebSocket connections between web applications and Jupyter servers.

Installation

npm install -g jupyter-web-proxy

Usage

jupyter-web-proxy <jupyter-url> -t <token> [options]

Required Arguments

  • jupyter-url: URL of the Jupyter server (e.g., https://hub.dandiarchive.org/user/username)
  • -t, --token: JupyterHub API token

Optional Arguments

  • -p, --port: Local proxy port (default: 8010)
  • -o, --allowed-origins: Comma-separated list of allowed CORS origins (e.g., https://nbfiddle.org)

Examples

# Basic usage with nbfiddle.org
jupyter-web-proxy https://hub.dandiarchive.org/user/myname -t abc123 -p 8010 -o https://nbfiddle.org

# Usage with multiple allowed origins
jupyter-web-proxy https://hub.dandiarchive.org/user/<user> -t <token> -o https://nbfiddle.app,https://dandi-ai-notebooks.github.io

Getting a JupyterHub API Token

To obtain an API token from JupyterHub:

  1. Log in to your JupyterHub instance (e.g., https://hub.dandiarchive.org)
  2. Click on "File" > "Hub Control Panel"
  3. Go to the "Token" or "API Tokens" section
  4. Click "Generate Token" and copy the generated token

Web Application Configuration

By default, the proxy runs on port 8010. You can change this using the -p option. In your web application (e.g., nbfiddle.app), configure it to connect to:

http://localhost:8010

Technical Details

The proxy:

  • Forwards HTTP and WebSocket requests to the specified Jupyter server
  • Adds authentication headers to all requests
  • Manages CORS headers for web application access
  • Handles connection upgrades for WebSocket support
  • Provides error reporting for failed connections

License

Apache License 2.0