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

@wizeworks/silicaui-html

v0.19.0

Published

silicaui's framework-neutral node-tree source + HTML projection — the canonical Block/Document shape, the authoring kit, and toHtml.

Readme

@wizeworks/silicaui-html

@wizeworks/silicaui's framework-neutral node-tree source — the canonical Block/Document shape, an authoring kit for building it, and a toHtml projection. This is the format the Silica builder and any structured host (a CMS, a static-site generator, an email renderer) read and write; React is a separate projection of the same tree, never the source of truth.

Website npm version npm downloads bundle size license CI

Install

pnpm add @wizeworks/silicaui-html

Why a node tree, not JSX

  • One shape, everywhere. A template, a live document, a stored record, and the input to every projection are the same tree. The only transform in the whole system is template → document (mint ids) — it runs at stamp, duplicate, and paste, nowhere else.
  • class is the sole styling surface. No inline style, no style object. This is what makes the tree portable, themeable, and governable — a host gates class strings at one choke point.
  • JSON-serializable. No functions, no JSX — the largest consumers render markup, not React, so the source has to be a static, walkable tree.

Usage

import { el, atom, block, stamp, toHtml } from "@wizeworks/silicaui-html";

const hero = block({
  root: el("section", "hero", {
    children: [
      atom("Heading", "text-4xl", { level: 1 }, ["Ship faster"]),
      el("p", "text-lg text-base-content/70", { text: "A design system that scales." }),
      atom("Button", undefined, { color: "primary" }, ["Get started"]),
    ],
  }),
});

const document = stamp(hero); // template → document: mints stable ids
const html = toHtml(document.root); // -> "<section class=\"hero\">…</section>"

Composed patterns (hero sections, FAQ accordions, feature grids) ship pre-built under the blocks subpath:

import { heroSplitCta, faqAccordion, featureGrid } from "@wizeworks/silicaui-html/blocks";

What's in the package

| Export | Purpose | | --- | --- | | schema (types) | The canonical Node/Block/Document/Template shape | | el, atom, outlet, slot, behave, part, bind, repeat, action, block | The authoring kit — build a well-formed tree by construction | | toHtml | Project a tree to an HTML string | | toJson | Project a tree to its JSON-serializable form | | stamp, stampTree, stripIds | The template → document transform (mint/strip stable ids) | | lintBlock, assertBlockClean | The block linter — catch malformed trees before they ship | | walk | Tree traversal, shared with the Silica builder | | SURFACE_TOKENS, SEMANTIC_ROLES, SCALAR_TOKENS, THEME_PRESETS, rolesOf, colorValue, presetByName | The theme model — the source of truth for a theme's color roles, scalar tokens, and preset library |

See the architecture doc for the full spec — node schema, projections, theme model, and the builder engine seam.

Links