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

live-studio

v0.1.6

Published

Open-source visual CSS editor with MCP for AI agents

Downloads

38

Readme

Live Studio

Visual CSS editor with MCP integration for AI agents. Edit styles, HTML attributes, text content, and CSS variables on a live page — changes are sent to your AI coding agent for implementation.

Install

npm install live-studio

Run the installer to set up MCP config and skill files:

npx live-studio install

This creates .mcp.json and skill files for Claude Code, Cursor, and other supported agents.

Setup

Add startStudio() to your app's entry point so it runs in the browser. It should only run in development.

React + Vite

// src/main.tsx
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

if (import.meta.env.DEV) {
  import("live-studio").then(({ startStudio }) => startStudio());
}

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

For source file tracking (so the AI agent knows which file to edit), add the Vite plugin:

// vite.config.ts
import react from "@vitejs/plugin-react";
import { reactTracer } from "live-studio/vite";

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

The plugin injects source location attributes in dev mode only — no impact on production builds. Without it, the agent can still edit styles but won't know the exact source file and line number for each component.

Next.js (App Router)

Create a client component that loads the editor:

// src/components/LiveStudio.tsx
"use client";

import { useEffect } from "react";

export function LiveStudio() {
  useEffect(() => {
    if (process.env.NODE_ENV !== "development") return;

    let cleanup: (() => void) | undefined;
    import("live-studio").then(({ startStudio }) => {
      cleanup = startStudio();
    });
    return () => cleanup?.();
  }, []);

  return null;
}

Add it to your root layout:

// src/app/layout.tsx
import { LiveStudio } from "@/components/LiveStudio";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        {process.env.NODE_ENV === "development" && <LiveStudio />}
      </body>
    </html>
  );
}

Next.js (Pages Router)

// src/pages/_app.tsx
import type { AppProps } from "next/app";
import { useEffect } from "react";

export default function App({ Component, pageProps }: AppProps) {
  useEffect(() => {
    if (process.env.NODE_ENV !== "development") return;

    let cleanup: (() => void) | undefined;
    import("live-studio").then(({ startStudio }) => {
      cleanup = startStudio();
    });
    return () => cleanup?.();
  }, []);

  return <Component {...pageProps} />;
}

Vue (Vite)

// src/main.ts
import { createApp } from "vue";
import App from "./App.vue";

if (import.meta.env.DEV) {
  import("live-studio").then(({ startStudio }) => startStudio());
}

createApp(App).mount("#app");

Nuxt

Create a client-only plugin:

// plugins/live-studio.client.ts
export default defineNuxtPlugin(() => {
  if (import.meta.dev) {
    import("live-studio").then(({ startStudio }) => startStudio());
  }
});

Usage

  1. Start your dev server as usual
  2. Run /studio in your AI agent (Claude Code, Cursor, etc.)
  3. Edit styles visually in the panel that appears in your browser
  4. The agent receives your changes and applies them to source code

Options

startStudio({
  port: 9877, // WebSocket port (default: 9877)
});

The port can also be set via the LIVE_STUDIO_PORT environment variable.

License

MIT