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

@chrisdudek/yg

v2.5.0

Published

Make your repository self-aware. Persistent semantic memory and deterministic context assembly for AI agents.

Readme

@chrisdudek/yg

Make your repository self-aware.

Yggdrasil gives your repository a persistent semantic memory graph. The yg CLI maintains the system's intent, rules, and boundaries in structured Markdown and YAML inside .yggdrasil/. When an AI agent works on your code, Yggdrasil deterministically assembles a precise context package for the exact component the agent is modifying.

No API keys. No network dependency. Just local files, validation, and context builds.

Installation

npm install -g @chrisdudek/yg

Requirements: Node.js 22+

Initialize

cd your-project
yg init --platform <platform>

Done. Your repository is now self-aware.

Quick Start

yg init --platform cursor
yg tree --depth 1
yg validate
yg build-context --node orders/order-service

Core Commands

Diagnostics:

  • yg preflight [--quick] — Unified diagnostic report: drift, status, validation

Reading and analysis:

  • yg build-context --node <path> [--full] — Assemble context package (YAML structural map + artifact paths; --full appends file contents)
  • yg status — Graph health summary
  • yg tree [--root <path>] [--depth N] — Graph structure as tree
  • yg owner --file <path> — Find which graph node owns a source file
  • yg deps --node <path> — Forward dependency tree and materialization order
  • yg impact --node <path> [--simulate] — Reverse dependencies and context impact
  • yg select --task <description> [--limit <n>] — Find graph nodes relevant to a task
  • yg aspects — List aspects with metadata (YAML output)
  • yg flows — List flows with metadata (YAML output)

Validation and drift:

  • yg validate [--scope all|node-path] — Structural integrity and completeness
  • yg drift [--scope all|node-path] [--drifted-only] [--limit <n>] — Detect graph-to-file divergence
  • yg drift-sync --node <path> [--recursive] — Record current file hash after resolving drift
  • yg drift-sync --all — Sync all nodes with mappings in one command

Setup:

  • yg init --platform <name> — Initialize .yggdrasil/ structure (once per repository)
  • yg init --platform <name> --upgrade — Refresh rules only (config and graph stay unchanged)

Node paths are relative to .yggdrasil/model/. File paths are relative to the repository root.

Upgrade

npm install -g @chrisdudek/yg
cd your-project
yg init --platform <platform> --upgrade

--upgrade overwrites only the rules file. Your .yggdrasil/ config and graph are not modified.

Supported Platforms

| Platform | Init | Rules location | | ----------- | -------------------------------- | --------------------------------- | | Cursor | yg init --platform cursor | .cursor/rules/yggdrasil.mdc | | Claude Code | yg init --platform claude-code | AGENTS.md (Yggdrasil section) | | Copilot | yg init --platform copilot | .github/copilot-instructions.md | | Cline | yg init --platform cline | .clinerules/yggdrasil.md | | RooCode | yg init --platform roocode | .roo/rules/yggdrasil.md | | Codex | yg init --platform codex | AGENTS.md (Yggdrasil section) | | Windsurf | yg init --platform windsurf | .windsurf/rules/yggdrasil.md | | Aider | yg init --platform aider | .yggdrasil/agent-rules.md | | Gemini CLI | yg init --platform gemini | GEMINI.md (import) | | Amp | yg init --platform amp | AGENTS.md (import) | | Generic | yg init --platform generic | .yggdrasil/agent-rules.md |

License

MIT