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

vanilla-way

v0.1.2

Published

A tiny signals-based reactive UI library with custom JSX.

Readme

vanilla-way

A tiny (~2.6 KB gzipped) React alternative: signals + custom JSX, real DOM, no virtual DOM.

Zero runtime dependencies. ESM-only. MIT licensed.

What it is

vanilla-way is positioned against React: instead of a virtual DOM and reconciliation, it uses signals and fine-grained reactivity. A signal change touches exactly the attribute or text node it is bound to — no re-render, no diff.

It is the framework that fits in your head: a small, readable core you can learn in one sitting. One mental model — signals push, derives recompute, owners clean up.

Install

npm i vanilla-way

Everything is imported from the package barrel:

import { h, createStore, createView } from "vanilla-way";

What's included

  • Signals + computed — reactive state via createStore, derived values via computed / .derive
  • Custom JSX — the h factory and Fragment, producing real HTMLElements (HTML + SVG)
  • Owner treeOwner, track, runWithOwner, createView drive all cleanup
  • For — reactive lists, keyed (move/reuse) or unkeyed (full rebuild)
  • Show — conditional rendering with optional fallback
  • createResource — async primitive with status / data / error signals and refetch
  • Portal — render children into a different DOM subtree (modals, tooltips)
  • ErrorBoundary — catch render-time errors in a subtree and show a fallback (see scope below)

Mental model

  • JSX returns real HTMLElements — no virtual nodes, no reconciliation
  • Reactivity is fine-grained — a signal change touches exactly the binding it affects
  • Owners form a tree that drives all cleanup (computeds, subscriptions, child views); disposal flows down it, errors bubble up it

Quickstart

import { h, createStore, createView } from "vanilla-way";

const store = createStore({ count: 0 });

const view = createView(() => {
  const doubled = store.count.derive((n) => n * 2);

  return (
    <div class="counter">
      <p>count: {store.count}</p>
      <p>doubled: {doubled}</p>
      <button onClick={() => store.count.set(store.count.get() + 1)}>
        increment
      </button>
      <button onClick={() => store.count.set(0)}>reset</button>
    </div>
  );
});

document.body.appendChild(view.el);
// later, to tear down all subscriptions:
// view.dispose();

JSX setup

vanilla-way uses the classic JSX transform (no Babel plugin, no Vite transform). Consumers using JSX must configure their tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react",
    "jsxFactory": "h",
    "jsxFragmentFactory": "Fragment"
  }
}

ErrorBoundary scope

ErrorBoundary is Tier A: it catches synchronous render/setup-time throws in the owned subtree (a function component, reactive prop/child, For/Show builder, first computed run, or a synchronously-throwing createResource setup) and renders a fallback(err, reset) in their place. reset() retries.

It does not catch:

  • DOM event-handler throws (e.g. an onclick that throws) — they fire outside the render call stack
  • Reactive update-time throws — a computed/subscriber that throws on a later signal change surfaces at the .set() call site
  • createResource async rejections — already exposed via resource.error / resource.status === "error"

Guard event handlers and async work yourself. See docs/error-handling.md for the full model.

Non-goals

These are deliberately not on the roadmap:

  • No virtual DOM
  • No JSX compiler / Babel plugin (classic h() only)
  • No SSR / hydration
  • No built-in router
  • No devtools
  • No automatic batching or scheduling

If any of these matter for your project, use React.

Status

  • Version 0.1.0 — experimental 0.x; the API may still evolve
  • Zero runtime dependencies, ESM-only, MIT licensed
  • Tests live in tests/ — run npm test from this directory