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

cortex-editor

v0.3.1

Published

Visual editor for Claude Code

Downloads

200

Readme

cortex-editor

Visual editor for Claude Code

Cortex is a dev-time visual editor for web apps. Select an element in the browser, adjust design tokens visually, see the change immediately, then hand the staged edits to Claude Code, which applies them back to your source files.

What you'll do

Install Cortex into your app, activate it from Claude Code with /cortex, click elements in the browser to edit them, and apply your changes when you're ready. Source files only change when you say so.

Quick start

1. Install

Run from your app's folder (the one with package.json):

npm install -D cortex-editor
npx cortex init

2. Start your app

npm run dev

Leave this terminal running. Note the URL it prints (e.g. http://localhost:5173) and open it in a browser.

3. Open Claude Code

Start Claude Code in the same folder as your app. If it was already open, restart it from this folder so it picks up the new MCP server.

4. Activate

In Claude Code, type /cortex. Reload your browser tab and the Cortex panel appears on the side.

5. Edit + Apply

  • Click any element to edit it.
  • Adjust spacing, color, typography, etc. in the panel.
  • Click Apply (or run /cortex apply in Claude Code) when you're ready. Claude Code writes the changes to your source files.

Staging, not saving. Your edits live in the browser until you Apply. Reload without applying and they're gone, on purpose. Experiment freely; commit when ready.

Why Cortex?

Designers usually bounce between Figma (where the change is visual) and Claude Code (where the change becomes code). That round-trip loses fidelity at every step.

Cortex puts the editing surface on the live app itself. You adjust spacing, color, and typography directly on real content, with real responsive behavior, then Apply hands the intent to Claude Code. No spec to write, no screenshot to annotate, no translation step.

Supported stacks

  • Vite: fully supported. cortex init auto-configures the plugin.
  • Webpack 5: supported (HtmlWebpackPlugin or manual snippet).
  • Next.js: Next 16 App Router, dev mode. Works on default next dev (Turbopack) — source attribution for client and server components, editor activation, and staged-edit Apply verified end-to-end for client components. Requires withCortex() in next.config plus <CortexDevScripts /> in the root layout (cortex init sets up both). withCortex returns Next's phase-function config form, so it must be the outermost wrapper when composing — withCortex(withBundleAnalyzer(cfg)), never the reverse; it accepts object, promise, and phase-function configs. Set CORTEX_BRIDGE=0 to suppress the dev bridge (source attribution still applies). Not yet supported: Pages Router, Next 13–15, .js-files-with-JSX / custom pageExtensions, Sass modules, strict-CSP inline policies, next dev --experimental-https; server-component edits trigger a full reload rather than a Fast Refresh patch, and post-Apply HMR verification is not Next-aware yet.

Works with React, Vue, or Svelte, styled with Tailwind CSS or CSS Modules.

Requirements

MCP auto-discovery

cortex init writes a project-scoped Claude Code MCP server to .mcp.json (npx cortex mcp). No separate MCP package to install. After init, restart Claude Code or run /mcp and approve the cortex server.

No embedded API keys

AI-assisted edits route through your existing Claude Code session over MCP. Cortex does not embed, require, or transmit any API keys of its own.

Full documentation

The step-by-step setup walkthrough, Webpack/Next specifics, annotation persistence, and troubleshooting live in the project repository:

https://github.com/zerofog/cortex#getting-started

License

MIT. See LICENSE.