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

cnad-method

v0.3.5

Published

Context-Native AI Development repository integration CLI

Downloads

565

Readme

CNAD Method

CNAD — Context-Native AI Development is an experimental development method for AI-assisted software engineering.

CNAD designs useful working context before implementation, preserves that context for as long as it adds value, scales process with risk, and introduces a deliberate context boundary for independent review.

Design the context. Preserve it while building. Break it when judging.

CNAD separates three responsibilities: the Strategist helps turn human intent into implementation-ready context, the Builder owns implementation, and the Reviewer independently judges the resulting change. These are roles, not necessarily separate tools or agents; the process scales with risk.

The Strategist advises. The Human owns intent.

The Builder owns implementation, not intent.

The Reviewer judges the result, not the implementation story.

Status

CNAD is an early hypothesis under active dogfooding. The npm CLI is intentionally small and exists to install and maintain repository-readable method files safely.

Repository integration

From a project repository:

pnpm dlx cnad-method init

This installs CNAD-managed method files under .cnad/method/, creates a project-owned .cnad/project.md when needed, and adds a small CNAD reference block to AGENTS.md without replacing existing instructions.

Check a future package update before applying it:

pnpm dlx cnad-method update --check

Apply it:

pnpm dlx cnad-method update

CNAD records hashes of the files it owns. In an ordinary Git-managed workflow, if a CNAD-managed file has been edited locally, an update is blocked instead of silently overwriting the change.

Managed-file hashes normalize text line endings, so a normal Git checkout using CRLF on Windows does not count as a local edit. Manifest paths are also validated before any managed file is read or removed; only normalized descendants of .cnad/method/ are accepted.

Core ownership rule:

CNAD-owned files can be upgraded automatically. Project-owned files must never be silently overwritten.

Project-specific role and boundary mapping

Declare the project's Role, Surface, Agent / Product, Boundary, and Gate assignments as ordinary Markdown in the existing project-owned .cnad/project.md. See the copy-safe five-stage example and guidance: Human → Strategist, Human-mediated Strategist → Builder, optional pre-PR Reviewer, fresh completed-PR Reviewer, and Reviewer → Human final gate.

The mapping is declarative guidance for people and agents; the CLI does not parse it, launch agents, or switch environments. Product names in the example are replaceable, and the same product does not imply the same working context. CNAD's responsibilities, independent review boundaries, and risk-required Human approvals remain tool-independent.

Without a mapping, continue the existing CNAD flow. Partial mappings specify only the assignments written down: omitted products and surfaces remain unspecified, while omitted roles and boundaries retain CNAD's requirements. init preserves existing project guidance; update (including --check) never overwrites or recreates .cnad/project.md. Existing installations can add the example manually; no migration or new configuration file is required.

v0.1 update-safety guarantee

cnad update assumes an ordinary Git-managed working tree. The repository must be a Git repository, and existing CNAD-managed files, including .cnad/version.json, must be tracked and have no uncommitted changes detectable by normal Git diff semantics. Under those conditions, ordinary local modifications are rejected before an update.

Special Git index states and customizations are outside the v0.1 update-safety guarantee. This includes skip-worktree, assume-unchanged, custom clean/smudge filter edge cases, and other special index configurations.

Git is the rollback boundary: CNAD supports ordinary Git-managed workflows rather than reimplementing Git or guaranteeing recovery for every specialized Git configuration. CNAD does not provide transactional rollback for failed updates. After a failed update, inspect the working tree with git status and git diff, then restore or clean changes as appropriate before retrying (for example, preview untracked cleanup with git clean -n -- .cnad/).

First dogfooding target

The first real consumer is Moura. The package and update behavior should evolve from real usage rather than from speculative orchestration features.

Initial workflow

  • turn human intent into implementation-ready context at the depth justified by risk and ambiguity
  • route the task by Low / Medium / High risk
  • keep one primary implementation context while continuity is useful
  • run relevant automated verification and self-review
  • optionally use a pre-PR Independent Review as an early quality gate, fixing and re-verifying Blocking / in-scope findings
  • perform independent review of every completed code change; in GitHub PR workflows, review the completed PR from fresh context after creation even when pre-PR review has run
  • scale review depth and human approval with risk
  • review broadly, change narrowly

See the installed files under .cnad/method/ for the repository-facing workflow.

CNAD Active Indicator

When CNAD materially informs a user-facing AI response, the response begins with a standalone Ⓒ1 through Ⓒ5. The integer is a self-assessment of adherence to the CNAD principles and steps applicable to that task, from insufficient application (1) to sufficient application (5). It does not score answer quality or confidence.

Even Ⓒ5 is a self-reported signal, not a certification of CNAD compliance, a correctness guarantee, or proof that Independent Review or verification is complete. Adherence depends on necessary and sufficient process for the task's risk, ambiguity, and impact; extra steps do not earn a higher score, and a simple Low-risk task can merit Ⓒ5.

Omit the indicator when CNAD did not materially inform the response. The former bare Ⓒ is a legacy activity signal with no adherence rating. See the workflow for all five levels and display rules.

Releases

Maintainer instructions for publishing releases to npm, including the one-time npm account, initial publication, and Trusted Publisher setup, are in the release guide.