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

@zyrab/domo

v1.5.0

Published

Minimalist DOM builder and chaining-friendly micro-framework with router support.

Readme

@zyrab/domo

Small, Fast, and Chainable.

domo is a minimalist, industrial-strength DOM builder and UI micro-framework designed for developers who value performance, zero-boilerplate, and elegant APIs. It provides a fluent, chainable interface for building both dynamic browser applications and high-performance static sites.


Why Domo?

In a world of heavy frameworks, domo returns to the fundamentals while providing modern features for the SSG era.

  • Fluent API: Build complex structures with a natural, chainable syntax.
  • Dual-Entry Architecture: Optimized builds for both Client and Server. The client bundle contains 0% string-building logic, while the server bundle acts as a high-speed metadata collector.
  • Zero-Branching: No more if (isServer) in your components. Environment-aware modules handle the complexity for you.
  • SSG Native: Deeply integrated with @zyrab/domo-ssg. Automatically collects events, refs, and state during the render pass to enable seamless hydration-free interactivity.
  • Microscopic Footprint: Designed to be small enough to stay out of your way, yet powerful enough to build entire applications.

Installation

pnpm add @zyrab/domo

Usage

Basic Component

import Domo from '@zyrab/domo';

const card = Domo('div').cls('card')
  .child([
    Domo('h1').txt('Product Name').css({ color: 'blue' }),
    Domo('p').txt('This is a description.'),
    Domo('button').txt('Add to Cart').on('click', () => alert('Added!'))
  ])
  .build();

document.body.appendChild(card);

Advanced State & Interactivity

Domo handles state synchronization between Server and Client via the .state() method.

import Domo from '@zyrab/domo';

export default function Counter(initial = 0) {
  return Domo('div').cls('counter')
    .state({ count: initial })
    .child([
      Domo('span').txt(`Count: ${initial}`).id('display'),
      Domo('button').txt('+').on('click', (e) => {
        // Access state via Domo runtime...
      })
    ]);
}

Server-Side Rendering (SSG/SSR)

On the server, domo generates clean HTML while capturing metadata for the hydration bridge.

import Domo from '@zyrab/domo';

// Identical code works on the server!
const html = Domo('div').txt('Hello from Server').build();
console.log(html); // "<div>Hello from Server</div>"

Architecture

Domo uses a Layered Inheritance System instead of dynamic mixins, ensuring maximum compatibility with modern bundlers and IDEs.

  • Client Pass: Uses native document.createElement, classList, and addEventListener.
  • Server Pass: Uses a lightweight "Virtual Element" (vel) schema and collects metadata (events, refs, state) for the SSG to generate optimal client-side bridge logic.

License

MIT © Zyrab - see the LICENSE.md file for details.