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

zephyr-rsbuild-plugin

v0.1.10

Published

Rsbuild plugin for Zephyr

Readme

Zephyr Rsbuild Plugin

Zephyr Cloud | Zephyr Docs | Discord | Twitter | LinkedIn

An Rsbuild plugin for deploying applications with Zephyr Cloud. This plugin integrates seamlessly with Rsbuild's fast bundling to enable deployment of your applications with Module Federation support.

Get Started

The fastest way to get started is to use create-zephyr-apps to generate a new Rsbuild application with Zephyr integration:

npx create-zephyr-apps@latest

For more information please refer to our documentation.

Installation

# npm
npm install --save-dev zephyr-rsbuild-plugin

# yarn
yarn add --dev zephyr-rsbuild-plugin

# pnpm
pnpm add --save-dev zephyr-rsbuild-plugin

# bun
bun add --dev zephyr-rsbuild-plugin

Usage

Basic Setup

Add the plugin to your Rsbuild configuration:

// rsbuild.config.js
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { withZephyr } from 'zephyr-rsbuild-plugin';

export default defineConfig({
  plugins: [
    pluginReact(),
    withZephyr(), // Add Zephyr plugin
  ],
});

With Options

// rsbuild.config.js
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { withZephyr } from 'zephyr-rsbuild-plugin';

export default defineConfig({
  plugins: [
    pluginReact(),
    withZephyr({
      wait_for_index_html: true, // Wait for HTML processing
    }),
  ],
});

TypeScript Configuration

// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { withZephyr } from 'zephyr-rsbuild-plugin';

export default defineConfig({
  plugins: [pluginReact(), withZephyr()],
});

With Module Federation

// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
import { withZephyr } from 'zephyr-rsbuild-plugin';

export default defineConfig({
  plugins: [
    pluginReact(),
    pluginModuleFederation({
      name: 'my-app',
      remotes: {
        'shared-ui': 'shared_ui@http://localhost:3001/remoteEntry.js',
      },
      shared: {
        react: { singleton: true },
        'react-dom': { singleton: true },
      },
    }),
    withZephyr(), // Add after Module Federation
  ],
});

Features

  • 🚀 Fast builds with Rsbuild's Rust-based bundler
  • 🏗️ Full Module Federation support
  • 📦 Automatic asset optimization and caching
  • 🔧 Zero-config setup for simple applications
  • 📊 Build analytics and monitoring
  • 🌐 Global CDN distribution
  • ⚡ Hot module replacement in development
  • 🎯 Simple plugin integration

Module Federation Support

This plugin provides comprehensive Module Federation support:

  • Host Applications: Consume remote modules from other applications
  • Remote Applications: Expose modules for consumption by host applications
  • Shared Dependencies: Efficient sharing of common libraries
  • Dynamic Imports: Runtime loading of remote modules
  • Automatic Vendor Federation: Smart dependency sharing

Getting Started

  1. Install the plugin in your Rsbuild project
  2. Add it to your Rsbuild configuration plugins array
  3. Configure Module Federation (if needed) for microfrontends
  4. Build your application with npm run build
  5. Your app will be automatically deployed to Zephyr Cloud

Build Scripts

Add these scripts to your package.json:

{
  "scripts": {
    "dev": "rsbuild dev",
    "build": "rsbuild build",
    "preview": "rsbuild preview"
  }
}

Requirements

  • Rsbuild 1.0 or higher
  • Node.js 18 or higher
  • Zephyr Cloud account (sign up at zephyr-cloud.io)

Examples

Check out our examples directory for complete working examples:

API Reference

withZephyr(options?)

Creates an Rsbuild plugin for Zephyr integration.

Parameters

  • options (optional): Configuration options
    • wait_for_index_html?: boolean - Wait for HTML processing before deployment

Returns

An Rsbuild plugin that can be added to the plugins array.

Contributing

We welcome contributions! Please read our contributing guidelines for more information.

License

Licensed under the Apache-2.0 License. See LICENSE for more information.