Catalogue / tanstack-devtools-marketplace
tanstack-devtools-marketplace
MITSignedPublish plugin to npm and submit to TanStack Devtools Marketplace. PluginMetadata registry format, plugin-registry.ts, pluginImport (importName, type), requires (packageName, minVersion), framework tagging, multi-framework submissions, featured plugins.--- name: tanstack-devtools-marketplace description: "Publish plugin to npm and submit to TanStack Devtools Marketplace. PluginMetadata registry format, plugin-registry.ts, pluginImport (importName, type), requires (packageName, minVersion), framework tagging, multi-framework submissions, featured plugins." license: "MIT" metadata: internal: true tanstack-library: "@tanstack/devtools" tanstack-library-version: "0.10.12" tanstack-package: "@tanstack/devtools" tanstack-package-version: "0.17.0" tanstack-requires: "[\"tanstack-devtools-plugin-panel\"]" tanstack-source-skill: "devtools-marketplace" tanstack-sources: "[\"docs/third-party-plugins.md\",\"packages/devtools/src/tabs/plugin-registry.ts\",\"packages/devtools/src/tabs/marketplace/types.ts\",\"packages/devtools/src/tabs/marketplace/plugin-utils.ts\",\"packages/devtools-vite/src/inject-plugin.ts\",\"packages/devtools-client/src/index.ts\"]" tanstack-type: "lifecycle" ---
TanStack Devtools Marketplace
> Prerequisite: Build a working plugin first using the devtools-plugin-panel skill. The marketplace submission assumes you already have a published npm package that exports either a JSX panel component or a function-based plugin.
Overview
The TanStack Devtools Marketplace is a built-in registry inside the devtools shell. Users browse it from the Marketplace tab, and can install plugins with a single click. Submission is a PR to the packages/devtools/src/tabs/plugin-registry.ts file in the TanStack/devtools repository.
PluginMetadata Interface
Every marketplace entry conforms to the PluginMetadata interface exported from packages/devtools/src/tabs/plugin-registry.ts:
export interface PluginMetadata {
/** Package name on npm (e.g., '@acme/react-analytics-devtools') */
packageName: string
/** Display title shown on the marketplace card */
title: string
/** Short description of what the plugin does */
description?: string
/** URL to a logo image (SVG, PNG, etc.) */
logoUrl?: string
/** Required base package dependency */
requires?: {
/** Required package name (e.g., '@tanstack/react-query') */
packageName: string
/** Minimum required version (semver) */
minVersion: string
/** Maximum version (if there's a known breaking change) */
maxVersion?: string
}
/** Plugin import configuration -- enables one-click auto-install */
pluginImport?: {
/** The exact export name to import from the package
* (e.g., 'FormDevtoolsPlugin' or 'ReactQueryDevtoolsPanel') */
importName: string
/** 'jsx' = component rendered via { name, render: <Component /> }
* 'function' = called directly as FnName() in the plugins array */
type: 'jsx' | 'function'
}
/** Custom plugin ID for matching against registered plugins.
* The default behavior lowercases the package name and replaces
* non-alphanumeric characters with '-'.
* Example: pluginId: 'tanstack-form' matches 'tanstack-form-4'. */
pluginId?: string
/** URL to the plugin's documentation */
docsUrl?: string
/** Plugin author/maintainer */
author?: string
/** Repository URL */
repoUrl?: string
/** Framework this plugin supports */
framework: 'react' | 'solid' | 'vue' | 'svelte' | 'angular' | 'other'
/** Mark as featured -- appears in the Featured section with animated border.
* Reserved for official TanStack partners. */
featured?: boolean
/** Mark as new -- shows a "New" banner on the card */
isNew?: boolean
/** Tags for filtering and categorization */
tags?: Array<string>
}Required vs Optional Fields
Only two fields are strictly required by the TypeScript interface: packageName, title, and framework. In practice, always provide requires, pluginImport, and description -- without them the marketplace card is functional but auto-install cannot wire up the plugin.
Registry Entry Examples
React Plugin (function-based)
A function-based plugin exports a factory function that returns a plugin object. The auto-injector calls it as FormDevtoolsPlugin() inside the plugins array:
// In packages/devtools/src/tabs/plugin-registry.ts
'@acme/react-analytics-devtools': {
packageName: '@acme/react-analytics-devtools',
title: 'Acme Analytics Devtools',
description: 'Inspect analytics events, funnels, and session data',
requires: {
packageName: '@acme/react-analytics',
minVersion: '2.0.0',
},
pluginImport: {
importName: 'AnalyticsDevtoolsPlugin',
type: 'function',
},
pluginId: 'acme-analytics',
docsUrl: 'https://acme.dev/analytics/devtools',
repoUrl: 'https://github.com/acme/analytics',
author: 'Acme Corp',
framework: 'react',
isNew: true,
tags: ['Analytics', 'Tracking'],
},When a user clicks "Install" in the marketplace, the Vite plugin:
- Runs the package manager to install
@acme/react-analytics-devtools - Finds the file containing
<TanStackDevtools /> - Adds
import { AnalyticsDevtoolsPlugin } from '@acme/react-analytics-devtools' - Injects
AnalyticsDevtoolsPlugin()into thepluginsarray
React Plugin (JSX-based)
A JSX-based plugin exports a React component. The auto-injector wraps it in { name, render: <Component /> }:
'@acme/react-state-devtools': {
packageName: '@acme/react-state-devtools',
title: 'Acme State Inspector',
description: 'Real-time state tree visualization',
requires: {
packageName: '@acme/react-state',
minVersion: '1.5.0',
},
pluginImport: {
importName: 'AcmeStateDevtoolsPanel',
type: 'jsx',
},
author: 'Acme Corp',
framework: 'react',
tags: ['State Management'],
},The injected code looks like:
import { AcmeStateDevtoolsPanel } from '@acme/react-state-devtools'
;<TanStackDevtools
plugins={[
{ name: 'Acme State Inspector', render: <AcmeStateDevtoolsPanel /> },
]}
/>Multi-Framework Submission (React + Solid)
When your devtools package supports multiple frameworks, add one entry per framework. Each entry is keyed by its own npm package name:
'@acme/react-analytics-devtools': {
packageName: '@acme/react-analytics-devtools',
title: 'Acme Analytics Devtools',
description: 'Inspect analytics events, funnels, and session data',
requires: {
packageName: '@acme/react-analytics',
minVersion: '2.0.0',
},
pluginImport: {
importName: 'AnalyticsDevtoolsPlugin',
type: 'function',
},
pluginId: 'acme-analytics',
author: 'Acme Corp',
framework: 'react',
isNew: true,
tags: ['Analytics', 'Tracking'],
},
'@acme/solid-analytics-devtools': {
packageName: '@acme/solid-analytics-devtools',
title: 'Acme Analytics Devtools',
description: 'Inspect analytics events, funnels, and session data',
requires: {
packageName: '@acme/solid-analytics',
minVersion: '2.0.0',
},
pluginImport: {
importName: 'AnalyticsDevtoolsPlugin',
type: 'function',
},
pluginId: 'acme-analytics',
author: 'Acme Corp',
framework: 'solid',
isNew: true,
tags: ['Analytics', 'Tracking'],
},The marketplace auto-detects the user's framework from their package.json dependencies and shows only matching entries. Users can still browse other frameworks via the filter controls.
How Auto-Install Works
The auto-install pipeline lives in packages/devtools-vite/src/inject-plugin.ts. Understanding it clarifies why pluginImport matters:
- Package installation -- The Vite plugin detects the project's package manager and runs the appropriate install command.
- File detection -- It scans project files for imports from
@tanstack/react-devtools,@tanstack/solid-devtools,@tanstack/vue-devtools, etc. - AST transformation -- It parses the file with oxc-parser, finds the
<TanStackDevtools />JSX element, and modifies thepluginsprop via MagicString. - Import insertion -- It adds
import { <importName> } from '<packageName>'after the last existing import. - Plugin injection -- Based on
pluginImport.type:
'function': AppendsImportName()directly to the plugins array'jsx': Appends{ name: '<title>', render: <ImportName /> }to the plugins array
If pluginImport is missing, step 3-5 are skipped entirely. The package gets installed but the user must manually wire it into the plugins prop.
PR Submission Process
- Publish your package to npm. The marketplace links to npm for installation; the package must be publicly available.
- Fork and clone the TanStack/devtools repository.
- Edit `packages/devtools/src/tabs/plugin-registry.ts`. Add your entry to the
PLUGIN_REGISTRYobject under theTHIRD-PARTY PLUGINScomment section:
// ========================================== // THIRD-PARTY PLUGINS - Examples // ========================================== // External contributors can add their plugins below!
- Open a PR against the
mainbranch. Title format:feat(marketplace): add <your-plugin-name>.
- The PR will be reviewed by TanStack maintainers. Common review feedback:
- Missing
pluginImport-- reviewers will ask you to add it - Missing
framework-- required for marketplace filtering - Missing
requires.minVersion-- avoids runtime errors for users on older versions - Incorrect
importName-- must match the exact named export from your package
Framework Detection
The marketplace determines the user's current framework by scanning their package.json dependencies for known framework packages:
| Framework | Detected packages | | --------- | -------------------- | | react | react, react-dom | | solid | solid-js | | vue | vue, @vue/core | | svelte | svelte | | angular | @angular/core |
Plugins with framework: 'other' are shown regardless of the detected framework.
Featured Plugins
The featured field is reserved for official TanStack partners and select library authors. Featured plugins appear in a dedicated section at the top of the marketplace with an animated border.
To request featured status, email <partners+devtools@tanstack.com>.
Do not set featured: true in your PR submission -- it will be rejected. The TanStack team sets this flag.
Plugin ID Matching
When the marketplace checks if a plugin is already active, it uses pluginId for matching. The matching logic in packages/devtools/src/tabs/marketplace/plugin-utils.ts does:
- If
pluginIdis set, checks whether any registered plugin's ID starts with or contains thepluginId(case-insensitive). - Otherwise falls back to matching on
packageNameand extracting keyword segments.
Set a custom pluginId when your plugin registers with an ID that differs from the default (lowercased package name with non-alphanumeric characters replaced by -). For example, @tanstack/react-form-devtools registers as tanstack-form-4 at runtime, so the registry entry uses pluginId: 'tanstack-form' to match it.
Common Mistakes
HIGH: Missing pluginImport metadata for auto-install
Without pluginImport.importName and pluginImport.type, the marketplace auto-install pipeline installs the npm package but cannot inject the plugin into the user's code. The user sees a successful install but the plugin tab never appears -- they must manually add the import and wire it into the plugins prop.
Wrong -- no pluginImport:
'@acme/react-analytics-devtools': {
packageName: '@acme/react-analytics-devtools',
title: 'Acme Analytics Devtools',
requires: {
packageName: '@acme/react-analytics',
minVersion: '2.0.0',
},
author: 'Acme Corp',
framework: 'react',
},Correct -- pluginImport provided:
'@acme/react-analytics-devtools': {
packageName: '@acme/react-analytics-devtools',
title: 'Acme Analytics Devtools',Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| LICENSE | 1.1 kB | de86d3f4c6d9 |
| SKILL.md | 14.8 kB | f0882eaf4daa |
| SKILVAULT_SOURCE.json | 1.3 kB | c0a34a0e265a |
| THIRD_PARTY_NOTICES.md | 2.1 kB | cf2e241dbf77 |
| references/INTENT-SKILL-MAP.md | 378 B | 6b323679c7a5 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 94e076216009 | 29 Nov 2026 |
Locking a skill to one version needs Pro.