tupac: Ghetto In-Browser JavaScript Bundler

0.2.3 · abandoned · verified Tue Apr 21

tupac (version 0.2.3) is a command-line tool designed as a minimalistic, zero-configuration JavaScript bundler for in-browser development. It provides features like hot module reloading and code splitting with minimal overhead. Unlike modern bundlers like Webpack, Rollup, or Esbuild, tupac operates by implementing a custom CommonJS-like `require` system directly in the browser, compiling modules asynchronously. Its key differentiators include its extreme simplicity and lack of configuration, making it quick to set up for small, pure JavaScript projects. However, it explicitly states it's 'NOT FOR PRODUCTION' and lacks support for TypeScript, JSX, or comprehensive ES6 module features. The package appears to be abandoned, with no significant updates or active development, reflecting its early-stage version and niche use case as a 'ghetto bundler.'

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install tupac globally, create a project, install a dependency, create an entry file using tupac's custom 'require', and start the development server with hot reloading.

mkdir my-thug-project-js && cd "$_"
yarn init -y
yarn add lodash
echo "document.body.textContent = require('lodash/words')('Reality is wrong. Dreams are for real.').join(' - ')" >> app.js
tupac

view raw JSON →