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

@aegisjsproject/iota

v1.0.8

Published

A Signals-based reactivity library

Downloads

985

Readme

@aegisjsproject/iota

A zero-build, fine-grained reactivity library leveraging the TC39 Signals proposal.

Iota delivers the microscopic DOM mutation performance of compiled frameworks (like Solid or Svelte) entirely at runtime. It bypasses the Virtual DOM by surgically targeting individual Text and Attr nodes, utilizing Explicit Resource Management (DisposableStack) for deterministic memory cleanup.

CodeQL Node CI Lint Code Base

GitHub license GitHub last commit GitHub release GitHub Sponsors

npm node-current npm bundle size gzipped npm

GitHub followers GitHub forks GitHub stars Twitter Follow

Donate using Liberapay


Features

  • Zero-Build: Runs natively in the browser. No compilers, no bundlers required.
  • Micro-Updates: Mutates specific Text and Attr nodes. Re-renders are physically impossible.
  • Deterministic Cleanup: Built-in memory management via Symbol.dispose and DisposableStack prevents zombie listeners.
  • Security by Default: Bypasses innerHTML during reactive updates. By assigning directly to Node.textContent and Attr.value, markup injection is neutralized by the platform.
  • Web Component Native: Designed to cleanly hydrate Shadow DOMs and standard elements alike.

Installation

NPM

npm install @aegisjsproject/iota

<script type="importmap">

<script type="importmap">
  "imports": {
    "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/[email protected]/signals.js,
    "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/[email protected]/iota.js"
  }
</script>

Usage

Iota uses string placeholders (HTML comments and data-attributes) to position signals in your markup, which are then hydrated via $observe().

import { $text, $attr, $observe } from '@aegisjsproject/iota';
import { html } from '@aegisjsproject/core/parsers/html.js';
import { onInput, observeEvents } from '@aegisjsproject/callback-registry';
import { sanitizer as sanitizerConfig } from '@aegisjsproject/sanitizer/config/base.js';

// Manage lifecycle natively
const stack = new DisposableStack();

// Initialize signals and bind them to the stack
const $name = stack.use($text('World'));
const $value = stack.use($attr('value', () => $name.get()));

document.body.append(html`
    <h1>Hello, ${$name}!</h1>
    <form id="container">
        <input 
            type="text" 
            ${$value} 
            ${onInput}="${$name.handleEvent}" 
        />
        <button type="button" command="--dispose" commandfor="root">Dispose</button>
    </form>
`);

// Hydrate the DOM (replaces placeholders with live Text/Attr nodes)
$observe();
observeEvents();

// Tie disposal to a DOM event (e.g., Invoker Commands or unmount lifecycle)
document.addEventListener('command', ({ command }) => {
    if (command === '--dispose') stack.dispose();
});

API Reference

Primitives

  • $text(value | computeFn): Creates a TextState or TextComputed signal. Returns an HTML comment placeholder <!--ref--> when cast to a string.
  • $attr(name, value | computeFn): Creates an AttrState or AttrComputed signal. Returns a data-attribute placeholder data-attr-signal="ref" when cast to a string.
  • $signal(value): Creates a base DisposableState. Includes a .handleEvent(e) method that automatically updates the signal value from form inputs.
  • $computed(fn): Creates a base DisposableComputed signal.

Observers & Hydration

  • $observe(target = document.body, { stack, signal, base } = {}): Walks the target DOM node, locates signal placeholders, and replaces them with live, reactive Text and Attr nodes.
  • observeTextSignalRefs(...): Hydrates only text nodes.
  • observeAttrSignalRefs(...): Hydrates only attribute nodes.

Watchers

  • $watch(signal, callback): Manually subscribe to a signal.
  • $unwatch(signal): Stop tracking a specific signal.
  • unwatchSignalCallback(signal, callback): Remove a specific callback from a signal.

Registry & Internal

  • RegistryKey: An extended String representing the signal's internal ID. Implements [Symbol.dispose] to automatically unwatch and unregister the associated signal when the stack clears.
  • registerSignal(ref, signal) / unregisterSignal(ref): Manages the global Map of active signals used during hydration.