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

@nodebeey/webcontainer

v1.0.2

Published

Browser-native Node.js WebContainer — run npm install, Next.js, Vite, Express in the browser without a server

Readme

@nodebeey/webcontainer

Browser-native Node.js runtime. Embed a full Node.js environment — including npm install, Next.js, Vite, and Express — directly in your users' browsers. No server required.

npm License: MIT


Quick Start

npm install @nodebeey/webcontainer
import { WebContainer } from '@nodebeey/webcontainer'

// Boot a container (get your API key at nodebeey.com)
const container = await WebContainer.boot({ apiKey: 'nbee_live_...' })

// Mount files
await container.mount({
  'package.json': {
    file: { contents: JSON.stringify({ name: 'app', type: 'module' }) }
  },
  'index.js': {
    file: { contents: 'console.log("Hello from the browser!")' }
  }
})

// Run Node.js
const proc = await container.spawn('node', ['index.js'])
proc.output.pipeTo(new WritableStream({
  write(data) { console.log(data) }
}))
await proc.exit

Features

  • ✅ Full Node.js runtime in the browser
  • npm install — fetches packages from CDN
  • ✅ Virtual filesystem (fs, fs/promises)
  • ✅ Spawn processes (node, npm, npx, vite, next dev, ...)
  • ✅ HTTP server → Service Worker iframe preview
  • ✅ WebSocket support (ws)
  • ✅ 43+ built-in Node.js modules
  • ✅ API-compatible with @webcontainer/api (StackBlitz)

Supported Frameworks

React, Vue 3, Svelte, SolidJS, Preact, Angular, Next.js, Nuxt, Remix, Vite, Express, Fastify, Three.js, D3 and more.

Migrate from StackBlitz

npm uninstall @webcontainer/api
npm install @nodebeey/webcontainer
- import { WebContainer } from '@webcontainer/api'
+ import { WebContainer } from '@nodebeey/webcontainer'

- const container = await WebContainer.boot()
+ const container = await WebContainer.boot({ apiKey: 'nbee_live_...' })

  // Everything else is identical ✓

Required Headers

Your page must be served with these headers (required for SharedArrayBuffer):

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin

API

WebContainer.boot(options)

| Option | Type | Description | |--------|------|-------------| | apiKey | string | Your Nodebeey API key (get one at nodebeey.com) | | workdirName | string | Working directory name (default: "webcontainer") |

container.mount(fileTree)

Mount a virtual filesystem tree.

container.spawn(command, args?, options?)

Run a command. Returns { output, input, exit, kill }.

container.fs

readFile, writeFile, readdir, mkdir, rm, watch — mirrors fs/promises.

container.on(event, handler)

Events: server-ready, port, error.

container.teardown()

Destroy the container and free resources.

Pricing

| Plan | Hours/month | Keys | Price | |------|-------------|------|-------| | Free | 1,000 | 1 | $0 | | Starter | 10,000 | 5 | $29/mo | | Pro | 100,000 | Unlimited | $99/mo | | Enterprise | Unlimited | Unlimited | Custom |

Links

License

MIT © Nodebeey