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

@stratiqx/cal-runtime

v1.1.0

Published

Cormorant Agentic Language (CAL) - Runtime execution engine for cascade analysis

Downloads

419

Readme

CAL Runtime

Cascade Analysis Language — Deterministic Execution Engine

npm DOI Tests License: MIT

A domain-specific language for modeling how failure — and success — propagates across organizations. CAL maps the invisible pathways between dimensions that traditional risk tools evaluate in isolation. The keywords are the methodology: FORAGE to sense signals, DRIFT to measure gaps, FETCH to decide when to act.

Built on the 6D Foraging Methodology. Battle-tested across 49 published case studies spanning banking, tech, sports, fashion, healthcare, energy, and entertainment — with FETCH scores ranging from 1,040 to 4,461.

-- Silicon Valley Bank: 6D Cascade Analysis
-- Sense → Analyze → Measure → Decide → Act

FORAGE banks
WHERE asset_liability_mismatch > 50
  AND uninsured_deposits > 85
  AND cro_vacancy IS "18 months"
ACROSS D5, D1, D3, D4, D6, D2
DEPTH 3
SURFACE svb_cascade

DIVE INTO deposits
WHEN withdrawal_rate > 1000000    -- $1M per second
TRACE cascade
EMIT bank_run_signal

DRIFT svb_cascade
METHODOLOGY 90                    -- expected risk detection capability
PERFORMANCE 15                    -- actual: audits passed, cascade invisible

FETCH svb_cascade
THRESHOLD 1000
ON EXECUTE CHIRP critical "6/6 dimensions compromised in 48 hours"

SURFACE analysis AS json

This script is from UC-039: The 48-Hour Cascade — the highest FETCH score (4,461) in a library of 49 published case studies. Watch the 70-second video breakdown.

The 5-Layer Pipeline

CAL scripts follow a deterministic pipeline that maps directly to the 6D Foraging Methodology:

| Layer | Keywords | What It Does | |-------|----------|-------------| | SENSE | FORAGE, WHERE, ACROSS, PERCH, LISTEN, WAKE | Find entities with high-urgency signals across dimensions | | ANALYZE | DIVE INTO, WHEN, TRACE, EMIT | Deep-dive into cascade propagation pathways | | MEASURE | DRIFT, METHODOLOGY, PERFORMANCE | Quantify the gap between expected and actual capability | | DECIDE | FETCH, THRESHOLD, ON EXECUTE/CONFIRM/QUEUE/WAIT | Route action based on FETCH = Chirp × |DRIFT| × Confidence | | ACT | CHIRP, SURFACE | Alert and output results |

6D Dimensions

Every analysis scores across six organizational dimensions:

| ID | Dimension | Domain | |----|-----------|--------| | D1 | Customer | Market impact, user sentiment, adoption | | D2 | Employee | Talent, workforce, human capital | | D3 | Revenue | Financial health, pricing, market cap | | D4 | Regulatory | Compliance, legal, policy | | D5 | Quality | Risk management, product performance | | D6 | Operational | Process, infrastructure, systems |

Cascade chains map how failure (or success) propagates across dimensions: D5 → D1 → D3 → D4 → D6 → D2

Quick Start

npm install @stratiqx/cal-runtime
import { parse, execute } from '@stratiqx/cal-runtime';

const result = parse(`
  FORAGE entities
  WHERE sound > 7
  ACROSS D1, D2, D3
  DEPTH 3
  SURFACE cascade_map

  DRIFT cascade_map
  METHODOLOGY 85
  PERFORMANCE 35

  FETCH cascade_map
  THRESHOLD 1000
  ON EXECUTE CHIRP critical "Cascade detected"
`);

const output = await execute(result.actionPlan, {
  entities: [
    { id: 'svb', sound: 9, space: 9, time: 10, dimensions: { D1: 88, D3: 82, D5: 78 } }
  ]
});

CLI

# Run a CAL script
npx cal examples/closed-loop-pipeline.cal

# With data
npx cal script.cal --data entities.json

Architecture

CAL Script → PEG Parser → Action Plan → Executor → Results
                                            ↓
                              Data Adapters + Alert Adapters
  • Parser: PEG grammar (Peggy) — 10 keywords, deterministic parse
  • Executor: Layer-by-layer pipeline execution
  • Data Adapters: JSON, memory, composite (pluggable)
  • Alert Adapters: Console, file, webhook (pluggable)
  • Test Suite: 192 tests across 8 suites

Examples

The examples/ directory contains runnable CAL scripts:

Documentation

Ecosystem

| Component | What It Is | |-----------|-----------| | CAL Runtime | This repo — the execution engine | | CAL Specification | Language reference (40+ pages) | | 6D Methodology | Dimensional analysis framework | | Case Library | 49 published analyses with FETCH scores | | StratIQX Intelligence | Consulting and analysis services | | Cormorant Foraging | Foundational behavioral methodology |

Zenodo DOIs

| DOI | Artifact | |-----|----------| | 10.5281/zenodo.18905193 | CAL Runtime | | 10.5281/zenodo.18209946 | 6D Methodology | | 10.5281/zenodo.18904952 | Cormorant Foraging Framework | | 10.5281/zenodo.17114972 | Semantic Intent SSOT | | 10.5281/zenodo.18905197 | CAL Documentation |

Development

npm install          # Install dependencies
npm test             # Run 192 tests
npm run build        # Build for production
npm run typecheck    # Type checking

Citation

@misc{shatny2026cal,
  author = {Shatny, Michael},
  title = {CAL Runtime: Cormorant Agentic Language Execution Engine},
  year = {2026},
  publisher = {Zenodo},
  url = {https://github.com/semanticintent/cal-runtime},
  doi = {10.5281/zenodo.18905193},
  note = {ORCID: 0009-0006-2011-3258}
}

Author

Michael ShatnyORCID: 0009-0006-2011-3258

License

MIT