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

intentx-core-z

v2.1.0

Published

High-performance intent-driven execution engine. Orchestrates business logic via deterministic routing, managed effects, and a reactive dependency graph.

Readme

🧬 intentx-core-z

NPM Downloads

LIVE EXAMPLE

Minimal intent-driven & reactive execution core for logic runtimes.


Overview

intentx-core-z is a low-level execution engine focused on how logic runs, not how UI renders or how state is stored.

It is designed to be used as a logic core that can run:

  • Outside React
  • On backend / workers / CLI
  • Without framework coupling
  • With full control over state and effects

This library is about execution, not data modeling.


Features

  • Intent-based execution model
  • Async effect orchestration
    • debounce
    • throttle
    • takeLatest / takeLeading
  • Explicit reactive computation
  • Deterministic scheduling & batching
  • Scope-based isolation
  • Framework-agnostic design

No reducers.
No proxies.
No hidden magic.


Use Cases

  • Backend command / intent handling
  • Domain & business rule engines
  • Workflow / automation runtimes
  • Logic cores for React / Vue / Workers
  • Fully testable logic (no UI dependency)

Mental Model

emit(intent)
   ↓
scoped handlers
   ↓
effect orchestration
   ↓
user-owned state mutation
   ↓
reactive invalidation
   ↓
scheduled recomputation

Installation

npm install intentx-core-z

Intent Execution

import { createIntentBus } from "intentx-core-z"

type State = { count: number }
let state: State = { count: 0 }

const bus = createIntentBus<State>((payload, scope) => ({
  state,
  payload,
  emit: (type, payload) => bus.emit(type, payload, scope),
  setState(fn) {
    fn(state)
  },
}))

bus.on("increment", ({ setState }) => {
  setState(s => {
    s.count++
  })
})

await bus.emit("increment")
console.log(state.count) // 1

Async Effects & Orchestration

import { intentEffect } from "intentx-core-z"

bus.effect(
  "search",
  intentEffect(async ({ payload }) => {
    console.log("Searching:", payload)
  })
    .debounce(300)
    .throttle(1000)
    .takeLatest()
)

Reactive Computation

import { createComputed, reactiveEffect } from "intentx-core-z"

let count = 1

const double = createComputed(() => count * 2)

reactiveEffect(() => {
  console.log("double =", double())
})

count = 2

Scheduling & Batching

import { batch, queueJob } from "intentx-core-z"

batch(() => {
  queueJob(() => console.log("low priority"), "low")
  queueJob(() => console.log("high priority"), "high")
})

Scopes

import { createScope } from "intentx-core-z"

const admin = createScope("admin")

bus.on("reset", ({ setState }) => {
  setState(s => {
    s.count = 0
  })
}, admin)

await bus.emit("reset", null, admin)

eventbus-z Integration

import EventBus from "eventbus-z"
import { createIntentBus } from "intentx-core-z"

const bus = createIntentBus(ctx => ({
  ...ctx,
  emit: (type, payload) => EventBus.$emit(type, payload),
}))

EventBus.$on("INCREMENT", payload => {
  bus.emit("increment", payload)
})

License

MIT