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

codev-framework

v0.2.0

Published

Project-local knowledge, skills, and deterministic task routing for AI-assisted development.

Readme

CODEV

Project-local knowledge, skills, and deterministic task routing for AI-assisted development.

Codev keeps durable project context in the repository and loads only the knowledge and workflows relevant to the current task. Existing project agent instructions remain authoritative and are never replaced during installation.

Why Codev

Coding agents can explore large repositories, but indiscriminate context is not useful context. Projects still need durable facts, explicit safety constraints, accepted decisions, active-task state, recurring implementation workflows, and evidence-based verification.

Codev separates those concerns:

| Plane | Responsibility | Source | |-------|----------------|--------| | Knowledge | Facts, conventions, decisions, tickets, and handoffs | Markdown under codev/ | | Capability | How recurring project work should be performed | Project-local agent skills | | Routing | Which capability and context apply to normalized task inputs | codev/manifest.yaml | | Resolution | Validate and produce an ordered load plan | Codev CLI | | Navigation | Human-readable browsing and fallback | codev/index.md and dashboard |

Natural-language interpretation remains agent-driven. Once a task is normalized into an explicit action, scope, and optional paths, Codev routing is deterministic.

Install Safely

npx codev-framework init

codev init creates only the Codev-owned codev/ directory. Existing AGENTS.md, AGENT.md, and CLAUDE.md files are preserved byte-for-byte.

Then tell your agent:

Read codev/START.md and initialize Codev for this project. Preserve the existing agent instructions.

The bootstrap workflow inspects the repository, populates focused knowledge, defines project routes, and creates project-local skills only where recurring work benefits from them.

Project Layout

your-project/
├── AGENTS.md                 existing host-project instructions, if any
├── .agents/skills/           optional project-local capability skills
└── codev/
    ├── START.md              bootstrap and migration entry
    ├── manifest.yaml         deterministic routing declaration
    ├── index.md              human-readable knowledge map and fallback
    ├── profile.md            environment and setup
    ├── guardrails.md         safety constraints
    ├── conventions.md        accepted project conventions
    ├── glossary.md           project language
    ├── preflight.md          pre-work verification gate
    ├── knowledges/           focused durable project knowledge
    ├── current_ticket/       active work context
    ├── tickets/              completed work archive
    ├── decisions/            architecture and product decisions
    ├── sessions/             substantial-work handoffs
    └── templates/            reusable Codev documents

Deterministic Routing

A route declares when it applies and what must be loaded or enforced:

version: 1

project:
  name: example

bootstrap:
  status: complete
  entry: codev/START.md

routing:
  fallback:
    knowledge:
      - codev/index.md

routes:
  implement-backend:
    priority: 100
    when:
      actions:
        - implement
        - fix
      scopes:
        - backend
      paths:
        - server/**
    load:
      skills:
        - implement-backend
      knowledge:
        - codev/knowledges/backend.md
      state:
        - codev/current_ticket/
    enforce:
      guardrails:
        - codev/guardrails.md
      verification: focused-then-full

Resolve it with normalized inputs:

codev route \
  --action implement \
  --scope backend \
  --path server/auth/login.js

For machine-readable output:

codev route --action review --scope project --json

Human output is explanatory by default; --explain is accepted when callers want to state that intent explicitly.

Matching routes compose in descending priority order, then by route ID. Values are de-duplicated while preserving that order. When no route matches, the manifest's fallback knowledge is returned.

Manifest Validation

codev validate

Validation checks:

  • schema version and required mappings;
  • route selector and load shapes;
  • project-contained knowledge, state, and guardrail references;
  • .agents/skills/<name>/SKILL.md references;
  • unsupported YAML constructs and indentation errors.

To remain zero-dependency and portable, Codev accepts an intentional YAML subset: two-space mappings, scalar lists, strings, integers, booleans, null, and empty maps/lists. It rejects tabs, anchors, aliases, multiline scalars, flow collections with values, and lists of mappings.

Optional AGENTS.md Integration

Installation and root integration are separate operations:

codev integrate agents

This adds or updates only a marked block:

<!-- codev:start -->
## Codev

For Codev task selection, normalize action and scope, then run `codev route`.
This supersedes index-first Codev routing; `codev/index.md` is the fallback.
Read `codev/START.md` only for initialization or migration.
<!-- codev:end -->

Existing content outside the markers is preserved. Integration is idempotent, checkable, and reversible:

codev integrate agents --check
codev integrate agents --remove

Upgrade Existing Codev Projects

Older Codev installations already have a codev/ directory but no manifest. Upgrade them additively:

npx codev-framework upgrade

The command adds missing START.md and manifest.yaml files and records the installed framework version. It does not overwrite existing knowledge or root agent instructions. Review and complete the new manifest, then run codev validate.

Dashboard

codev serve
codev serve ./my-project --port 4174

The local server binds to 127.0.0.1, browses the project's Codev knowledge, renders Markdown, and supports editing existing Markdown files.

CLI

codev init [dir]
codev upgrade [dir]
codev integrate agents [--project dir] [--check|--remove]
codev validate [--project dir]
codev route [--project dir] --action value --scope value [--path value] [--explain|--json]
codev serve [dir] [--port number]
codev version
codev help

Principles

  • Host-owned instructions — adoption must not replace project governance.
  • Agent judgment before routing — infer the task, then normalize it explicitly.
  • Deterministic execution after routing — equal manifest and inputs produce an equal plan.
  • Progressive disclosure — load focused context, not the entire knowledge base.
  • Skills for behavior — recurring implementation procedures belong in skills.
  • Markdown for durable knowledge — facts and decisions remain human-readable.
  • YAML for the control plane — routing is declarative and machine-validatable.
  • Evidence over catalogues — durable principles point agents toward live precedent.
  • Explicit adapters — platform integration is narrow, marked, and reversible.

Development

Codev uses Node.js core modules only.

npm test
node index.js validate --project .
node index.js route --project . --action implement --scope cli --path index.js

License

MIT