The `gitnexus-bundler` is a Command Line Interface (CLI) tool, currently at version `1.0.2`, specifically engineered to compile Node.js and Next.js applications into a single, self-contained CommonJS (`.cjs`) executable for deployment within GitNexus WebContainer environments. It streamlines the deployment process by bundling the entire backend server logic—leveraging `esbuild` for efficient compilation—and can optionally integrate and embed frontend static assets into the final `.cjs` artifact. This tool runs locally on the developer's machine, generating both the executable bundle and a `gitnexus.json` manifest for hosting. Its key differentiators include its targeted optimization for GitNexus deployments, support for full-stack applications with integrated frontend build steps and static asset embedding, and the production of a highly portable, single-file application executable, distinguishing it from multi-file serverless or container deployments. The package maintains an active development status, with updates focusing on features and stability.
npm install gitnexus-bundlerVerified import paths — ran on the pinned version, not inferred.
Demonstrates bundling a simple Express.js backend into a GitNexus Cloud Executable (`.cjs`) using `npx`.
Replace native modules with pure JavaScript alternatives (e.g., `bcryptjs` for `bcrypt`, `sass` for `node-sass`), or leverage external cloud services for functionality requiring such libraries (e.g., Cloudinary for image processing instead of `sharp`).
Ensure your server initialization code uses `app.listen(8080, '0.0.0.0', ...)` or equivalent, rather than defaulting to `localhost` or other ports.
Configure Helmet to relax or disable `contentSecurityPolicy`, `crossOriginEmbedderPolicy`, `crossOriginResourcePolicy`, `crossOriginOpenerPolicy`, and `frameguard` when deploying to GitNexus, as shown in the architectural guidelines.
For production and reliable hosting, use a dedicated CDN or static file host like Cloudflare Pages, which offers unlimited bandwidth and a seamless deployment experience for static assets.
Replace the problematic native module with a pure JavaScript alternative (e.g., `bcryptjs` for `bcrypt`) or refactor to use a cloud service that handles the native functionality externally.
Update your server's `listen` call to `app.listen(8080, '0.0.0.0', () => ...)` to ensure it binds to the correct address and port for GitNexus.
Configure your security middleware to disable or loosen specific CSP directives, particularly `frame-ancestors`, and potentially `crossOrigin*Policy` settings, as outlined in the Architectural Guidelines for GitNexus.
No dependency data recorded yet.