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

mycelium-sdk

v0.1.0

Published

Connective Spine v0.1 — identity, freshness, provenance for AEC data interoperability

Downloads

148

Readme

mycelium-sdk

The Connective Spine v0.1 SDK — zero runtime deps, Node ≥ 18.

Implements the spine contract: identity, freshness, provenance, IFC GUID derivation, and the model-source tool list. Any connector that imports this package and passes checkConformance() is wire-compatible with any orchestrator that speaks the spine.

Install

npm install mycelium-sdk

Naming your connector

External connector packages follow the mycelium-for-<tool> convention:

| Tool | Package name | |---|---| | Revit | mycelium-for-revit | | ArchiCAD | mycelium-for-archicad | | Rhino | mycelium-for-rhino | | ERPNext | mycelium-for-erpnext | | Outlook | mycelium-for-outlook |

Register your connector in hub/REGISTRY.md.

Spine-source connector

Emit { identity, freshness } records that any orchestrator can join.

import { runAdapter, checkConformance } from 'mycelium-sdk';

const config = {
  source: 'erpnext',
  identity: {
    uniqueId: 'erpnext:{name}',
    projectKey: '{project}',
    localIdField: 'name',
  },
  freshness: { revisionId: '{modified}', asOf: '{modified}', confidence: 'snapshot' },
};

const result = await runAdapter(config, { fetchSource });
// result.conformant === true → your records are spine-compatible

Identity fields

| Field | Role | |---|---| | source | tool slug — required | | sourceLocalId | stable id within the tool | | projectKey | project scope | | ifcGuid | cross-tool join key (IFC GlobalId) | | uniqueId | in-tool stable id | | classification | NL-SfB / Uniclass / OmniClass | | workPackage | WBS reference | | costCode | finance join key | | zone | spatial region |

Freshness stamp

import { stamp } from 'mycelium-sdk';

const freshness = stamp({
  source: 'erpnext',
  revisionId: 'r/58',
  confidence: 'live', // 'live' | 'snapshot' | 'derived'
});

Provenance ledger

import { append, verifyChain } from 'mycelium-sdk';

append('ledger.jsonl', {
  source: 'erpnext',
  action: 'cost-update',
  result: 'proposed',   // 'proposed'|'approved'|'executed'|'rejected'|'failed'|'triaged'
  actor: 'human:alice',
  projectKey: 'horizons',
  targetKeys: ['PO-2042'],
});

const { ok, count, errors } = verifyChain('ledger.jsonl');

The ledger is append-only JSONL, hash-chained with SHA-256 over canonical key order. On-disk format is identical to orchestrator/src/core/ledger.js in the private Loam repo — they verify against each other.

Revit UniqueId → IFC GlobalId

import { deriveIfcGuid } from 'mycelium-sdk';

const ifcGuid = deriveIfcGuid('aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee-00000042');
// '2S0$N3Qg5FPvBV...' (22-char IFC base64)

Model-source connector

A model source exposes raw BIM data over MCP. The orchestrator builds spine records from those; your connector just translates the authoring tool.

import { checkModelSourceConformance, MODEL_SOURCE_TOOLS } from 'mycelium-sdk/model-source';

// Verify your MCP server exposes all five required tools:
const toolNames = await mcpServer.listTools();
const { conformant, missing } = checkModelSourceConformance(toolNames);

Required tools (exact wire names): get_model_revision, filter_elements_by_region, get_element_by_ifcguid, get_element_by_native_id, get_door_rooms.

See spec/model-source-contract.md for full request/response shapes.

License

Apache-2.0 · connectivespine.org