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

@principles/core

v1.240.21

Published

Universal Evolution SDK - framework-agnostic pain signal capture and principle injection

Readme

@principles/core

Pure logic only — no I/O. This package must not import fs, path, or any I/O module. All filesystem/DB/network operations belong in openclaw-plugin.

Boundary enforcement (PRI-450 / PRI-462)

Three automated layers prevent I/O from leaking into core:

  1. I/O seam registryio-seam-registry.json is the single source of truth for which production files may import fs/path. Each file belongs to a named seam with a description explaining WHY the I/O is allowed. Both the architecture-regression test and ESLint derive their exemption lists from this registry — there is no second hand-maintained list.

  2. Architecture-regression testruntime-v2/__tests__/architecture-regression.test.ts loads the registry, scans every .ts file under src/ for fs/path imports, and verifies they match the registry. Any new I/O file must be added to the registry — otherwise CI fails.

  3. ESLint no-restricted-importseslint.config.js bans fs/path imports in packages/principles-core/src/. The exemption list is generated from the registry at lint time.

Named I/O seams

| Seam | Files | Why allowed | |------|-------|-------------| | ledger-tree | principle-tree-ledger.ts | File-based principle ledger SSOT; pd-cli reads/writes without importing openclaw-plugin | | sdk-store | evolution-store.ts, trajectory-store.ts, workflow-funnel-loader.ts | Standalone SDK store primitives exposed as package subpaths | | sqlite-state-store | runtime-v2/store/sqlite-connection.ts, runtime-v2/store/runtime-state-manager.ts | runtime-v2 state.db connection + manager | | cli-runtime-adapter | runtime-v2/adapter/openclaw-cli-runtime-adapter.ts | Spawns openclaw CLI process | | read-model | 5 *read-model*.ts files | Read-only composite models querying state.db + ledger | | audit-observability | candidate-audit.ts, pain-signal-observability.ts | Audit + pain signal observability writers | | remediation-review | internalization-integrity-remediation.ts, pruning-review-log.ts | Integrity remediation + pruning review log |

Adding a new I/O file (rare — prefer plugin)

If a core file genuinely needs I/O:

  1. Add the file path to the appropriate seam in io-seam-registry.json (or create a new seam with a name and description)
  2. Explain in the PR why the I/O cannot live in openclaw-plugin
  3. Both the architecture-regression test and ESLint exemption update automatically

Usage

npm install @principles/core
import { /* ... */ } from '@principles/core';

See package.json exports for available subpaths.