npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gitnexus-bundler

v1.0.2

Published

Universal GitNexus Cloud Bundler CLI — compile any Node.js/Next.js app into a single .cjs executable for GitNexus WebContainer deployments

Readme

GitNexus Universal Bundler

NPM Version License

Tags: #gitnexus #webcontainer #serverless #nextjs #react #nodejs #bundler

A Command Line Interface (CLI) tool that compiles any Node.js full-stack repository into a self-contained GitNexus Cloud Executable (.cjs bundle).

This tool runs locally on your machine and produces two output files:

  • gitnexus-bundle.cjs — your self-contained app executable
  • gitnexus.json — a manifest pointing to where you host your bundle

📚 Architecture Guide · Project Overview & Context · Security Policy


🚀 Installation & Usage

Option A — Use with npx (No install needed) ✅ Recommended

# Backend only (Express API)
npx gitnexus-bundler build -i src/server.js

# Full-stack (Next.js + Express)
npx gitnexus-bundler build -i server.js -f "npm run build" -s out

Option B — Install globally first

npm install -g gitnexus-bundler

# Then run from anywhere:
gitnexus-bundle build -i server.js -f "npm run build" -s out

⚠️ Note: If you run gitnexus-bundle without installing globally first, use npx gitnexus-bundler build ... instead.


CLI Options

| Option | Description | Required | |--------|-------------|----------| | -i, --input <path> | Entry point file | ✅ Yes | | -o, --output <path> | Output file name (default: gitnexus-bundle.cjs) | No | | -f, --frontend <cmd> | Frontend build command to run first | No | | -s, --static <dir> | Frontend static output directory to embed into the bundle | No |


☁️ Hosting Your Bundle (Recommended)

After bundling, host gitnexus-bundle.cjs somewhere public so GitNexus can download it.

✅ BEST — Cloudflare Pages (Free, Truly Unlimited)

1. Create a folder:
   gitnexus-cdn/
   ├── index.html          ← required (just an empty page)
   └── your-app.cjs        ← your bundle

2. Go to pages.cloudflare.com → Create project → Upload assets
   (Choose "Upload assets" — do NOT connect to GitHub)

3. Drag & drop folder → Deploy
   URL: https://your-project.pages.dev/your-app.cjs

4. Update gitnexus.json:
   { "bundleUrl": "https://your-project.pages.dev/your-app.cjs" }

| Feature | Value | |---------|-------| | Cost | Free forever | | Bandwidth | Unlimited | | GitHub risk | Zero |


⚠️ OPTIONAL — GitHub Releases (Manual Only)

Upload your .cjs manually to a GitHub Release. Works for testing but has limits.

⚠️ Limitations:

  • 1 GB/month bandwidth on free accounts
  • Must be manually uploaded — never automated
  • Use versioned tags like v1.0.0never latest

How It Works

  1. Runs your optional frontend build (-f)
  2. Compiles your Node.js server via esbuild into a single .cjs file
  3. Embeds your static frontend as Base64 inside the bundle (-s)
  4. Generates gitnexus.json with a Cloudflare Pages placeholder URL

🏗️ Architectural Guidelines

1. The Native C++ Barrier (CRITICAL)

  • DO NOT USE: bcrypt, node-sass, canvas, sharp, sqlite3, puppeteer
  • USE INSTEAD: bcryptjs, sass, Cloudinary APIs, pg

2. Database Support

  • ❌ Local daemons (require C++)
  • ✅ Cloud databases: MongoDB Atlas, Supabase, Neon, Firebase

3. Server Port

app.listen(8080, '0.0.0.0', () => console.log('Ready'));

4. Iframe Security (Helmet / CSP)

app.use(helmet({
    contentSecurityPolicy: false,
    crossOriginEmbedderPolicy: false,
    crossOriginResourcePolicy: false,
    crossOriginOpenerPolicy: false,
    frameguard: false
}));

5. TypeScript Support

Zero config — just point at your .ts file:

npx gitnexus-bundler build -i src/server.ts