
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@dotuix/vite-plugin
Advanced tools
Vite plugin — build any React / Vue / Svelte / plain-TS app and output a
.uixfile automatically.
npm install -D @dotuix/vite-plugin
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.
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. |
import pkg from "./package.json";
dotuix({
manifest: { version: pkg.version },
});
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.data — find, get, raw (return empty results)window.__uix.state — find, get, insert, update, delete, raw, purgewindow.__uix.manifest() — returns a dev-preview manifest objectwindow.__uix.print(), window.__uix.exit()To disable mock injection (e.g., you have a custom bridge), pass mockBridge: false.
config hook — forces base: './' so all asset URLs are relative (required by the .uix ZIP format).transformIndexHtml hook — injects the mock bridge script in non-build modes.closeBundle hook — after vite build:
manifest.json from the project root and merges any plugin-level overrides.uix, id, name, version, entry).manifest.json into the Vite output directory.UIX.pack(outDir, outputPath) from @dotuix/core to create the .uix archive.MIT
FAQs
Vite plugin — build React/Vue/Svelte/TS apps and output a .uix file
The npm package @dotuix/vite-plugin receives a total of 3 weekly downloads. As such, @dotuix/vite-plugin popularity was classified as not popular.
We found that @dotuix/vite-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.