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-tanstack-start-zephyr

v0.1.10

Published

Vite plugin for Zephyr with TanStack Start support

Readme

vite-plugin-tanstack-start-zephyr

Vite plugin for deploying TanStack Start applications to Zephyr with SSR support.

Overview

This plugin automatically bundles and uploads your TanStack Start application to Zephyr's edge network during the build process. It supports server-side rendering (SSR) and enables multiple versions of your application to run simultaneously.

Installation

pnpm add vite-plugin-tanstack-start-zephyr

Usage

Add the plugin to your vite.config.ts:

import { defineConfig } from 'vite';
import { TanStackStartVite } from '@tanstack/start/vite';
import { withZephyrTanstackStart } from 'vite-plugin-tanstack-start-zephyr';

export default defineConfig({
  plugins: [
    TanStackStartVite(),
    withZephyrTanstackStart({
      appUid: 'my-app-uid',
      environment: 'production',
      apiEndpoint: 'https://api.zephyrcloud.app',
      apiKey: process.env.ZEPHYR_API_KEY,
    }),
  ],
});

Configuration

Options

| Option | Type | Required | Description | | ------------- | -------- | -------- | ---------------------------------------------- | | appUid | string | Yes | Your application's unique identifier | | environment | string | No | Deployment environment (default: 'production') | | apiEndpoint | string | No | Zephyr API endpoint | | apiKey | string | No | API key for authentication |

Environment Variables

You can also configure the plugin using environment variables:

  • ZE_APP_UID - Application UID
  • ZE_API_ENDPOINT - API endpoint
  • ZE_API_KEY - API key
  • ZE_ENVIRONMENT - Deployment environment

How It Works

  1. Build: TanStack Start builds your app to .output/ directory
  2. Extract: Plugin collects server modules and client assets
  3. Bundle: Server code is bundled with all dependencies
  4. Upload: Both server and client files are uploaded to Zephyr
  5. Deploy: Files are stored in content-addressable KV storage
  6. Run: Orchestration worker loads and runs your app on the edge

Build Output

The plugin processes TanStack Start's build output:

.output/
├── server/           # Server-side code
│   ├── index.js     # Main entry point
│   └── assets/      # Server bundles
└── client/          # Client-side assets
    └── assets/      # Client bundles

Deployment Architecture

Your app runs in Cloudflare's orchestration worker using dynamic worker loaders:

Request → Orchestration Worker → Load Your App (Isolate) → Response

Features:

  • ✅ Multiple versions live simultaneously
  • ✅ Content-addressable storage (efficient caching)
  • ✅ SSR and API routes support
  • ✅ Hot swapping without redeployment
  • ✅ Per-version isolation

Development

Build Plugin

cd libs/vite-plugin-tanstack-start-zephyr
pnpm build

Run Tests

pnpm test

Link Locally

pnpm link --global
# In your project
pnpm link --global vite-plugin-tanstack-start-zephyr

Requirements

  • Node.js 18+
  • TanStack Start 1.0+
  • Vite 5+

License

MIT

Related