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

@ashwindojo/codeatlas-vite-plugin

v0.1.5

Published

Vite plugin for CodeAtlas — real-time annotation parsing and live MCP HTTP server in dev mode

Readme

@ashwindojo/codeatlas-vite-plugin

npm downloads License: MIT Vite

Give Claude and Cursor a live map of your React, Vue, or Svelte codebase — in 5 minutes.

Add one plugin to vite.config.ts, annotate a few components, and your entire business-flow graph is instantly queryable by any MCP-compatible AI tool through a live HTTP endpoint at http://localhost:5173/mcp.

No separate server. No extra port. Updates automatically on every file save.


Install

npm install -D @ashwindojo/codeatlas-vite-plugin

Setup — 3 steps

Step 1 — Add to vite.config.ts

import { codeAtlas } from '@ashwindojo/codeatlas-vite-plugin'

export default defineConfig({
  plugins: [react(), codeAtlas()],
})

Step 2 — Annotate your components

/**
 * @productFlow("payments")
 * @routeHandler("/checkout")
 * @ownership("payments-team")
 */
export default function CheckoutPage() { ... }

Step 3 — Run vite dev

  ➜  Local:          http://localhost:5173/
  ➜  CodeAtlas MCP:  http://localhost:5173/mcp

That's it. Claude and Cursor can now query your codebase structure in real-time.


Connect to Claude Desktop

In ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "codeatlas-dev": {
      "url": "http://localhost:5173/mcp"
    }
  }
}

Restart Claude Desktop, then ask:

"What components are in the payments flow?" "Which team owns the auth feature?" "What Redux state does the dashboard use?"

Connect to Cursor

In Cursor → Settings → MCP:

{
  "mcpServers": {
    "codeatlas-dev": {
      "url": "http://localhost:5173/mcp"
    }
  }
}

What the MCP server exposes

| Tool | Description | |---|---| | get_repo_context | Full overview: flows, states, APIs, owners | | get_flow_context | Deep dive into a single business flow | | get_component_context | Context for one annotated component | | list_flows | All detected flows with counts | | list_all_annotations | Every annotated node, filterable by type | | search_flows | Text search across names, files, annotations |

REST endpoints (dev only)

| URL | Returns | |---|---| | /__codeatlas/flows | All flows as JSON | | /__codeatlas/annotations | All annotated nodes as JSON | | /__codeatlas/index | Full graph as JSON |

Plugin options

codeAtlas({
  mcpPath: '/mcp',          // MCP endpoint path. false to disable.
  writeIndex: true,          // Write .codeatlas/index.json on each save
  extensions: ['.ts', '.tsx', '.vue', '.svelte'],
  customAnnotations: [
    { name: 'workflow', description: 'Business workflow', category: 'flow' },
  ],
})

Virtual module

import index from 'virtual:codeatlas'

console.log(index.flows)        // { payments: FlowGraph, auth: FlowGraph }
console.log(index.criticalPaths) // [AnnotatedNode]
console.log(index.ownership)    // { 'payments-team': [AnnotatedNode] }

Part of the CodeAtlas ecosystem

| Package | What it does | |---|---| | @ashwindojo/codeatlas-core | Parser, indexer, CLI | | @ashwindojo/codeatlas-vite-plugin | Live MCP server inside vite dev ← you are here | | @ashwindojo/codeatlas-mcp | Standalone MCP server for CI & Claude Desktop |


MIT © 2026