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

wc-api-standalone

v1.5.3-standalone

Published

WC Public API - Standalone Version (No Dependencies)

Readme

WebContainer API - Standalone Version

This is a standalone version of the WebContainer API that has been modified to remove dependencies on StackBlitz's authentication and API services.

Changes Made

  1. Removed Authentication Requirements

    • The package no longer requires authentication with StackBlitz
    • The auth module has been replaced with a dummy implementation that always returns successful states
    • OAuth flow has been completely removed
  2. Local Resources

    • The iframe URL now points to the local origin instead of StackBlitz
    • All references to StackBlitz's servers have been removed
  3. Simplified Implementation

    • Token handling has been simplified to dummy implementations
    • Authentication checks have been removed from the boot process

Usage

You can use this modified version of the WebContainer API in the same way as the original, but without needing to call auth.init() or handle authentication flows.

import { WebContainer } from '@webcontainer/api';

// No need for auth.init() anymore

// Boot the WebContainer
const webcontainer = await WebContainer.boot();

// Use as normal
const files = {
  'index.js': {
    file: {
      contents: 'console.log("Hello, World!");',
    }
  }
};

await webcontainer.mount(files);

Important Notes

  1. This modified version requires you to provide your own implementation of the WebContainer runtime
  2. You'll need to serve a compatible /headless endpoint on your server
  3. This is not compatible with StackBlitz's hosted services

Limitations

Since this package no longer uses StackBlitz's services, you'll need to provide your own implementation of:

  1. The Node.js runtime environment
  2. The file system implementation
  3. The process spawning mechanism

This modified package is primarily intended for developers who want to run their own WebContainer-compatible environment without relying on StackBlitz's infrastructure.

API Reference Changes

The api_reference.json file has been updated to reflect the changes made to the package. The main modifications include:

  1. Removed references to StackBlitz and WebContainer API URLs
  2. Updated the AuthAPI interface to reflect the simplified authentication mechanism
  3. Modified documentation to reference local resources instead of external services

For a detailed list of changes, see the API_REFERENCE_CHANGES.md file included in this package.