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

vite-plugin-vinext-zephyr

v1.2.0

Published

Vite plugin for deploying Vinext applications with Zephyr

Downloads

1,294

Readme

vite-plugin-vinext-zephyr

Zephyr Cloud | Zephyr Docs | Discord | Twitter | LinkedIn

A Vite plugin for deploying Vinext applications with Zephyr Cloud.

Installation

pnpm add --save-dev vite-plugin-vinext-zephyr

Usage

Add the plugin after vinext() in your vite.config.ts:

import { defineConfig } from 'vite';
import vinext from 'vinext';
import { cloudflare } from '@cloudflare/vite-plugin';
import { withZephyr } from 'vite-plugin-vinext-zephyr';

export default defineConfig({
  plugins: [
    vinext(),
    cloudflare({
      viteEnvironment: {
        name: 'rsc',
        childEnvironments: ['ssr'],
      },
    }),
    withZephyr(),
  ],
});

Options

const tapFederationMetadata = {
  mfConfigs: [
    { name: 'desktop', filename: 'targets/desktop/remoteEntry.mjs', library: { type: 'module' } },
    { name: 'mobile', filename: 'targets/mobile/remoteEntry.mjs', library: { type: 'module' } },
    { name: 'quickjs', filename: 'targets/quickjs/remoteEntry.mjs', library: { type: 'module' } },
  ],
  federation: [
    { name: 'desktop', remote: 'targets/desktop/remoteEntry.mjs', library_type: 'module' },
    { name: 'mobile', remote: 'targets/mobile/remoteEntry.mjs', library_type: 'module' },
    { name: 'quickjs', remote: 'targets/quickjs/remoteEntry.mjs', library_type: 'module' },
  ],
};

withZephyr({
  target: 'tap-app',
  outputDir: 'dist',
  ...tapFederationMetadata,
  hooks: {},
});
  • outputDir - Build output directory. Defaults to dist.
  • target - Zephyr artifact family. Use tap-app for TAP packages.
  • mfConfigs - Every Module Federation container included in the snapshot.
  • federation - Matching build-stat metadata for each mfConfigs entry.
  • snapshotType - 'csr' or 'ssr'. TAP packages default to CSR; ordinary Vinext deployments default to SSR.
  • entrypoint - Optional server entrypoint relative to output directory for an SSR snapshot. Auto-detected when SSR is selected.
  • hooks - Optional Zephyr deployment lifecycle hooks.

target: 'tap-app' publishes a desktop/mobile/QuickJS ESM package as CSR by default, without requiring a server entrypoint. To publish a TAP SSR package instead, opt in explicitly:

withZephyr({
  target: 'tap-app',
  snapshotType: 'ssr',
  entrypoint: 'server/index.js',
  ...tapFederationMetadata,
});

TAP publication requires both non-empty metadata arrays. Every mfConfigs item must have exactly one federation item with the same name and with filename === remote; mismatched metadata fails before the build starts. Vinext does not infer this information from framework plugins. A valid singleton is also exposed through the legacy mfConfig field for older consumers; multi-container packages use only the complete mfConfigs array.

Entrypoint Auto-Detection

The plugin waits for Vinext's post-ordered buildApp phase, verifies every Vite child environment completed, then scans the finalized output tree. Ordinary Vinext deployments include the generated RSC manifest and Worker-compatible import cleanup. With target: 'tap-app', the finalized tree is transported verbatim instead: no Node-import rewriting and no synthesized RSC manifest. CSR transport does not inspect a server entry. When snapshotType: 'ssr' is selected and entrypoint is not provided, it resolves JavaScript, ESM, and CommonJS entries from:

  1. dist/server/index.js for App Router builds.
  2. dist/<worker-dir>/index.* when <worker-dir> contains wrangler.json or wrangler.jsonc (Pages Router builds).

License

Apache-2.0