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

@huberst/markless

v0.1.2

Published

Reactive UI components in plain TypeScript.

Readme

⚠️ One main goal of markless is to make HTML elements visually distinct in TypeScript code. This is achieved with semantic TypeScript highlighting in your IDE. Unfortunately, this cannot be rendered in standard Markdown code blocks. Therefore the examples in this README are generated as SVGs. interactive, text based examples can be found here.

Plain TypeScript - Reactive - UI Components

markless is a library which allows you to build UI for the browser, with a dev experience somewhat similar to React, but without having to leave or enhance TypeScript-Land.

How to install

Add markless to a Deno project from JSR:

deno add jsr:@huberst/markless

Or install it from npm:

npm install @huberst/markless

The Mission: HTML-level scannability, pure TS

The biggest hurdle was to achieve a visual distinction of HTML elements from the rest of the syntax. Because that is what XML and thus HTML and JSX are so strong at: You can quickly grasp the structure of the document.

First I tried to make the HTML elements visually striking, by using underscores or special characters, like in these examples:

  • _div_
  • __div__
  • $_div
  • $_DIV

But none of these really helped scanning a component as quickly with your eyes, as you can with HTML / JSX.

Then I found a little trick to make it work: Using static members on classes, with one class for each HTML element!

Most themes for syntax highlighting will highlight classes noticeably different, so they are easy to spot for your eyes. In VS Code Dark Modern, for example, they are colored in a green or almost turquoise color, which is also used for type information.

UsingElements TypeScript example

UsingElementsNesting TypeScript example

What are the benefits of this approach?

  • No need for a template language syntax like JSX, lit-html, or similar and their overhead.
  • Therefore no editor / IDE extension for that syntax.
  • No extra type-checking logic for that syntax.
  • No build step required to transform that syntax into JS/TS.
  • No virtual DOM.
  • No magic.

Element API

  • Content: ._(...) adds text, elements, and components as children.
  • Properties: .prop('value', value) and .propSet({ checked: true }) assign DOM properties, including reactive values. Names and values are checked against the element's DOM type.
  • Attributes: .attr('aria-label', 'Close') and .attrSet({ viewBox: '0 0 100 100' }) set HTML or SVG attributes, including reactive values. Attribute names are strings because TypeScript's DOM types do not list attributes by tag. On an element description, .dataAttr('state', 'open') is shorthand for data-state.
  • Appearance: .class('active', activeClass) adds static or reactive classes. .style({ color: 'red' }) sets inline styles; a reactive style object also removes declarations that disappear on subsequent updates.
  • Interaction and lifecycle: .event('click', handler) registers a handler; .setRef(callback) provides a typed DOM element reference. .afterMount(callback) and .onRemove(callback) run on mounting and removal.

But what about reactivity?

markless components never 're-render' in the sense of React or Vue. All updates are driven by reactive adapters, which can be built on top of any reactive source you like. Reactive adapters for preact signals and RxJS are already included. They are easy to integrate.

ReactiveColorSelection TypeScript example

Of course there is a todo app example 🙄

MinimalTodo TypeScript example

Mixing multiple reactive sources

SearchWithSuggestions TypeScript example

License

MIT © 2026 Stefan Huber