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

@dotuix/vite-plugin

v0.1.4

Published

Vite plugin — build React/Vue/Svelte/TS apps and output a .uix file

Downloads

213

Readme

@dotuix/vite-plugin

Vite plugin — build any React / Vue / Svelte / plain-TS app and output a .uix file automatically.

npm install -D @dotuix/vite-plugin

Quick start

1. Add the plugin to vite.config.ts:

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { dotuix } from "@dotuix/vite-plugin";

export default defineConfig({
  plugins: [
    react(),
    dotuix(), // ← add this
  ],
});

2. Add a manifest.json to your project root:

{
  "uix": "1.0",
  "id": "com.example.myapp",
  "name": "My App",
  "version": "1.0.0",
  "entry": "index.html",
  "mode": "window",
  "permissions": [],
  "network": "none"
}

3. Build:

vite build
# ✓ [dotuix] packed → myapp.uix

The .uix file is written to the project root. Open it with the dotuix viewer.


Options

dotuix(options?: DotuixPluginOptions)

| Option | Type | Default | Description | | ------------ | ------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------- | | manifest | Record<string, unknown> | {} | Manifest overrides — merged on top of manifest.json. Useful for injecting the version dynamically. | | output | string | <root>/<appName>.uix | Custom output path for the .uix file. | | mockBridge | boolean | true | Inject a mock window.__uix bridge during vite dev / vite preview so the app runs without a real viewer. |

Dynamic version example

import pkg from "./package.json";

dotuix({
  manifest: { version: pkg.version },
});

Dev mode

During vite dev and vite preview the plugin injects a lightweight in-browser mock of window.__uix so your app renders correctly without needing the desktop viewer.

The mock bridge provides:

  • window.__uix.datafind, get, raw (return empty results)
  • window.__uix.statefind, get, insert, update, delete, raw, purge
  • window.__uix.manifest() — returns a dev-preview manifest object
  • window.__uix.print(), window.__uix.exit()

To disable mock injection (e.g., you have a custom bridge), pass mockBridge: false.


How it works

  1. config hook — forces base: './' so all asset URLs are relative (required by the .uix ZIP format).
  2. transformIndexHtml hook — injects the mock bridge script in non-build modes.
  3. closeBundle hook — after vite build:
    • Reads manifest.json from the project root and merges any plugin-level overrides.
    • Validates required fields (uix, id, name, version, entry).
    • Writes manifest.json into the Vite output directory.
    • Calls UIX.pack(outDir, outputPath) from @dotuix/core to create the .uix archive.

Requirements

  • Vite ≥ 5.0
  • Node ≥ 22

License

MIT