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

@kontsedal/olas-core

v0.0.6

Published

Olas core — controller-tree state management with signals, queries, mutations, and forms. Framework-agnostic.

Readme

@kontsedal/olas-core

The core of Olas — UI-framework-agnostic. Signals, controllers, queries, mutations, forms, scopes, SSR, and the devtools event bus. No React / Vue / Svelte imports anywhere.

This package is the only place that touches @preact/signals-core (peer dep). Everything else is plain TypeScript.

Install

pnpm add @kontsedal/olas-core @preact/signals-core

What's in the box

| Concern | API | |---|---| | Reactive primitives | signal, computed, effect, batch, untracked | | Time-based signals | debounced, throttled | | Controllers | defineController, createRoot, Ctx | | Async data — shared | defineQuery, defineInfiniteQuery, ctx.use | | Async data — local | ctx.cache | | Mutations | ctx.mutation with parallel / latest-wins / serial modes | | Forms | ctx.field, ctx.form, ctx.fieldArray, stdlib validators | | Cross-tree data | defineScope, ctx.provide, ctx.inject | | Events | createEmitter, ctx.emitter, ctx.on | | Lifecycle | ctx.effect, ctx.child, ctx.attach, ctx.onDispose, ctx.onSuspend, ctx.onResume | | SSR | root.dehydrate(), createRoot(def, { hydrate }), root.waitForIdle() | | Devtools | root.__debug.subscribe(handler) (events documented in DebugEvent) | | Errors | RootOptions.onError, ErrorContext, isAbortError |

Full reference with signatures and examples: ../../API.md.

30-second example

import { createRoot, defineController, signal } from '@kontsedal/olas-core'

const counter = defineController(() => {
  const count = signal(0)
  return { count, increment: () => count.update((n) => n + 1) }
})

const root = createRoot(counter, { deps: {} })
root.increment()
console.log(root.count.value)    // 1
root.dispose()

Sub-paths

  • @kontsedal/olas-core — the main entry.
  • @kontsedal/olas-core/testingcreateTestController, fakeField, fakeAsyncState. Test-only helpers; the sub-path makes "you imported testing utilities into production code" loud and grep-able.
import { createTestController, fakeField, fakeAsyncState } from '@kontsedal/olas-core/testing'

Further reading