Registry / web-framework / go-bundler

go-bundler

JSON →
library0.1.5jsnpmunverified

Go Bundler is a JavaScript bundler engineered in Golang, designed for rapid asset compilation with minimal configuration. Currently at version 0.1.5, it remains in early development and is explicitly marked as not tested, to be used at one's own risk. Its core features include a built-in development server, automatic rebuilding upon file changes, and support for bundling HTML templates alongside JavaScript files. A key differentiator is its Go-based architecture, contributing to its stated fast performance. Non-JavaScript assets are automatically copied to the bundle directory and referenced as URLs. Due to its nascent stage, a predictable release cadence is not yet established, and it prioritizes ease of use and speed over extensive feature sets or stability guarantees.

npm install go-bundler
INSTALL
IMPORT
SIG · GO-BUNDLER
G
go-bundler
web-frameworkjavascriptv0.1.5
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.

CLI Execution
npx go-bundler
import goBundler from 'go-bundler'; // Or require('go-bundler')
This package is primarily a command-line interface (CLI) tool. It is executed via `npx` or `npm run` scripts, not imported as a JavaScript module into your application code.
Configuration Generation
npx go-bundler // Run interactively in terminal
Initial setup requires running the `go-bundler` CLI tool directly to interactively generate the `go-bundler-config.json` file.
Programmatic Invocation
import { spawn } from 'child_process'; const bundlerProcess = spawn('npx', ['go-bundler'], { stdio: 'inherit' }); bundlerProcess.on('close', (code) => console.log(`Go Bundler exited with code ${code}`));
const bundler = require('go-bundler'); bundler.build();
To integrate `go-bundler` into a larger Node.js script, invoke it as a child process using `child_process.spawn` or similar methods, rather than attempting to import and call module functions directly.

Demonstrates how to install go-bundler and initiate its interactive configuration process, followed by typical usage in npm scripts.

npm install --save-dev go-bundler # After installation, run go-bundler to generate initial config: npx go-bundler # This will prompt you to answer questions and create `go-bundler-config.json`. # Once configured, you can run it via an npm script, e.g., in package.json: /* "scripts": { "build": "go-bundler build", "dev": "go-bundler dev" } */ # Then run: npm run dev
gobundler --version
Debug
Known issues
gotchaThe package is explicitly labeled as 'STILL IN EARLY DEV AND NOT TESTED, USE AT YOUR OWN RISK' in its README. Stability and API guarantees are not provided, and breaking changes may occur frequently without major version bumps.
fix
Exercise caution when using in production environments. Pin exact versions (`npm install go-bundler@0.1.5`) and thoroughly test after any updates.
affects: >=0.1.0
gotchaUnlike many JavaScript bundlers, `go-bundler` is written in Go. This means its internal architecture and potential extension mechanisms (if any are introduced) will differ significantly from Node.js-based tools. It also affects how it's invoked programmatically.
fix
Do not expect a typical JavaScript API. Interact with it primarily via its command-line interface. For programmatic control, use `child_process` to execute the CLI.
affects: >=0.1.0
gotchaInitial setup requires an interactive session to generate the `go-bundler-config.json` file. This means it cannot be fully automated on a fresh install without simulating user input or manually creating the config.
fix
Run `npx go-bundler` once manually or in a CI script capable of interactive input to generate the initial configuration file. Commit `go-bundler-config.json` to version control for subsequent non-interactive builds.
affects: >=0.1.0
Errors
Common errors & fixes
command not found: go-bundler
The `go-bundler` executable is not directly in your system's PATH, or you are attempting to run it outside of an npm script context without `npx`.
fix
Use `npx go-bundler` to execute it, or define a script in your `package.json` (e.g., `"build": "go-bundler"`) and run `npm run build`.
No config file found. Generating...
You are running `go-bundler` for the first time, or the `go-bundler-config.json` file is missing from your project root.
fix
This is expected behavior for initial setup. Follow the interactive prompts to generate the configuration file. Once generated, commit `go-bundler-config.json` to your repository.
Upgrade
Version history
0.1.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
go-bundler — npm install go-bundler · libregistry