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

@rotten-games/rotten-uitk

v1.0.5

Published

RottenUITK - HTML + Tailwind to Unity UI Toolkit converter. Build game UIs with web-native tools.

Downloads

15

Readme

RottenUITK

Convert HTML + Tailwind to Unity UI Toolkit (UXML/USS/C#).

Design game UI in HTML, preview in browser, compile to Unity with one click.

Installation

npm install -g @rotten-games/rotten-uitk

Quick Start

# Start the visual editor
rotten-uitk preview ./my-ui-folder --open

# Or compile directly
rotten-uitk convert MainMenu.html -o Assets/UI

Web Preview Features

The preview server gives you a complete UI development environment:

  • File Browser - See all HTML files in your project
  • Live Preview - See your UI instantly as you edit
  • Size Presets - Mobile, Tablet, Desktop, Full
  • Code View - See generated UXML, USS, C# side by side
  • Compile File - One click to generate Unity files (Ctrl+S)
  • Compile All - Generate all files at once (Ctrl+Shift+S)
  • Watch Mode - Auto-compile on file changes
  • Output Folder - Set your Unity output path (e.g., Assets/UI/Generated)

Workflow

  1. Create HTML files with Tailwind classes
  2. Run rotten-uitk preview . --open
  3. Set output folder (e.g., Assets/UI/Generated)
  4. Edit HTML in your favorite editor
  5. Preview changes in browser
  6. Click "Compile" or press Ctrl+S
  7. See files in Unity

Example

Input: MainMenu.html

<div class="flex flex-col items-center justify-center h-full bg-zinc-900">
  <div class="text-4xl font-bold text-amber-500 mb-8">MY GAME</div>
  <button class="w-64 py-4 bg-amber-600 text-zinc-900 font-bold rounded">
    PLAY
  </button>
</div>

Output:

  • MainMenu.uxml - Unity visual tree
  • MainMenu.uss - Unity styles
  • MainMenu.cs - C# bindings

HTML Guidelines

For best Unity compatibility:

<!-- Use flex for layout -->
<div class="flex flex-col w-full h-full">
  <!-- Use w-full h-full for root -->
  <div class="w-full h-full bg-zinc-900">
    <!-- Avoid complex CSS that Unity doesn't support -->
    <!-- Good: flex, padding, margin, colors, borders -->
    <!-- Avoid: grid, transforms, complex animations -->
  </div>
</div>

Supported Tailwind

Layout: flex, flex-col, flex-row, flex-1, items-*, justify-*, gap-* Sizing: w-*, h-*, w-full, h-full Spacing: p-*, m-*, px-*, py-* Colors: bg-*, text-*, border-* Typography: text-xs/sm/base/lg/xl/2xl/3xl/4xl, font-bold Borders: rounded, border, border-* States: hover:*

CLI Commands

# Visual development
rotten-uitk preview <folder> [--open] [-o output]

# Direct conversion
rotten-uitk convert <file> [-o output]

# Watch mode (CLI)
rotten-uitk watch <folder> -o output

# Templates
rotten-uitk templates [list|copy]

Requirements

  • Node.js 18+
  • Unity 2021.3+ with UI Toolkit

License

MIT