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

@x12i/memorix-metadata

v3.2.1

Published

Canonical Memorix metadata contracts, effective multi-agent resolution, and metadata-only abstract unions (Phase 3).

Readme

@x12i/memorix-metadata

Declarative metadata contracts, multi-agent effective resolution, and metadata-only abstract unions for Memorix.

This package is the law layer (what agents, types, views, mappings, and pipelines are). It does not install packs into Mongo, read subject records, or serve HTTP.

Install

npm install @x12i/[email protected]

| Audience | Use this package? | |----------|-------------------| | Remote app | Usually no — call memorix-service /api/metadata | | Pack authors / platform engineers | Yes — validate packs, resolve effective metadata in-process | | “Install a pack into an org” | Use @x12i/memorix-metadata-runtime (or HTTP install routes) |

What it covers

Built-in kinds (via METADATA_KIND_IDS / Catalox catalogs):

agents · object-types · abstract-types · abstract-bindings · relationship-definitions · mappings · views · writes · sources · services · pipelines · schedules · kind-declarations

Plus namespaced custom kinds (kindDeclarations + extensions) — store/resolve only; engines do not execute them.

Core API

import {
  validateMetadataPack,
  assertValidMetadataPack,
  resolveEffectiveMetadata,
  resolveMultiAgentMetadata,
  resolveAbstractBindingsFromPack,
  buildEffectiveMetadataTopology,
  normalizeOpxPackBundle,
  METADATA_KIND_IDS,
  isValidCustomKindId,
} from "@x12i/memorix-metadata";

| Function | Role | |----------|------| | validateMetadataPack / assertValidMetadataPack | Structural + cross-ref validation of a pack | | resolveEffectiveMetadata / resolveMultiAgentMetadata | Merge agentIds[] inheritance into effective definitions | | resolveAbstractBindings* | Plan abstract → concrete property paths (virtual only) | | buildEffectiveMetadataTopology | Project concrete OT↔OT / feed / pipeline-derived graph (no new authoring kinds) | | normalizeOpxPackBundle | Normalize opx-pack style JSON into a pack | | fingerprintDefinition | Stable fingerprints for install/diff |

Quick example

import { validateMetadataPack, resolveEffectiveMetadata } from "@x12i/memorix-metadata";

const pack = /* MetadataPack */;
const { ok, issues } = validateMetadataPack(pack);
if (!ok) throw new Error(issues.map((i) => i.message).join("; "));

const effective = resolveEffectiveMetadata({
  packsByAgentId: { opx: pack },
  agentIds: ["opx"],
});
// effective.effective → definitions with provenance; conflicts reported, not silent

Custom-kind example pack: examples/custom-kinds/acme-ui-tabs.pack.json

Boundaries

| Need | Use instead | |------|-------------| | Install / publish into Catalox + effective client | @x12i/memorix-metadata-runtime | | HTTP for operators / remote apps | @x12i/memorix-service /api/metadata | | Subject record I/O | @x12i/memorix-data / /api/data |

Abstracts stay virtual — no abstract collections and no abstract recordId.

Relationships are authored on abstracts; concrete OT↔OT edges come from buildEffectiveMetadataTopology (HTTP: GET /api/metadata/topology). Sources/streams feed object types; services appear on an OT neighborhood only when a pipeline invokes them and a mapping on that pipeline lands on an OT.

Docs