New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wc-exe

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wc-exe

WebContainer Executor - Headless build tool for frontend projects

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

wc-exe

WebContainer Executor - Headless build tool for frontend projects.

Security software real-time file scanning causes extreme I/O delays during npm install. wc-exe bypasses this by running builds inside a browser's WebContainer where files exist only in memory.

Requirements

  • Node.js 18.0.0 or higher
  • Chrome or Chromium browser (for Puppeteer)

Installation

npm install -g wc-exe
# or
pnpm add -g wc-exe

Usage

Build

Build your project using WebContainer:

# In your project directory
wc-exe

# With options
wc-exe build --source ./src --output ./dist
wc-exe build --no-install  # Skip npm install
wc-exe build --verbose     # Show detailed logs

Dev Server

Start a development server with hot reload:

wc-exe dev

# With custom port
wc-exe dev --port 3000

Features:

  • Proxies WebContainer dev server to localhost
  • Watches local files and syncs changes
  • Supports HMR (Hot Module Replacement)

Install Only

Install dependencies without building:

wc-exe install

How It Works

┌─────────────────────────────────────────────────────────┐
│  Local Environment (with security software)            │
│                                                         │
│  1. Hono Server (dynamic port)                         │
│     └─ COEP/COOP headers for WebContainer              │
│                                                         │
│  2. Puppeteer (Headless Chrome)                        │
│     └─ Runs WebContainer in browser                    │
│                                                         │
│  3. WebContainer (in browser memory)                   │
│     ├─ Mount source files                              │
│     ├─ npm install (bypasses file scanning!)           │
│     ├─ npm run build                                   │
│     └─ Extract dist/ output                            │
│                                                         │
│  4. Only dist/ folder written to local filesystem      │
└─────────────────────────────────────────────────────────┘

CLI Options

wc-exe [command] [options]

Commands:
  build     Build the project (default)
  dev       Start development server
  install   Install dependencies only

Build Options:
  -s, --source <path>     Source directory (default: ".")
  -o, --output <path>     Output directory (default: "./dist")
  -d, --dist-dir <path>   Dist directory in WebContainer (default: "/dist")
  -t, --timeout <ms>      Timeout for npm commands (default: 600000)
  --no-timeout            Disable timeout for npm commands
  --no-install            Skip npm install
  --verbose               Show detailed logs

Dev Options:
  -p, --port <number>     Preview port (default: 5173)
  --open                  Open browser automatically

Install Options:
  --cache                 Use cached node_modules

Environment Variables

VariableDescription
CHROME_PATHCustom path to Chrome/Chromium executable

Example:

CHROME_PATH=/usr/bin/chromium wc-exe build

Keywords

webcontainer

FAQs

Package last updated on 15 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts