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-matrix-persister

v1.0.4

Published

Mongo persistence factory for Exellix execution-matrix rows, failures, snapshots, and matrix/graph config (hides mongodb/xronox from hosts).

Downloads

94

Readme

@exellix/exellix-matrix-persister

Mongo-backed factory for Exellix execution-matrix persistence: operational collections (rows, failures, snapshots) plus matrix and graph config collections. Host apps import createExellixMatrixDataTier instead of wiring mongodb or @x12i/xronox-store themselves.

Domain behavior (claims, materialization, filters) stays in @exellix/exellix-runtime. This package is the supported wiring surface for workers and read tiers.

Install

npm install @exellix/exellix-matrix-persister @exellix/exellix-runtime

@exellix/exellix-runtime is a peer dependency (install it next to this package).

Private registry (GitHub Packages)

If @exellix/* is published to GitHub npm, set a token and .npmrc (do not commit tokens):

@exellix:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

Export NODE_AUTH_TOKEN (PAT with read:packages) before npm install.

Usage

import { createExellixMatrixDataTier } from '@exellix/exellix-matrix-persister';

const tier = await createExellixMatrixDataTier({
  mongoUri: process.env.MONGO_URI,
  executionDb: 'exellix-runtime',
  configDb: 'exellix',
});

await tier.init?.();

// Pass into createMatrixWorker / openMatrixReadTier / createExecutionMatrixRuntime
const { rows, failures, snapshots, matrices, graphs } = tier;

await tier.close();

Returned shape

| Field | Role | |-------------|------| | rows | Execution matrix rows | | failures | Failure records | | snapshots | Snapshot side-channel | | matrices | Matrix configs (exellix_matrix_configs) | | graphs | Graph configs (exellix_graph_configs) | | init? | Optional warm-up (no-op after factory; safe to call) | | close | Closes stores and any Mongo driver pass-through | | probe? | { executionStore, configStore, executionMongoUri, configMongoUri } for dependency health checks |

Collection names and indexes follow @exellix/exellix-runtime (src/execution-matrix/collections.ts).

Environment

| Variable | Default | Used by | |----------------|-------------------|---------| | MONGO_URI | (required) | Connection string | | execution_db | exellix-runtime | Rows, failures, snapshots | | config_db | exellix | Matrix + graph configs |

Options passed to createExellixMatrixDataTier({ ... }) override env for that call.

Consumers

@exellix/exellix-jobs and @exellix/exellix-matrix-read try this package first for createExellixMatrixDataTier, then @x12i/xmemory-store if the factory is re-exported there later. Installing @exellix/exellix-matrix-persister is enough for openExellixMatrixPersistenceFromXmemoryStore / openMatrixPersistenceFromXmemoryStore to succeed without host glue.

API surface

  • createExellixMatrixDataTier(options?) — main factory
  • resolveExellixMatrixDataTierOptions(overrides?, env?) — merge options + process.env (throws if mongoUri missing)
  • loadMatrixDataTierFactory() — resolves the factory from this package or @x12i/xmemory-store (for advanced dynamic wiring)

Types are exported from the package entry (CreateExellixMatrixDataTierOptions, ExellixMatrixDataTier, etc.).

Development

npm install
npm run build
npm test

Live tests (real Mongo)

  1. Copy .env.example.env and set MONGO_URI (and optional execution_db / config_db).
  2. Run:
npm run test:live

The default npm test suite skips live tests when MONGO_URI is unset. Vitest is configured with MODE=debug so importing @exellix/exellix-runtime in tests does not fail on @x12i/funcx mode checks.

More detail: docs/integration.md. For a minimal env template, see .env.example.

Specification

Normative persistence contract: createExellixMatrixDataTier in @exellix/exellix-runtime — see client-integration.md.

License

UNLICENSED (internal Exellix package unless published otherwise).