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

@blazefw/vite-plugin

v0.1.1

Published

BlazeFW Vite plugin — intercepts .ultimate.tsx files and routes them through the Rust compiler binary via stdin/stdout JSON bridge, splitting each file into server and client bundles automatically

Readme

@blazefw/vite-plugin

BlazeFW Vite plugin — intercepts .ultimate.tsx files and routes them through the Rust compiler binary via a stdin → stdout JSON bridge. Automatically splits each file into a server bundle (no browser APIs) and a client bundle (RPC stubs replace server functions). Results are cached per file and cleared on HMR.

Installation

npm install -D @blazefw/vite-plugin

The plugin requires the nexus-compiler Rust binary. It resolves in this order:

  1. ULTIMATE_COMPILER_BIN environment variable
  2. packages/compiler/target/release/nexus-compiler (release build)
  3. packages/compiler/target/debug/nexus-compiler (debug build)

To build the binary:

cd packages/compiler
cargo build --release

Usage

// vite.config.ts
import { defineConfig } from 'vite';
import { ultimatePlugin } from '@blazefw/vite-plugin';

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

Options

import { ultimatePlugin, type UltimatePluginOptions } from '@blazefw/vite-plugin';

ultimatePlugin({
  // Glob pattern for files to process.
  // Default: /.ultimate.tsx?$/  (matches .ultimate.tsx and .ultimate.ts)
  include: /\.ultimate\.tsx?$/,
})

How it works

Given a single mixed .ultimate.tsx file:

// components/UserDashboard.ultimate.tsx
import { db } from './db';                     // ← server trigger (DB import)

export async function getUser(id: string) {    // classified: ServerOnly
  return db.user.findUnique({ where: { id } });
}

export function UserCard({ userId }) {         // classified: ClientOnly
  window.analytics.track('view');              // ← client trigger (browser global)
  return <button onClick={() => getUser(userId)}>Load</button>;
}

The plugin produces two outputs automatically:

Server bundle — contains getUser, strips UserCard:

// .ultimate/UserDashboard.server.js (auto-generated)
export async function getUser(id) {
  return db.user.findUnique({ where: { id } });
}

Client bundle — contains UserCard, replaces getUser with a type-safe RPC stub:

// .ultimate/UserDashboard.client.js (auto-generated)
export async function getUser(id) {
  return __ultimate_rpc('/api/__ultimate/getUser', { id });
}
export function UserCard({ userId }) {
  window.analytics.track('view');
  return <button onClick={() => getUser(userId)}>Load</button>;
}

Classification rules

| Classification | Trigger | Behaviour | |---|---|---| | ServerOnly | process.env, DB imports, node:* | Kept in server bundle only | | ClientOnly | window, document, localStorage | Kept in client bundle only | | Shared | Pure logic, no triggers | Included in both bundles | | BoundaryCrossing | Server fn called from client code | Gets RPC stub in client bundle | | Mixed | Both triggers in same function | Compile error — must be split manually |

HMR

The plugin hooks into Vite's handleHotUpdate — when a .ultimate.tsx file changes, its cache entry is cleared and a full page reload is triggered automatically. No manual restart needed.

Environment variable

# Point to a custom compiler binary location
ULTIMATE_COMPILER_BIN=/path/to/nexus-compiler vite dev