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

@onuracar-dev/nimblejs

v0.2.0

Published

Small signals-based state management for framework-agnostic TypeScript apps.

Readme

NimbleJS

Small, framework-agnostic signals and state management for TypeScript apps.

Live website · GitHub repository

NimbleJS provides signals, computed values, effects, batched updates, stores, and optional history/persistence plugins. It has no renderer and no DOM dependency in its core, so it can support vanilla JavaScript, Web Components, workers, and framework adapters.

Status: pre-1.0 and suitable for experiments. API compatibility and performance guarantees are not yet stable.

Install

npm install @onuracar-dev/nimblejs

Signals, computed values, and cleanup

import { computed, effect, signal } from '@onuracar-dev/nimblejs';

const count = signal(0);
const doubled = computed(() => count.value * 2);

const stop = effect(() => {
  console.log(`count=${count.value}, doubled=${doubled.value}`);
  return () => console.log('cleanup before the next run');
});

count.value = 2;
stop();
doubled.dispose();

Effects subscribe only to values read in their latest run. Stopping an effect removes its dependencies and executes its final cleanup once.

Batching and scheduling

batch delays notifications until its outermost callback completes and runs each affected effect once.

import { batch, effect, signal } from '@onuracar-dev/nimblejs';

const first = signal('Ada');
const last = signal('Lovelace');
effect(() => console.log(`${first.value} ${last.value}`));

batch(() => {
  first.value = 'Grace';
  last.value = 'Hopper';
});

Effects also accept a scheduler for integration with microtask, animation-frame, or host-framework queues:

effect(render, { scheduler: (run) => queueMicrotask(run) });

The scheduler owns de-duplication outside a NimbleJS batch.

Stores, persistence, and history

import { createStore, persist, withHistory } from '@onuracar-dev/nimblejs';

const settings = createStore('settings', { theme: 'dark', sidebarOpen: true });
persist(settings, { storage: globalThis.localStorage });
const history = withHistory(settings, { maxHistory: 25 });

settings.setRawState({ theme: 'light', sidebarOpen: false });
history.undo();
history.dispose();

Persistence uses JSON and application-provided Storage. It does not encrypt, validate, migrate, or synchronize state. History also uses JSON snapshots, so circular and non-serializable values are outside its supported scope.

API

| Export | Purpose | | --- | --- | | signal | Mutable reactive value with Object.is equality | | computed | Derived value with explicit dispose() | | effect | Dependency-tracked side effect with cleanup and optional scheduler | | batch | Coalesce notifications across nested synchronous writes | | createStore | Named collection of signals and batched raw-state updates | | persist | Hydrate/save a store through a Storage adapter | | withHistory | Bounded JSON-snapshot undo/redo controller |

Development

npm ci
npm test
npm run build
npm run pack:check

The architectural boundary with FluxDOM is recorded in docs/adr/0001-fluxdom-and-nimblejs-boundary.md: the projects share tested semantics but do not depend on one another.

License

MIT. Copyright 2026 Onur Acar.