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

@yearofthedan/weaver

v0.1.3

Published

Headless CLI refactoring engine for AI agents

Readme

weaver

A refactoring bridge between AI coding agents and the compiler APIs that understand your codebase.

AI agents can read and write files, but struggle with cross-file structural changes. Renaming a shared symbol or moving a file means loading every affected file into context, manually patching import paths, and hoping nothing is missed. Weaver removes that burden. The agent issues an intent, weaver handles the cascade using deterministic compiler-driven resolution, and the agent gets back a semantic summary without ever seeing the raw diffs.

Why weaver? — the thesis: speed, determinism, context efficiency.

Install

pnpm add -D @yearofthedan/weaver
# or
npm install -D @yearofthedan/weaver

Requires Node.js 18+. Supports .ts, .tsx, .js, .jsx, and .vue (Vue support requires Volar; auto-detected).

Try it

Rename a symbol everywhere it's used — including across .vue files — in one call:

npx @yearofthedan/weaver rename '{"file": "src/utils.ts", "line": 10, "col": 5, "newName": "calculateTotal"}'

Response (stdout):

{
  "status": "success",
  "filesModified": ["src/utils.ts", "src/main.ts", "src/components/Total.vue"],
  "filesSkipped": []
}

The first call auto-spawns a daemon for the workspace and warms it. Subsequent calls reuse the warm daemon.

Commands

Full per-command reference: docs/commands/. Common shape: each command takes a JSON argument (or stdin), returns JSON, and is also exposed as an MCP tool with the same arguments under the camelCase form (move-filemoveFile).

| Category | Commands | | --- | --- | | Refactor | rename · move-file · move-directory · move-symbol · delete-file · extract-function | | Inspect | find-references · find-importers · get-definition · get-type-errors | | Search | search-text · replace-text | | Lifecycle | daemon · serve · stop |

Shared conventions: response format · error codes.

Agent integration

CLI (recommended)

Any agent with shell access can call weaver directly. Install as a dev dependency, then invoke any command with a single JSON argument:

npx @yearofthedan/weaver move-file '{"oldPath": "src/old.ts", "newPath": "src/new.ts"}'

The daemon auto-spawns on the first call and stays warm for subsequent operations.

MCP

For agent hosts that support the Model Context Protocol, weaver exposes the same operations via weaver serve. Add a .mcp.json:

{
  "mcpServers": {
    "weaver": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@yearofthedan/weaver", "serve", "--workspace", "."]
    }
  }
}

See docs/commands/serve.md for portable-config notes.

Skills

Weaver ships skill files that teach agents when to reach for each operation. Install with the skills CLI:

npx skills add yearofthedan/weaver

Or reference manually from your agent's configuration (e.g. CLAUDE.md):

## Refactoring
see `node_modules/@yearofthedan/weaver/.claude/skills/refactor`
see `node_modules/@yearofthedan/weaver/.claude/skills/code-inspection`
see `node_modules/@yearofthedan/weaver/.claude/skills/search-and-replace`

Architecture

Three pieces, kept apart on purpose:

  • Daemon — long-lived process that loads the project graph, watches for file changes, and stays warm between agent sessions.
  • CLI — primary interface. Subcommands auto-spawn the daemon if needed and return JSON to stdout.
  • MCP server — thin stdio bridge (weaver serve) that connects to the daemon for hosts supporting MCP.

Deeper detail in docs/architecture.md and docs/internals/.

Documentation

Security

To report a vulnerability, see SECURITY.md. Threat model and controls are in docs/security.md.

Contributing

See CONTRIBUTING.md.