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

@exellix/exellix-jobs

v1.7.0

Published

Execution-matrix worker: claims, run-loop, operator HTTP, and Prometheus metrics (XMemory-backed persistence).

Readme

@exellix/exellix-jobs

Execution-matrix worker package: supervised runMatrixContinuously loops, operator HTTP (/health, /metrics, graph PATCH), and Prometheus metrics — wired to @exellix/exellix-runtime ≥ 3.1 and matrix persistence via createExellixMatrixDataTier (legacy xronox-factory fallback optional).

Normative behavior is specified in docs/specs.md. docs/execution-matrix-worker-service.md is a short historical pointer. HTTP routes are cataloged in docs/openapi.yaml. Local issues (404 PATCH paths, tombstoned graphs, idle worker, …): docs/troubleshooting.md.

Graph execution input (record placement)

Peer contract for where the work-unit record goes on executeGraph and matrix runs: ../exellix-runtime/docs/graph-execution-record-placement.md.

This worker does not call executeGraph itself. It passes your host executeGraph into @exellix/exellix-runtime, which builds { model, runtime } and sets runtime.input = record.input at claim time.

| Phase | Where the record lives | |-------|-------------------------| | Materialize | ExecutionMatrixRuntimeRecord.input — flat field names (subnetId, question, …), not input.raw | | Execute | runtime.input on the graph-engine request (same blob as row input) |

Host responsibilities: supply sourceResolver / inputRows so materialized row input uses flat keys matching metadata.graphEntry.inputs (requires @exellix/graph-engine ≥ 5.16). Wrap production executors with createMatrixExecuteGraphAdapter from runtime when adding modelConfig defaults (see examples/host-bootstrap.mjs).

Constraints

  • No direct mongodb or @x12i/xronox-store dependency in this package’s package.json or source imports.
  • Matrix collections are xronox-shaped handles from createExellixMatrixDataTier on @exellix/exellix-runtime, or via openExellixMatrixPersistence() / openExellixMatrixPersistenceFromRuntimeFactories() as a bridge.

Programmatic API

import { createExellixMatrixDataTier } from '@exellix/exellix-runtime';
import {
  createMatrixWorker,
  startMatrixWorkerHttp,
  loadJobsEnv,
} from '@exellix/exellix-jobs';

const env = loadJobsEnv();
const tier = await createExellixMatrixDataTier({
  mongoUri: process.env.MONGO_URI,
  executionDb: env.executionDb,
  configDb: env.configDb,
});
const persistence = {
  rows: tier.rows,
  failures: tier.failures,
  snapshots: tier.snapshots,
  matrices: tier.matrices,
  graphs: tier.graphs,
  close: () => tier.close(),
  ...(tier.probe ? { probe: tier.probe } : {}),
};

const worker = await createMatrixWorker({
  persistence,
  matrixWorkerId: env.matrixWorkerId,
  executeGraph: graphRuntime.executeGraph.bind(graphRuntime),
  resolveGraphModel: async ({ graphId }) => { /* … */ },
  sourceResolver,
  graphSchedulabilityRequireConfig: env.graphSchedulabilityStrict,
  maxConcurrentClaims: env.maxConcurrentClaims,
});

const ac = new AbortController();
void worker.startSupervised(ac.signal);
await startMatrixWorkerHttp({ worker, env: loadJobsEnv() });

CLI

exellix-jobs serve loads an application bootstrap module so graph-engine wiring stays in the host:

  • Set EXELLIX_JOBS_HOST_BOOTSTRAP to an absolute path of an ESM file whose default export is an async function returning { workerOptions } (see CreateMatrixWorkerOptions).
  • See examples/host-bootstrap.mjs for createExellixMatrixDataTier + env wiring; set EXELLIX_JOBS_GRAPH_ENGINE_BOOTSTRAP for executeGraph / resolveGraphModel.
npm run jobs:serve

Operator routes use suffix paths — e.g. PATCH /v1/graphs/{graphId}/operational, not PATCH /v1/graphs/{graphId}. See docs/troubleshooting.md.

Optional: install @x12i/env next to this package for .env loading via dynamic import in the CLI.

Environment

See docs/specs.md §12. Implemented keys include:

| Variable | Purpose | |----------|---------| | PORT | HTTP listen port | | JOBS_HTTP_PREFIX | Route prefix (default /v1) | | MATRIX_WORKER_ID | Identity in /health and /workers/status | | execution_db / config_db | Persistence DB names | | EXELLIX_JOBS_MAX_CONCURRENT_CLAIMS | Global parallelism | | EXELLIX_JOBS_GRAPH_SCHEDULABILITY_STRICT | Schedulability flag | | EXELLIX_JOBS_HTTP_ENABLED | Start HTTP server | | EXELLIX_JOBS_API_KEY | Mutating HTTP routes | | EXELLIX_JOBS_ACTIVIX_SCHEDULER_PROBE | Activix lane on dependency probe |

HA note

Multiple replicas claiming the same matrix without coordination can double-execute; see docs/specs.md §15.

Read tier (entity + graph history)

Job counts, slot status, and execution output for dashboards live in @exellix/exellix-matrix-read (sibling package) — not in this worker. Use it from BFF/Studio; keep this package for claim/execute only.