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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nimbu-cli/plugin-vite

v6.0.0-alpha.0

Published

Vite-powered development and build tooling for Nimbu themes. The plugin mirrors the existing webpack integration by generating `snippets/vite.liquid`, keeping asset filenames stable, and routing the Nimbu proxy through the Node-based proxy server.

Readme

@nimbu-cli/plugin-vite

Vite-powered development and build tooling for Nimbu themes. The plugin mirrors the existing webpack integration by generating snippets/vite.liquid, keeping asset filenames stable, and routing the Nimbu proxy through the Node-based proxy server.

Installation

pnpm add -D @nimbu-cli/plugin-vite

Requires Node.js 20.19 or newer. Vite 7 dropped support for earlier Node.js releases, and the plugin enforces the same minimum.

Make sure you only keep one bundler plugin installed at a time (either the webpack plugin or this Vite plugin) to avoid command conflicts. The core CLI loads optional plugins listed in package.json#oclif.optionalPlugins when the package is present.

Development

pnpm exec nimbu server --port 5173
  • The proxy and Vite dev middleware share the same port (default http://localhost:4567).
  • HMR traffic flows through the same origin, so no extra port management is required.
  • The plugin rewrites snippets/vite.liquid so templates can keep using the aggregate snippet just like the webpack workflow.

Production build

pnpm exec nimbu build
  • Runs vite build with a stable Rollup output pattern.
  • Copies generated assets into javascripts/ and stylesheets/ inside the theme directory without hashes.
  • Writes an updated snippets/vite.liquid file based on the Vite manifest.

Configuration

  • Place your Vite config at the project root (e.g. vite.config.ts).
  • If no config file is found, the plugin falls back to src/index.(t|j)sx? as the entry and writes assets to .nimbu-vite/ before synchronising them into the theme directories.
  • Custom Rollup inputs are supported; their keys become the chunk names exposed in Liquid.

Snippet contract

The aggregate snippet exposes:

  • vite_build_timestamp
  • vite_chunks
  • vite_js
  • vite_css

Entries can be accessed directly off the aggregate maps; for example vite_js['app'] and vite_css['app'] provide the specific asset references.