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

udodi

v1.1.0

Published

A lightweight UI/component framework

Readme

What is Udodi?

Udodi is a lightweight, zero-dependency reactive UI runtime built around a minimalistic declarative HTML DSL, path-level reactivity, and a component-first architecture.

Instead of relying on heavy runtime abstractions, deep proxies, or an expensive Virtual DOM reconciliation engine, Udodi tokenizes its declarative DSL, compiles it into lightweight instructions, and executes those instructions through an internal Virtual Machine (VM).

The result is fine-grained reactivity anchored directly to DOM nodes, delivering fast execution and predictable runtime behavior. Because Udodi's DSL is compiled into VM instructions rather than evaluated as arbitrary JavaScript, it does not rely on eval() or new Function(), making it CSP-friendly and usable without a build step.

Why Udodi?

  • No Virtual DOM: Directly updates targeted DOM properties and text nodes, avoiding the overhead of virtual DOM tree diffing.
  • No JSX Needed: Keeps UI structure close to native, declarative HTML templates.
  • Fine-Grained, Path-Based Reactivity: Tracks state at the property and dependency level, enabling targeted updates without relying on deep runtime proxying.
  • No Inline JavaScript: Directives do not execute arbitrary JavaScript expressions. Instead, they use a minimal DSL built around paths, resolver calls, and literals, making templates easier to reason about while keeping compilation fast and predictable.
  • Built-in Runtime Systems: Udodi provides the essential systems needed to build reactive applications, including Udodi Store for state management, Query Pool for asynchronous data and mutations, form state and validation, and a runtime Overlay system for modals and dialogs.

Installation

CDN

<script src="https://cdn.jsdelivr.net/npm/udodi@latest/dist/index.global.js"></script>
const { render, createComponent } = Udodi;

Package Manager

npm install udodi
import { render, createComponent } from 'udodi';

Usage Example

import { createComponent, css, html, render } from "udodi";

const Counter = createComponent({
  name: "Counter",

  state() {
    return {
      count: 0
    };
  },

  methods: {
    increment(event) {
      this.count++;
    }
  },

  style: css`
    :scope {
      background: darkgreen;
      padding: 15px;
      border: 3px solid black;
    }

    .text {
      color: white;
      font-weight: bold;
    }
  `,

  template: (ctx) => html`
    <div>
      <div class="text" @text="count"></div>
      <button @on="click=increment">Increment</button>
    </div>
  `
});

// Mount component to DOM
render(Counter(), document.getElementById("app"));

Documentation

For comprehensive guidance on building with Udodi, explore the master guides in this repository for an in-depth look at the framework, from everyday development to advanced runtime usage.

Explore the Comprehensive Documentation Suite

Development

Udodi is implemented in modern ES2020+ JavaScript and bundled with tsup to produce tree-shakeable ESM modules and a browser IIFE build. While applications can consume Udodi without a build step (for example via a CDN), contributors should build the distribution before testing or making changes.

# Install dependencies
npm install

# Build the distribution
npm run build

# Start the playground
cd playground
npm install
npm run dev

Project Workspace Tree

udodi/
├── dist/              # Distribution output (ESM + IIFE)
├── docs/              # Documentation
├── packages/          # Runtime source modules
├── playground/        # Local development playground
├── tests/             # Vitest test suites
└── tsup.config.js     # Build configuration

Testing

Udodi uses Vitest to drive low-level framework runtime verification alongside real browser integration checks. Detailed specifications regarding testing setups can be viewed in our Runtime Testing Guide.

| Target Suite | Purpose | | :--- | :--- | | Unit Tests | Validates isolated compiler mechanics and reactive trackers | | DOM Tests | Asserts token directives modify node values correctly | | Integration Tests | Monitors deep component communication and unmount scopes |

Execution Commands

npm test                                  # Executes full test suite once
npm run test:watch                        # Enables interactive hot-revising watch engine
npm run test:ui                           # Launches the rich interactive browser testing panel
npx vitest tests/unit/tokenizer.test.js   # Target a precise engine file suite

Roadmap

Udodi's direction and priorities are tracked in the project roadmap. See ROADMAP.md for shipped work, near-term plans, and non-goals.

Contributing

Contributions, core reviews, and optimization feedback are highly welcome. Please ensure you read the full Contribution Guidelines before pushing a pull request tracking branch.

License

Udodi is open-source software licensed under the terms of the MIT License.