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 🙏

© 2025 – Pkg Stats / Ryan Hefner

domeleon

v0.5.2

Published

Build web UIs with classes encapsulating your domain model and a pluggable Preact/React/Vue VDOM.

Readme

Domeleon

Build web UIs with classes encapsulating your domain model and a pluggable Preact/React/Vue VDOM.

Domeleon is optimized for LLM usage; described further below.

Features

  • Pluggable VDOM rendering engines:
    • Preact (default)
    • React
    • Vue
  • Modular add-ons:
    • unocss for succinct css w/ a type safe theme manager
    • zod for validation
    • maskito for masked inputs
    • inspector to monitor your component's state & updates
  • Core:
    • Serializer - serialize component state to the server or local storage
    • Router - composable router integrated with component model
    • Forms - ARIA, validation, structure uniform & friendly across varied CSS

Architecture

The heart of your Domeleon app is your object model: classes encapsulating the state of your domain model instead of wrapping DOM elements. So long as your classes imply a tree from their public writable properties, Domeleon can reason about that tree. Most notably, transforming that tree into a view or serializing it to the server or local storage.

Simplicity guides the architecture:

  • Views use functional style:
    • because views are simpler when stateless
  • Components use OO style:
    • because encapsulation simplifies reasoning about state
  • HTML/CSS use TypeScript (also works with Javascript):
    • because it's simpler to code in one high level language

First Code Sample

Here's a Counter component in Domeleon within an HTML page. No build step required—just drop this into an HTML page.

<!-- index.html -->
<div id="app"></div>
<script type="module">
  import { App, Component, div, button } from 'https://esm.sh/domeleon@latest'

  class Counter extends Component {
    count = 0

    view() {
      return div(
        button({ onClick: () => this.add()}, '+'),
        this.count
      )
    }

    add() {
      this.count++
      this.update()
    }
  }

new App({ root: new Counter(), id: 'app' })
</script>

Application state lives in your components — in this case count.

Components optionally implement a view method, but since they represent your domain model, rather than a wrapper around a DOM element, you can have multiple views, e.g. summaryView or detailView. A view is a pure non-side-effecting function of the Component's state returning an immutable VElement.

Components update their state via their update method, which triggers a re-render of the root component's view. Features like databinding, routing, and serialization, all automatically call update for you, which you can monitor with domeleon's inspector module.

Installation

npm:

npm install domeleon

ES module CDN:

// esm.sh
import { App, Component, div, button } from 'https://esm.sh/domeleon@latest'

LLM Usage

Domeleon is a concise, modular framework, making it ideal for an LLM to digest and reason about. Even the entire code base with documentation easily fits inside its context window.

Instructions for an LLM to create a Domeleon app are in the domeleon documentation.