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

@ignitekit/bento

v1.0.3

Published

A custom bundler specifically designed for WordPress plugins - like Vite but for WordPress

Downloads

52

Readme

Bento

🍱 A custom bundler specifically designed for WordPress plugins - like Vite but for WordPress.

Features

  • 🚀 WordPress-focused: Built specifically for WordPress plugin development
  • 📦 Dual output: Creates both minified and unminified versions of all assets
  • 🎯 Zero config: Works out of the box with sensible defaults
  • 🔄 Watch mode: Automatic rebuilding on file changes
  • 🎨 SCSS/Sass support: Built-in CSS preprocessing
  • ES6+ transpilation: Modern JavaScript support with Babel
  • 📋 Smart manifest: Asset tracking for WordPress integration
  • 🧹 Clean builds: Automatic output directory cleaning

Installation

npm install @ignitekit/bento --save-dev

Quick Start

  1. Initialize configuration:

    npx bento init
  2. Build your assets:

    npx bento build
  3. Watch for changes:

    npx bento watch

Project Structure

Bento expects your WordPress plugin to follow this structure:

your-plugin/
├── scripts/
│   ├── admin/          # Admin-specific JS/CSS
│   ├── frontend/       # Frontend JS/CSS  
│   └── shared/         # Shared utilities
├── public/             # Generated assets (output)
├── bento.conf.js
└── package.json

Configuration

Create a bento.conf.js file in your plugin root:

module.exports = {
    // Entry points - directories containing your source files
    entry: {
        admin: 'scripts/admin',
        frontend: 'scripts/frontend',
        shared: 'scripts/shared'
    },

    // Output directory where built files will be placed
    output: 'public',

    // Build options
    clean: true,               // Clean output directory before build
    
    // WordPress specific options
    wordpress: {
        textDomain: 'your-plugin-textdomain',
        generateHandles: true,
        wpCodingStandards: true
    },

    // Advanced options
    advanced: {
        autoInstallDeps: true,
        transpile: {
            target: 'es5',
            browsers: ['> 1%', 'last 2 versions', 'ie >= 11']
        },
        css: {
            autoprefixer: true,
            purgeUnused: false
        },
        optimization: {
            splitChunks: true,
            treeshake: true,
            compress: true
        }
    }
};

CLI Commands

Build

Build assets for production and development:

npx bento build

Options:

  • -c, --config <path> - Custom config file path
  • -w, --watch - Watch for changes
  • --no-clean - Skip cleaning output directory

Watch

Watch for changes and rebuild automatically:

npx bento watch

Initialize

Create a default configuration file:

npx bento init

Output

Bento creates both versions of every asset:

  • Development files (.js, .css) - Unminified, readable
  • Production files (.min.js, .min.css) - Minified, optimized

Example Output:

public/
├── admin/
│   ├── main.js          # Unminified
│   ├── main.min.js      # Minified
│   ├── main.css         # Unminified
│   └── main.min.css     # Minified
├── frontend/
│   └── ...
├── shared/
│   └── ...
└── manifest.json        # Asset mapping

WordPress Integration

Bento generates a manifest.json file that maps source files to their built versions:

{
  "main.js": {
    "unminified": "main.js",
    "minified": "main.min.js"
  },
  "main.scss": {
    "unminified": "main.css",
    "minified": "main.min.css"
  }
}

Use this manifest in your WordPress plugin to conditionally load minified or unminified assets based on WP_DEBUG or other conditions.

Package.json Scripts

Add these scripts to your plugin's package.json:

{
  "scripts": {
    "build": "bento build",
    "watch": "bento watch",
    "dev": "bento watch"
  }
}

Dependencies

Required:

  • Node.js >= 14.0.0
  • chokidar (for watch mode)

Optional (peer dependencies):

  • sass - For SCSS/Sass processing
  • @babel/core + @babel/preset-env - For ES6+ transpilation

Install optional dependencies if needed:

npm install sass @babel/core @babel/preset-env --save-dev

Comparison with Vite

| Feature | Bento | Vite | |---------|-------|------| | WordPress-focused | ✅ | ❌ | | Dual output (min/unmin) | ✅ | ❌ | | Zero config for WP | ✅ | ❌ | | Dev server | ❌ | ✅ | | HMR | ❌ | ✅ | | File size | Lightweight | Heavier |

Why "Bento"?

Just like a bento box neatly organizes different foods in compartments, Bento bundler neatly organizes your WordPress plugin assets into admin, frontend, and shared compartments! 🍱

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT License - see LICENSE file for details.

Support