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

@ubox-tools/xpace-server

v1.0.5

Published

Local WebSocket relay server for Ubox Xpace development

Readme

xpace-server

Local WebSocket relay server for developing Ubox Xpace experiences. Simulates the Ubox messaging infrastructure so multiple browser apps can communicate during development — across tabs or across devices on the same network.

Usage

Run from the root of a Ubox experience project:

npx @ubox-tools/xpace-server

If an apps/ directory is found, its contents are served over HTTP and each app gets the UboxClient shim automatically injected — no changes to your HTML files needed.

xpace-server running
  WebSocket  ->  ws://192.168.1.10:3001
  Dashboard  ->  http://192.168.1.10:3000
  Shim       ->  http://192.168.1.10:3000/shim.js
  Apps       ->  http://192.168.1.10:3000/apps/

Open the dashboard URL in a browser to monitor connected apps, shared variables, and the live message log. Open any app URL from any device on the network.

How it works

ubox-data-xpace connects to a UboxClient singleton. xpace-server provides a drop-in browser shim that replaces that singleton with a plain WebSocket pointing at the local relay. The relay broadcasts every message to all other connected clients — the same contract as the real Ubox server.

The shim is served at /shim.js and injected automatically into HTML files served from /apps/. For apps served elsewhere, add it manually before ubox-data-xpace:

<script src="http://192.168.1.10:3000/shim.js"></script>
<script src="ubox-data-xpace.js"></script>

Options

| Option | Default | Description | |---|---|---| | -p, --port <n> | 3001 | WebSocket relay port | | --dash-port <n> | 3000 | Dashboard HTTP port | | --host <ip> | auto-detect | Override the advertised host IP | | --apps-dir <path> | ./apps | Directory to serve as apps | | --no-dashboard | — | Disable the dashboard | | --no-log | — | Disable message logging to stdout | | --log-filter <cmds> | all | Comma-separated commands to log |

Programmatic use

const { createServer } = require('@ubox-tools/xpace-server');

const { wss, close } = createServer({
  port: 3001,
  dashPort: 3000,
  appsDir: '/path/to/apps',
});