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

openx-mirror

v0.1.0

Published

LAN static report mirror with a browser dashboard and local sharing agent.

Readme

OpenX Mirror

OpenX Mirror is a small LAN file mirror for static reports. It lets a browser dashboard manage many machines, pair with each machine by a short verification code, and open static local files such as e2e.html and srs.html from allowed folders.

Structure

  • dashboard/: static HTML/CSS/JS dashboard.
  • agent/: zero-dependency Node.js LAN agent that runs on each machine that shares folders.
  • resources/user-story/: product user stories.
  • resources/technial-design/: technical design documents.
  • resources/tdd/: test-driven development notes and acceptance tests.
  • resources/screens/: ASCII UI layout documents.

Run Dashboard

For local development, run both the dashboard and local agent:

./run.sh

Defaults:

Dashboard: http://localhost:8080
Agent:     http://127.0.0.1:8787

Override ports when needed:

DASHBOARD_PORT=8090 AGENT_PORT=8788 ./run.sh

To run only the dashboard:

Open dashboard/index.html directly in a browser, or serve it on the LAN:

cd openx-mirror/dashboard
python3 -m http.server 8080

Then open:

http://<dashboard-machine-ip>:8080

Run Agent On A Sharing Machine

From a checked-out repo:

cd openx-mirror
./run-agent.sh

From npm after publishing:

npx openx-mirror agent

Or with options:

npx openx-mirror agent --host 0.0.0.0 --port 8787

Local CLI test from this repository:

node bin/openx.js agent --host 0.0.0.0 --port 8787

The agent prints a pairing code. In the dashboard, add a machine with the host, port, and code. After pairing, add allowed folders by absolute path and scan them.

Defaults:

Host:  0.0.0.0
Port:  8787
Store: .openx-mirror-agent.local.json

Override agent settings:

AGENT_HOST=127.0.0.1 AGENT_PORT=8788 ./run-agent.sh

Scan LAN

After pairing with at least one local agent, click Scan LAN in the dashboard. The selected agent scans its local /24 subnet for other OpenX Mirror agents listening on the same port. Discovered machines can be added to the dashboard, but each one still needs its own pairing code before folder access is allowed.

Cloud Sync Phase 1

Cloud sync stores dashboard configuration in Supabase so iPad, Mac, and other browsers can share the same machine list, folder metadata, and file type filters.

Run the schema once in Supabase SQL Editor:

supabase/schema.sql

Then open the dashboard and fill:

Supabase URL: https://<project-ref>.supabase.co
Anon Key:     Supabase project anon key
Workspace:    openx-home
Sync Key:     at least 12 characters
Name:         optional display name

Use Push to upload local config and Pull on another device to download it.

Phase 1 intentionally does not upload agent bearer tokens. Each browser still pairs with an agent locally before it can manage folders or open files.

Admin Portal API Keys

The dashboard includes an Admin Portal for cloud sync API keys.

  • The first Sync Key used to create a workspace is the workspace admin key.
  • Use the admin key in Admin Key to create/list/revoke API keys.
  • Generated API keys are shown once and stored in Supabase as hashes only.
  • Use generated API keys as Sync API Key on iPad or other devices.
  • Revoked API keys can no longer pull or push cloud config.

Security Model

  • Pairing code expires after 5 minutes.
  • Pairing code is one-time use.
  • Paired clients receive bearer tokens.
  • Agent only serves files under explicitly allowed folders.
  • Path traversal is blocked by canonical path checks.

This is designed for trusted LANs. Use HTTPS or a VPN before exposing it outside a private network.

GitHub Pages Deploy

The dashboard can be deployed to GitHub Pages from the gh-pages branch:

./deploy.sh

Defaults:

Repository: fighttechvn/openx
Branch:     gh-pages
URL:        https://fighttechvn.github.io/openx/

Override target repository:

REPO_SLUG=fighttechvn/openx ./deploy.sh

If GH_TOKEN or GITHUB_TOKEN is present, the script also attempts to enable GitHub Pages through the GitHub API. Otherwise, enable it once in GitHub:

Settings -> Pages -> Deploy from a branch -> gh-pages / root