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

@playfast/wmux

v0.2.12

Published

Web terminal multiplexer for dev servers

Readme

@playfast/wmux

Web terminal multiplexer for dev servers. Runs on Bun.

Spawns processes with PTY support, serves a hosted web UI over WebSocket, and connects via Local Network Access — similar to Drizzle Studio or Bun's debugger.

Install

bun i @playfast/wmux

Quick start

import { wmux } from "@playfast/wmux";

await wmux({
  title: "my-app",
  description: "local dev",
  sidebarItems: [
    {
      category: "dev",
      icon: "Terminal",
      tabs: [
        { name: "server", process: { command: "bun run dev" } },
        { name: "shell", icon: "SquareTerminal", process: { command: "bash" } },
      ],
    },
  ],
});

Open the printed URL in your browser.

API

wmux(config: WmuxConfig): Promise<WmuxHandle>

interface WmuxConfig {
  title?: string;          // displayed in the top bar search button
  description?: string;    // shown next to the title in the top bar
  sidebarItems: SidebarItem[];
  port?: number;           // default: random
  hostname?: string;       // default: "127.0.0.1"
  clientUrl?: string;      // hosted client URL (auto-detected in CI builds)
  token?: string;          // auth token (auto-generated if omitted)
  open?: boolean;          // open browser on start (default: true)
}

Returns a handle:

interface WmuxHandle {
  url: string;       // full client URL with credentials
  localUrl: string;  // WebSocket URL
  port: number;
  stop: () => void;
}

Sidebar items

Each sidebar item is either a tab group or a file browser:

// Tab group — processes and iframes
{
  category: "services",
  icon: "Server",             // optional, any Lucide icon name
  tabs: [
    { name: "api", description: "REST API", process: { command: "bun run dev" } },
    { name: "docs", url: "http://localhost:3001" },
  ],
}

// File browser
{
  category: "project",
  icon: "Folder",
  files: "./src",             // root directory to browse
}

Tab config

interface TabConfig {
  name: string;
  description?: string;       // shown below the tab name in the sidebar
  icon?: string;              // Lucide icon name
  process?: ProcessConfig;    // terminal process
  url?: string;               // iframe URL
}

Process config

// Command mode — wmux spawns the process with PTY
{
  command: "bun run dev",     // string or string[]
  cwd?: string,
  env?: Record<string, string>,
  autoStart?: boolean,        // default: true
  autoRestart?: boolean,      // restart on non-zero exit
}

// Terminal bridge mode — wrap an existing Bun.spawn terminal
import { wmux, createTerminalBridge } from "@playfast/wmux";

const bridge = createTerminalBridge();
const proc = Bun.spawn(["node"], { terminal: bridge.pty });

await wmux({
  sidebarItems: [{
    category: "external",
    tabs: [{ name: "node", process: { terminal: bridge.handle } }],
  }],
});

Features

  • PTY terminals via Bun.spawn
  • Iframe tabs for web previews
  • File browser with Monaco editor viewer
  • VS Code-style top bar with search button
  • Sidebar with collapsible categories and color-coded left borders
  • Drag-to-reorder tabs
  • Command palette (Cmd+K)
  • Arrow key sidebar navigation (when terminal is not focused)
  • Keyboard shortcuts (Cmd+1-9 switch category, Cmd+[/] switch tab)
  • Token-based WebSocket auth
  • Auto-restart on crash
  • Process start/stop/restart controls

License

MIT