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

@signal-kernel/core

v0.1.1

Published

A minimal, deterministic, fine-grained reactivity engine.

Downloads

181

Readme

@signal-kernel/core

A minimal, deterministic, fine-grained reactivity engine.

Build reactive systems without frameworks — from UI adapters to async dataflow runtimes.

Think of this as a reactive runtime kernel, not a framework.


Installation

npm install @signal-kernel/core

Quick Start

import { signal, computed, createEffect } from "@signal-kernel/core";

const count = signal(0);

const doubled = computed(() => count.get() * 2);

createEffect(() => {
  console.log("doubled =", doubled.get());
});

count.set(1);
count.set(2);

Output:

doubled = 2
doubled = 4

What is this?

@signal-kernel/core is a framework-agnostic reactive runtime.

It provides the minimal primitives needed to build reactive systems:

  • signal() — mutable state
  • computed() — lazy derived values
  • createEffect() — reactive side effects
  • batch() — update coalescing
  • deterministic scheduler

Unlike frameworks (React, Vue), this library:

  • does not render UI
  • does not manage DOM
  • focuses purely on reactive dataflow and execution order

When to use this

Use @signal-kernel/core if you need:

  • Fine-grained reactivity (no VDOM diffing)

  • Deterministic update ordering

  • A foundation for building:

    • UI adapters (React/Vue/Solid)
    • async data pipelines
    • reactive state machines
    • server-side reactive graphs

This is not a UI framework — it is a low-level reactive kernel.


Core Concepts

signal()

const count = signal(0);

count.get();
count.peek();
count.set(1);

computed()

const doubled = computed(() => count.get() * 2);

createEffect()

createEffect(() => {
  console.log(count.get());
});

batch()

batch(() => {
  count.set(1);
  count.set(2);
});

Scheduler Model

Two-phase scheduler

This runtime uses a two-phase deterministic scheduler:

  1. Recompute all stale computed nodes
  2. Execute all effects

→ Guarantees stable and predictable execution order.


Architecture Overview

Reactive Graph

For full details, see:

👉 Architecture Documentation


Public API

export { signal } from "./signal.js";
export { computed } from "./computed.js";
export { createEffect, onCleanup } from "./effect.js";
export { batch } from "./scheduler.js";

Design Goals

  • Deterministic scheduling
  • Lazy computation
  • Explicit dependency graph
  • Zero framework assumptions
  • Adapter-friendly architecture

Ecosystem

@signal-kernel/core is the foundation of the Signal Kernel ecosystem.

Future packages:

  • async runtime
  • framework adapters

License

MIT © Luciano