Skip to content
PluginStats

solid-grab weekly downloads statistics

By omniaura (4 listings) · npm · Claude Code

Select context for coding agents directly from your SolidJS app

View on npm Outdated · Nov 18, 2026

solid-grab has 2,656 recorded weekly downloads on npm, a decrease of 14.6% over the past 30 days, ranking #1787 of 3,247 tracked listings.

Weekly downloads
2,656
Official API · Dec 5, 2026
7-day growth
+139%
+1.5K weekly downloads
30-day growth
-14.6%
-453 weekly downloads
90-day growth
+318%
+2K weekly downloads
Rank
#1787
▲ 171 in 7 days

About solid-grab

solid-grab

Select context for coding agents directly from your SolidJS app.

solid-grab is a dev-mode tool for SolidJS that lets you hold a key, hover any element in your running app, and click to copy its full context — source file, line number, component hierarchy — ready to paste into Cursor, Claude Code, or any AI coding agent.

Inspired by react-grab by Aiden Bai.


How it works

  1. Build time: A Vite plugin injects data-solid-source and data-solid-component attributes onto your JSX elements during compilation
  2. Runtime: An overlay activates when you hold a modifier key — hover to highlight, click to grab
  3. Output: The full context (element, source location, component tree) is copied to your clipboard or sent to an agent via WebSocket

Solid version support

v2 requires Solid 2.0; use v1 for Solid 1.x. The overlay uses raw DOM APIs, not Solid internals. Source injection is a compiler-independent pre-transform, compatible with both the default native (Oxc) compiler and compiler: "babel".

The Solid 2 toolchain requires Node.js >=22.12.0.

Quick start

npm install solid-grab @solidjs/vite-plugin@3.0.0-next.51 vite@^8 --save-dev
npm install solid-js@2.0.0-rc.18 @solidjs/web@2.0.0-rc.18
1. Add the Vite plugin
// vite.config.ts
import { defineConfig } from "vite";
import solid from "@solidjs/vite-plugin";
import solidGrab from "solid-grab/vite";

export default defineConfig({
  plugins: [
    solidGrab(),   // ← must come BEFORE @solidjs/vite-plugin
    solid(),
  ],
});

That's it. The plugin auto-injects the runtime in dev mode. No code changes needed.

2. Use it
  1. Run your dev server (npm run dev)
  2. Hold Alt (or Option on Mac)
  3. Hover over any element — you'll see a blue highlight with component info
  4. Click to copy the full context to your clipboard
  5. Paste into your AI agent prompt

What gets copied

--- solid-grab context ---

Element: <button class="btn btn-primary">
Source:  src/components/Counter.tsx:24:8

Component tree (innermost → outermost):
  <Counter /> → src/components/Counter.tsx:12:1
  <App /> → src/App.tsx:8:1

HTML:
<button class="btn btn-primary" data-solid-source="src/components/Counter.tsx:24:8">Count: 5</button>

--- end solid-grab context ---

Configuration

Vite plugin options
solidGrab({
  // Source paths relative to the project root (default: "project-root")
  // Use "system-root" for full absolute paths.
  pathMode: "project-root",

  // Inject data-solid-source attributes (default: true)
  jsxLocation: true,

  // Inject data-solid-component attributes (default: true)
  componentLocation: true,

  // Auto-import the runtime in dev mode (default: true)
  autoImport: true,
})

Paths use Vite's resolved root by default. Shared files outside that directory use ../ paths instead of falling back to full system paths. This keeps source locations short in both the context and its HTML snippet.

For a monorepo with Vite rooted at apps/web, set projectRoot: "../.." to use repository-relative paths such as packages/ui/src/primitives.tsx:445:13. projectRoot also accepts an absolute directory. To include full absolute paths, use solidGrab({ pathMode: "system-root" }). Restart Vite after changing these options.

Runtime options

If you want to customize the runtime behavior, disable autoImport and initialize manually:

// src/index.tsx
import { initSolidGrab } from "solid-grab";

if (import.meta.env.DEV) {
  initSolidGrab({
    // Modifier key to hold (default: "Alt")
    key: "Alt",

    // Show toast on copy (default: true)
    showToast: true,

    // Show the standalone badge (default: true)
    showBadge: true,

    // WebSocket URL for agent bridge
    agentUrl: "ws://localhost:4567",

    // Custom callback
    onGrab(context) {
      console.log("Grabbed:", context);
      // Return false to prevent clipboard copy
    },
  });
}

Agent integration

Clipboard (default)

Just paste the copied context into any AI chat — Claude, ChatGPT, Cursor's chat, etc.

WebSocket bridge

For a tighter loop, solid-grab can send context directly to an agent over WebSocket:

initSolidGrab({
  agentUrl: "ws://localhost:4567",
});

You'll need to run a small bridge server alongside your dev server. (A @solid-grab/claude-code package is planned.)


How it differs from react-grab

react-grabsolid-grab
FrameworkReactSolidJS
Source mappingReact Fiber tree (via bippy)Build-time attribute injection
Component detectionRuntime fiber walkingBuild-time data-solid-component attrs
Why differentReact has a runtime component treeSolid compiles components away

React Grab hooks into React's private Fiber internals at runtime to walk the component tree. Solid doesn't have a Fiber tree — components are compiled into direct DOM operations and disappear at runtime. So solid-grab takes a build-time approach: the Vite plugin annotates JSX with source metadata before Solid's compiler runs, preserving the mapping through compilation.


API

initSolidGrab(options?)

Initialize the runtime overlay. Called automatically on import unless autoImport is disabled.

destroySolidGrab()

Tear down the overlay and event listeners. Useful for HMR cleanup.

inspect(element: HTMLElement): GrabbedContext

Programmatically inspect any DOM element and get its full context.

setBadgeVisible(visible: boolean)

Show or hide the standalone badge without changing grab behavior.

setPicking(picking: boolean)

Start or stop persistent click selection. While enabled, click an element to copy/send context without holding the activation key. Escape cancels; a successful click stops persistent picking and suppresses the clicked element's default navigation.…

Description from the npm listing.

  • solid
  • solidjs
  • devtools
  • grab
  • agent
  • cursor
  • claude-code
  • context

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

solid-grab weekly downloads on npm, last 90 days: 2,656 weekly downloads as of Dec 5, 2026, +318% over 90 days.solid-grabWeekly downloads on npm · Last 90 days2,656downloads / week+318% over 90 days02K4K6K8K10K12KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
solid-grab weekly downloads on npm, last 90 days: 2,656 weekly downloads as of Dec 5, 2026, +318% over 90 days.

7/30/90-day growth

solid-grab weekly downloads growth on npm: +139% over 7 days, -14.6% over 30 days, +318% over 90 days.solid-grabWeekly downloads growth on npm2,656downloads / week now7-day growth+1,545 weekly downloads+139%30-day growth-453 weekly downloads-14.6%90-day growth+2,020 weekly downloads+318%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
solid-grab weekly downloads growth on npm: +139% over 7 days, -14.6% over 30 days, +318% over 90 days.

Ranking history

solid-grab npm ranking history: currently #1787 (by weekly downloads).solid-grabnpm ranking · by weekly downloads · Last 90 days#1787current rank#200#400#600#800#1000#1200#1400#1600#1800#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 29 observations · Updated Dec 5, 2026pluginstats.com
solid-grab npm ranking history: currently #1787 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 90, #7 (overall #1,787)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 15, #16 (overall #296)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for solid-grab
Date (UTC)Weekly downloadsChange vs. previous
2,656-103
2,759+121
2,638+395
2,243+66
2,177+205
1,972+413
1,559+448
1,111-54
1,165-25
1,190+46
1,144-191
1,335-120
1,455+54
1,401—

Similar npm Claude Code plugins

All 20 solid-grab alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/solid-grab. First seen Oct 16, 2026; last successful collection Nov 18, 2026. See the methodology.