Registry / web-framework / packly

packly

JSON →
library0.1.1jsnpmunverified

Packly is an HTML bundler for JavaScript applications. The current stable version is v0.0.4, released on an unscheduled cadence. It bundles HTML files and their dependencies into a single output. Key differentiators: lightweight, no heavy configuration, and TypeScript support. As an early-stage project, it may have limited features compared to mature bundlers like webpack or Parcel. Suitable for simple projects needing quick bundling without complex setups.

npm install packly
INSTALL
IMPORT
SIG · PACKLY
P
packly
web-frameworkjavascriptv0.1.1
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.

bundle
import { bundle } from 'packly'
const bundle = require('packly')
ESM-only package; CommonJS require is not supported.
PacklyOptions
import type { PacklyOptions } from 'packly'
import { PacklyOptions } from 'packly'
Type import is required for TypeScript interfaces; named import will cause runtime errors.
default
import packly from 'packly'
import { default as packly } from 'packly'
Default export is a function for quick bundling; named 'default' import works but unnecessary.

Demonstrates bundling an HTML file with Packly, specifying output directory and minification.

import { bundle } from 'packly'; async function build() { const result = await bundle('src/index.html', { outdir: 'dist', minify: true, }); console.log('Bundled files:', result.files); } build();
packly --version
Debug
Known issues
gotchaAPI may change in future releases without major version bump.
fix
Pin dependency to exact version.
affects: >=0.0.1
gotchaOnly ESM imports are supported; CommonJS require throws error.
fix
Use ES module syntax or set type: 'module' in package.json.
affects: 0.0.4
gotchaTypeScript types are included but may be incomplete.
fix
Check .d.ts files for missing exports.
affects: 0.0.4
Errors
Common errors & fixes
Cannot find module 'packly'
Package not installed or module resolution misconfigured.
fix
Run 'npm install packly' and ensure import path is correct.
TypeError: packly is not a function
Using default import incorrectly or wrong import statement.
fix
Use 'import { bundle } from 'packly' for named function.
SyntaxError: Cannot use import statement outside a module
Running ESM code in a CommonJS context.
fix
Add 'type': 'module' to package.json or rename file to .mjs.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
packly — npm install packly · libregistry