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

@jixoai/ui-vite-plugin

v0.6.0

Published

Vite plugin supplying the pinned ghostty-vt wasm: resolve (env -> cache -> verified download) -> serve (dev middleware) -> emit (content-addressed asset) -> hand over the URL via the virtual:jixoai-ghostty module. Also ships the icon system (svg/lucide/fo

Readme

@jixoai/ui-vite-plugin

Vite plugin that supplies the pinned ghostty ghostty-vt wasm to your build: resolve (env → cache → verified download) → serve in dev / emit in build → hand over the URL through the virtual:jixoai-ghostty module. Also hosts the jixoai icon system (svg/lucide/font providers + serializer + safety checker) behind the icons feature option and the ./icons subpath (merge-alignment A1).

You need it because none of vite 8's native wasm forms fit a wasm that comes from a release download rather than your module graph — every native form (bare import / ?url / ?init / publicDir) either requires the file to already sit in your project, or gives up control over loading and caching. This plugin pins the exact bytes (sha256), verifies them, and exposes a stable, content-addressed URL.

  • Zero runtime dependencies. Peer: vite ^8.0.0 (vite 8 is the only tested surface; older majors are not promised).
  • Binaries never enter git or your bundle source; the only shipped artifact is the text manifest ghostty.pin.json.
  • The icons feature is default-OFF: no plugin is registered, no files are read and no optional dependency (opentype.js / wawoff2) is loaded unless jixoai({ icons: … }) opts in.

Install

npm i -D @jixoai/ui-vite-plugin

Wire it in vite.config.ts:

import { jixoai } from '@jixoai/ui-vite-plugin';

export default {
  plugins: [...jixoai()],
};

Add the client types once (e.g. in your src/vite-env.d.ts):

/// <reference types="@jixoai/ui-vite-plugin/client" />

Consume the wasm URL (this module is pure data — safe to import in SSR and tests; nothing touches fetch/WebAssembly at evaluation time):

import { url, sha256, variant, buildInfo } from 'virtual:jixoai-ghostty';

| export | value | | --- | --- | | url | dev: /@jixoai/ghostty-vt-<sha16>.wasm (middleware-served, application/wasm, immutable); build: your emitted asset URL | | sha256 | full 64-hex pin digest of the bytes | | variant | 'full' \| 'small' | | buildInfo | version string read from the wasm itself (ghostty_build_info) |

Options (all optional):

jixoai({ ghostty: {
  variant: 'full',   // 'small' = trimmed build (~711KB vs ~981KB)
  cacheDir: '…',     // default <cwd>/node_modules/.cache/jixoai-ghostty
  offline: false,    // true = cache only; a miss is an error
}})

The icons feature (icons, default off)

The unified SVG icon system (migrated from the never-published @jixoai/ui-plugin — one-shot move, no compat layer). Opting in wires the jixoai-icons plugin, which serves virtual:jixoai-icons as a virtual CSS module of --jx-icon-{slot} custom properties:

// vite.config.ts
import { jixoai } from '@jixoai/ui-vite-plugin';
import { lucideIconProvider } from '@jixoai/ui-vite-plugin/icons';

export default {
  plugins: [...jixoai({ icons: { provider: lucideIconProvider() } })],
};

Then in your CSS entry (after the jixoai theme):

@import 'virtual:jixoai-icons';  /* ← @layer theme { :root { --jx-icon-* } } */

The safety config nests inside the icons option (it scoped the icon serializer, so it rides the feature that owns it):

jixoai({ icons: {
  provider: fontIconProvider({ fontPath: './icons.woff2', symbols: { calendar: 0xe901 } }),
  safety: { mode: 'error', maxBytes: 5120 },  // default { mode: 'warn' }
}})

Providers (all behind @jixoai/ui-vite-plugin/icons, pure factories that never touch the filesystem — the plugin owns ALL file I/O):

| provider | source | notes | | --- | --- | --- | | lucideIconProvider() | lucide package IconNodes | zero I/O; serializes lucide's own geometry — needs lucide installed (optional peer dep) | | svgIconProvider({ dir, slots? }) | {dir}/{slot}.svg files | optional per-slot filename overrides | | fontIconProvider({ fontPath, symbols, viewBox? }) | TTF/OTF/WOFF2 glyphs | needs the optional opentype.js (+ wawoff2 for WOFF2) deps | | mixinIconProvider(base, overrides) | composition | override → base → null fallthrough |

The serializer is the only code that emits CSS; every icon passes the safety checker (byte size / path command count / disallowed elements) before it reaches output. Slots the provider does not serve — or whose asset fails a warn-mode check — fall back to the standard layer's inline icons. Standalone use (icons feature only, without the umbrella) is createIconPlugin({ icons: provider }) from the same subpath.

Where the bytes come from

JIXOAI_GHOSTTY_WASM_PATH (env)   → read that file, verify sha256, return its path
cache hit  (<cacheDir>/<sha256>.wasm) → verify and reuse
cache miss (online)               → download per pin.url, verify, write atomically
  • The default cache lives under node_modules/.cache/ — safe to blow away, re-created on demand, ignored by git everywhere.
  • Downloads are hardened: https only, host allowlist (github.com, objects.githubusercontent.com, release-assets.githubusercontent.com), per-hop redirect checks (max 5), 30s timeout, streaming 4MB cap that never trusts Content-Length, and a canonical URL path check parameterized by the pinned tag.

Offline / CI

Point the env var at a local copy (it is still sha256-verified):

JIXOAI_GHOSTTY_WASM_PATH=/path/to/ghostty-vt.wasm npm run build

or pre-seed the cache and run with offline: true.

Troubleshooting

Errors always name the fix. The ones you are most likely to meet:

  • WASM RESOLVE FAILED … SHA256 MISMATCH — the pinned digest and the upstream release disagree (nightly moved). Check the repo's ghostty-wasm-sync workflow status; pin updates land via PR. To force ahead locally, set JIXOAI_GHOSTTY_WASM_PATH.
  • OFFLINE CACHE MISS — run once online to populate the cache, or use the env override.
  • REJECTED URL / REJECTED REDIRECT — the pin or a redirect hop left the allowlisted GitHub download layout; treat as a supply-chain incident, do not bypass.

jixoai-ghostty-probe

The package ships an ABI sentinel CLI used by CI (and useful when inspecting a download by hand):

npx jixoai-ghostty-probe --wasm ./node_modules/.cache/jixoai-ghostty/<sha256>.wasm --variant full --json

Prints the pin fragment { variant, sha256, size, buildInfo } on success; exits non-zero with a named reason on any ABI drift (import face, required exports, marshalling smoke, simd128).

The stylex feature (stylex, default off)

The StyleX engine wiring — build-side ONLY (the stylex-kernel phase 0 law F11): the registry ships compiled output, and consumers of any registry item never owe a @stylexjs/* package. Opting in names the kernel trees whose modules may enter the transform:

import { jixoai } from '@jixoai/ui-vite-plugin';

export default {
  plugins: [
    sveltekit(),
    tailwindcss(),
    ...jixoai({
      stylex: { include: ['src/lib', '../../registry/files'] },
    }),
  ],
};

What the feature owns (decisions and receipts live in src/stylex/vite-plugin.ts):

  • the kernel-scope gate — only modules under the include dirs are transformed; docs routes never enter, whatever they import.
  • the F9 canonical layer law — every emitted css asset carrying stylex output starts with the one canonical FULL layer statement (properties, theme, base, components, stylex.priority1..3, utilities) at byte zero, ahead of Tailwind's layers; authors never hand-write it.
  • the css-entry trap warning — a build with stylex output but no css asset warns by name (Vite 8/rolldown silently drops the css otherwise) and writes a fallback assets/stylex.css.
  • the kernel babel pins — propertyValidationMode: 'throw' (the silent shorthand-drop guard), debug, and explicit dev/runtimeInjection flags.

Version pin policy

@stylexjs/unplugin is EXACT-pinned 0.19.0 as a devDependency and kept EXTERNAL in the build (dist carries the bare specifier, resolved from this package's own install — never from a consumer's tree). Bumping the pin is a research-level event: re-run the research dossier's D1 fixtures (openspec/changes/archive/2026-09-13-stylex-kernel-research) and re-audit the wrapper before any bump lands.