Registry / web-framework / protopack

protopack

JSON →
library0.0.1-alpha.8jsnpmunverified

Protopack is a bundler for rapid prototyping built on Rollup, Babel, and PostCSS. Currently in alpha (v0.0.1-alpha.8), it offers a simple config file and an Express middleware for development. As a work-in-progress, it supports inline styles/scripts and basic HTML output, but lacks hot-reloading, image support, and custom plugin configuration. It differentiates by focusing on prototypes rather than production builds, with a minimal setup.

npm install protopack
INSTALL
IMPORT
SIG · PROTOPACK
P
protopack
web-frameworkjavascriptv0.0.1-alpha.8
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

build
import { build } from 'protopack'
const build = require('protopack').build
ESM import only; CJS require works but is non-standard for this package.
middleware
import { middleware } from 'protopack'
const { middleware } = require('protopack')
ESM import recommended; CJS require also works.

Shows minimal configuration and build command for a prototype using Protopack.

// .protopack.config.js module.exports = { input: './src/index.html', output: './dist/index.html' } // Run: NODE_ENV=production npx protopack build
protopack --version
Debug
Known issues
gotchaPrototype bundler only; not suitable for production builds or complex applications.
fix
Use a production-grade bundler like webpack or Rollup for production apps.
affects: >=0.0.1
breakingConfiguration file must be in project root; no support for custom paths.
fix
Place .protopack.config.js in the root directory of your project.
affects: >=0.0.1
deprecatedPackage is labeled as work-in-progress and has not seen updates; consider it deprecated.
fix
Switch to Rollup directly or use Vite for prototyping.
affects: >=0.0.1
gotchaNODE_ENV must be set to 'production' for build to work correctly.
fix
Prefix the build command with NODE_ENV=production.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'protopack'
Missing local installation or incorrect import path.
fix
Run 'npm install protopack --save-dev' in your project directory.
TypeError: build is not a function
Using default import instead of named import.
fix
Use 'import { build } from 'protopack'' instead of 'import build from 'protopack''.
Error: No configuration file found
Missing or misnamed config file in project root.
fix
Create a file named '.protopack.config.js' in your project root.
Upgrade
Version history
0.0.1-alpha.8latest on npm
Audit
Dependencies
rolluprequiredBundling engine
@babel/corerequiredJavaScript transpilation via Babel
postcssrequiredCSS processing
Agent activity
2 hits · last 30 days
node
2
Resources
protopack — npm install protopack · libregistry