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-modernjs-plugin

v0.1.10

Published

Modernjs plugin for Zephyr

Readme

Zephyr Modern.js Plugin

Zephyr Cloud | Zephyr Docs | Discord | Twitter | LinkedIn

A Modern.js plugin for deploying applications with Zephyr Cloud. This plugin integrates seamlessly with Modern.js framework to enable application federation and deployment capabilities.

Get Started

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

npx create-zephyr-apps@latest

For more information, please refer to our documentation for Modern.js and Zephyr integration.

Installation

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

# yarn
yarn add --dev zephyr-modernjs-plugin

# pnpm
pnpm add --dev zephyr-modernjs-plugin

# bun
bun add --dev zephyr-modernjs-plugin

Usage

Add the plugin to your Modern.js configuration:

// modern.config.ts
import { defineConfig } from '@modern-js/app-tools';
import { withZephyr } from 'zephyr-modernjs-plugin';

export default defineConfig({
  output: {
    distPath: {
      html: './',
    },
  },
  html: {
    outputStructure: 'flat',
  },
  source: {
    mainEntryName: 'index',
  },
  runtime: {
    router: true,
  },
  plugins: [
    appTools({
      bundler: 'rspack', // Set to 'webpack' to enable webpack
    }),
    withZephyr(), // Must be last
  ],
});

Required Configuration

The plugin requires the following Modern.js configuration to work properly:

Output Configuration

output: {
  distPath: {
    html: './', // HTML files at root of dist
  },
}

HTML Configuration

html: {
  outputStructure: 'flat', // Flat structure for assets
}

Source Configuration

source: {
  mainEntryName: 'index', // Main entry point name
}

Bundler Support

The plugin works with both Webpack and Rspack bundlers:

With Rspack (Recommended)

plugins: [
  appTools({
    bundler: 'rspack',
  }),
  withZephyr(),
];

With Webpack

plugins: [
  appTools({
    bundler: 'webpack',
  }),
  withZephyr(),
];

Features

  • 🚀 Seamless deployment during Modern.js build
  • ⚡ Support for both Webpack and Rspack bundlers
  • 📦 Automatic asset optimization
  • 🏗️ Application federation capabilities
  • 🔧 Zero-config setup with required configuration
  • 📊 Build analytics and monitoring
  • 🌐 Global CDN distribution

Project Structure

Your Modern.js project should follow this structure:

my-modernjs-app/
├── src/
│   ├── routes/
│   │   ├── layout.tsx
│   │   └── page.tsx
│   └── index.ts
├── modern.config.ts
└── package.json

Getting Started

  1. Install the plugin in your Modern.js project
  2. Add the required configuration to modern.config.ts
  3. Add the plugin to your plugins array (ensure it's last)
  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": "modern dev",
    "build": "modern build",
    "serve": "modern serve"
  }
}

Requirements

  • Modern.js 2.x 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:

  • modern-js - Complete Modern.js setup with Zephyr

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.