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

@nanomind/runtime-core

v0.1.0

Published

NanoMind RuntimeTwin: behavioral twin (LSTM) for ARP anomaly detection. Canonical home of the LSTM scorer referenced in NANOMIND_V3_AUDIT.md Section 9 item 1.

Downloads

211

Readme

@nanomind/runtime-core

RuntimeTwin: behavioral twin (LSTM) for ARP anomaly detection.

This package is the canonical home of the LSTM behavioral scorer that sits between L0 rule-based classification and L2 LLM-assisted assessment in the three-tier ARP intelligence stack. Each ARP event flows through the twin on a non-blocking path. The twin computes an anomaly score against a warm-up baseline, contributes to federated learning via differential-private gradient submissions, and hands a BehavioralRiskScore back to the coordinator.

Three-tier ARP model

  • L0: Rule-based classification (microseconds, every event)
  • L1: RuntimeTwin (milliseconds, this package) and classification drift detection
  • L2: LLM-assisted assessment (seconds, budget-controlled)

Status

  • Version 0.1.0, private workspace package.
  • Consumers import the canonical RuntimeTwin class when the package is published.
  • Pending publication, hackmyagent/src/arp/intelligence/runtime-twin.ts temporarily mirrors this source. Any change to scoring logic must be mirrored in both files until the publication cut-over (tracked as PR 1b in todo/NANOMIND_V3_AUDIT.md Section 8).

Why this package exists

Section 9 item 1 of the v3 audit found two parallel behavioral-twin implementations: a statistical twin in packages/nanomind-runtime/ and an LSTM twin in hackmyagent/src/arp/intelligence/nanomind-l1.ts. Abdel approved path (a) on 2026-04-11: retire the statistical twin, relocate the LSTM to this package. This package is the result.

Federated learning wire format

This twin produces 9-dimensional gradients that feed /api/v1/telemetry/behavioral-gradient. The current submission path uses the v1 wire format; NANOMIND_FL_DESIGN.md Section 3 deliberately supersedes it with the v2 format (signed, round-aware, client-identified). The v2 adoption is tracked separately; this package does not implement v2 yet.

What does NOT belong here

  • Any ARP integration wiring (EventEngine attach, proxy integration, telemetry forwarder): lives in hackmyagent/src/arp/.
  • Any rule-based classifier: that is L0, not L1.
  • Any classification-drift detection: that is guard-anomaly, still in hackmyagent/src/arp/intelligence/.