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/ai

v0.1.4

Published

One-function SDK for creating .uix files from AI-generated code

Readme

@dotuix/ai

One-function SDK for creating .uix files from AI-generated code.

npm install @dotuix/ai

For AI agents using tool calls, use @dotuix/mcp instead. This package is for AI-generated Node.js / TypeScript scripts that build .uix files programmatically.

Usage

import { createUIX } from "@dotuix/ai";

const path = await createUIX({
  manifest: {
    uix: "1.0",
    id: "com.example.myapp",
    name: "My App",
    version: "1.0.0",
    entry: "index.html",
    mode: "window",
  },
  files: {
    "index.html": `<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>My App</title></head>
<body>
  <h1>Hello from .uix</h1>
  <script src="app.js"></script>
</body>
</html>`,
    "app.js": `(async () => {
  const manifest = await uix.manifest();
  document.querySelector('h1').textContent = manifest.name;
})();`,
  },
});

console.log(path); // /tmp/dotuix-xxx/my-app.uix — ready to open in the viewer

That's it. createUIX handles:

  • Creating a temp directory and project structure
  • Writing your files to disk
  • Auto-stamping ai.generatedBy and ai.generatedAt in the manifest
  • Calling dotuix pack to produce the .uix file
  • Cleaning up the source directory

API

createUIX(options: CreateUIXOptions): Promise<string>

Returns the absolute path to the packed .uix file.

CreateUIXOptions

| Field | Type | Required | Description | | ------------- | ------------------------- | -------- | --------------------------------------------------------------------------------------- | | manifest | Record<string, unknown> | Yes | manifest.json content. The ai block is merged and stamped automatically. | | files | Record<string, string> | Yes | Source files as { "relative/path": "utf-8 content" }. Do not include manifest.json. | | output | string | No | Absolute path for the output .uix file. Defaults to a temp directory. | | generatedBy | string | No | Overrides ai.generatedBy. Defaults to "@dotuix/ai". |

The ai provenance block

Every .uix created via createUIX gets an ai block stamped in its manifest.json:

{
  "ai": {
    "generatedBy": "@dotuix/ai",
    "generatedAt": "2026-05-19T12:00:00Z"
  }
}

Pass capabilities in your manifest to declare what the app does:

manifest: {
  // ...
  ai: {
    capabilities: ["search", "chat"],
  },
},

The final manifest will have generatedBy and generatedAt merged in.

When to use which package

| Scenario | Use | | ------------------------------------------------ | -------------------------------------------------------------------------- | | Talking to Claude Desktop / Cursor / Copilot | @dotuix/mcp | | AI writes a Node.js script that creates a .uix | @dotuix/ai | | Packing a manually written app | @dotuix/cli (dotuix pack) | | Programmatic pack/unpack/validate in any context | @dotuix/core |

Requirements

  • Node.js ≥ 22
  • @dotuix/cli installed globally: npm install -g @dotuix/cli

Links