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

@loom-js/core

v0.22.2

Published

A reactive, component-driven, JavaScript framework.

Readme

A reactive components-first JavaScript framework.

Feature Highlights

  • Micro-updates on rerenders - updates are made at the attribute & node-levels.
  • Self-cleanup leveraging native JS garbage collection & WeakMap to release dead nodes from memory.
  • Reactivity to rerender any number of components used within a component template - see Activities.
  • Tagged Templates for performant processing of component templates - see Components.
  • Custom elements (defineElement) - consume loom components from any page as <some-element> - see Custom Elements.
  • Client-side Routing for dynamic rendering of components based on Location data - see Routing.
  • Lazy-loading of routes & content (lazyImport), tracked by the settlement signal - see Lazy Imports.
  • Server rendering (@loom-js/core/server) - render to an HTML string for SSR & SSG through the same code path the browser runs - see Server Rendering.
  • Client hydration (hydrate) - invisible takeover of pre-rendered pages: one atomic swap once the app has settled, no content flashes - see Client Hydration.
  • Dehydrated state (resource → dehydrate → primeResources) - hand the server's fetched data to the client, so a primed hydration never refetches - see Dehydrated State.
  • 0 Dependencies (you're welcome)
  • Typescript Types included.

Create an app

npm create @loom-js@latest my-app

A standalone app that builds with @loom-js/build, server-first and TypeScript by default. See Getting Started for the choices.

Install

npm i @loom-js/core
yarn add @loom-js/core
pnpm add @loom-js/core

Inclusion

import * as Loom from '@loom-js/core';

Server rendering lives in its own entry:

import { renderToString } from '@loom-js/core/server';

Quick Example

A component is a tagged template. Define one, then mount it with init.

import { component, init } from '@loom-js/core';

interface ButtonProps {
    label: string;
    type: string;
}

export const Button = component<ButtonProps>(
    (html, props) => html`
        <button type="${props.type}">${props.label}</button>
    `
);

init({
    app: Button({ label: 'Save', type: 'button' }),
    root: document.body
});

Documentation

For AI agents: the whole manual is one markdown file, llms-full.txt, with a topic index at llms.txt. This package ships the same manual for its own version as llms-full.txt.

The full documentation lives at loom-js-docs.vercel.app. The topics are ordered as a learning path:

Onboarding

Templating

Reactivity

  • Activities - state, effects, transforms, the settlement signal.
  • Routing - createRoutes, guards, hash navigation.
  • Lazy Imports - lazyImport & lazyContent.

Server-first

Reference

Recognition

Thanks go out to Andrea Giammarchi for providing the algorithm that made this solution possible. It is also at the core of hyper(HTML), a light & fast virtual DOM alternative that Andrea created and maintains.