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

@arturleao/iced-core

v0.1.4

Published

ICED (Intent, Context, Expectations, Done): host-neutral core library for intent-driven development with independent verification

Readme

@arturleao/iced-core

ICED = Intent, Context, Expectations, Done: intent-driven development with a human-owned contract and independent verification. This package is the host-neutral core: it reads and writes ICED units, hashes and lints contracts, moves units through their lifecycle, runs checks, asks independent verifier agents to try to break the work, and writes the evidence. It never starts an agent itself: the host passes in a function that does.

Zero dependencies, Node >= 20, ESM. The normative spec is spec/SPEC.md; templates, rubric, JSON schema and worked examples are in spec/.

Install

npm install @arturleao/iced-core

Modules

| Import | Contents | |---|---| | @arturleao/iced-core | everything below | | @arturleao/iced-core/core | units (createUnit, readUnit, parseIced, lintIced, contractHash), lifecycle (transition, approveUnit, acceptUnit), layers (ancestors, children), config (loadConfig, verifyModels, setVerifyModels...), decisions, proposals, metrics and stats | | @arturleao/iced-core/verify | runCommands, verifier prompts and lenses, computeVerdict, verifyUnit, submitUnit, runTestWriter, evidence reports | | @arturleao/iced-core/init | initRepo: .iced/config.json, memory, templates, intent/README.md, .gitignore/.gitattributes lines | | @arturleao/iced-core/guard | classifyPath, predictFileContent, changedProtectedKeys, isMutatingShell: what a host needs to gate changes |

Verification with your own agent

import { submitUnit } from "@arturleao/iced-core";

/** @type {import("@arturleao/iced-core/verify").Agent} */
async function agent({ root, prompt, role, access, model, effort, timeoutSec, signal }) {
  // Start a fresh agent in `root` with `prompt`. access is "read-only" for verifiers (they must not change
  // files) and "write" for the test writer. Return its final answer.
  return { ok: true, text: "...final answer ending in a ```json verdict block```..." };
}

const res = await submitUnit({
  root, id: "004-add-dark-mode", summary: "Added a theme toggle",
  evidence: [{ expectation: "E1", kind: "test", ref: "tests/theme.spec.ts" }],
  agent, host: "my-host", defaultModel: "provider/model", defaultEffort: "high",
});
// res.outcome: "done" | "accepted" | "retry" | "blocked" | "missing-evidence"; res.report is also in evidence.md
  • Verifiers run in parallel (three focus lenses for M/L/XL or high-risk units, one otherwise). Any failure fails the unit; three failed attempts block it.
  • Models come from verify.model (one model or a list rotated across verifiers, :level suffix for effort), then defaultModel. host labels the report and picks the host's entry from older per-host config maps.
  • Without an agent, verification still runs the checks, but the result is marked as not independently verified and needs a human.

Guarding changes

A host that can intercept file writes and shell commands uses guard to keep agents inside the rules: code changes inside the repository frozen while the active unit is not building (at low autonomy), the unit file's protected fields and signed-off contract never edited by agents, ICED-owned files (evidence.md, verify.json, .iced/active, .iced/metrics.jsonl) written only by the tooling, and the config's integrity keys (CONFIG_INTEGRITY_KEYS) human-only.

import {
  classifyPath, changedProtectedKeys, changedConfigIntegrityKeys, isMutatingShell, predictFileContent,
  shellMutatesOnlyOutside, writesProtectedShellTarget,
} from "@arturleao/iced-core/guard";
classifyPath(root, cwd, "intent/004-x/iced.md");   // { kind: "unit", id: "004-x", ... }
isMutatingShell("rm -rf src");                      // true (a heuristic, not a sandbox)
isMutatingShell("ls x 2>/dev/null");                // false: stderr and temp redirects do not count
writesProtectedShellTarget("cat intent/004-x/iced.md"); // false: reading is not writing
shellMutatesOnlyOutside(root, cwd, "cd ../other && npm ci"); // true: a sibling checkout

Development

npm test
npm run validate:examples

License

MIT