Skip to content
PluginStats

@21st-sdk/react weekly downloads statistics

By 21st-sdk (2 listings) · npm · AI SDKs

React components for 21st Agents chat UIs

View on npm Stale · Oct 17, 2026

@21st-sdk/react has 275 recorded weekly downloads on npm, a decrease of 33.9% over the past 30 days, ranking #1629 of 2,322 tracked listings.

Weekly downloads
275
Official API · Oct 17, 2026
7-day growth
-54.6%
-331 weekly downloads
30-day growth
-33.9%
-141 weekly downloads
90-day growth
-50.5%
-280 weekly downloads
Rank
#1629
Among tracked npm listings

About @21st-sdk/react

@21st-sdk/react

React components for building AI agent chat UIs powered by 21st Agents. Drop-in chat interface with tool renderers, theming, and full customization.

Built on Vercel AI SDK v5 — no custom hooks or state management. Just components.

Install

Quick Start

That's it. You get a full chat UI with message rendering, tool visualization, auto-scroll, and streaming — all wired to your deployed agent.

Customization

Four levels of customization, from simple to full control:

  1. Theme tokens

Apply a theme JSON from the Playground:

  1. Class overrides

Override styles per element:

  1. Slot components

Swap sub-components entirely:

  1. Individual components

Build from scratch with individual imports:

CSS

Import the stylesheet once in your app:

No Tailwind peer dependency required — CSS is pre-compiled. All elements have stable an-* class names for custom styling:

API Reference

createAgentChat(options)

Creates an AI SDK Chat instance pointed at the relay API.

Returns a standard Chat — pass it to useChat({ chat }).

Drop-in chat component.

| Prop | Type | Description |

| messages | UIMessage[] | From useChat() | | onSend | (msg) => void | Send handler | | status | ChatStatus | "ready" | "submitted" | "streaming" | "error" | | onStop | () => void | Stop generation | | error | Error | Error to display | | theme | ChatTheme | Theme from playground | | colorMode | "light" | "dark" | "auto" | Color mode | | classNames | Partial | Per-element CSS overrides | | slots | Partial | Component swapping | | className | string | Root element class | | style | CSSProperties | Root element style | | modelSelector | { models, activeModelId?, onModelChange? } | Model picker (for custom backends) | | attachments | { onAttach?, images?, files? } | File attachment support |

applyTheme(element, theme, colorMode?)

Manually inject CSS variables from a playground theme JSON.

Components

| Component | Description |

| MessageList | Auto-scrolling message container with grouping | | UserMessage | User message bubble | | AssistantMessage | Assistant response with parts routing | | StreamingMarkdown | Markdown renderer with syntax highlighting | | InputBar | Text input with send/stop buttons | | MessageActions | Copy button | | ToolRenderer | Routes tool parts to the correct component |

Tool Components

| Component | Renders |

| BashTool | Terminal commands with output | | EditTool | File edits with diff display | | WriteTool | File creation | | SearchTool | Web search results | | TodoTool | Task checklists | | PlanTool | Step-by-step plans | | TaskTool | Sub-agent tasks | | McpTool | MCP protocol calls | | ThinkingTool | Reasoning/thinking indicator | | GenericTool | Fallback for unknown tools |

Theme Type

Model Selection

The SDK exports pre-defined model constants for convenience:

Note: When using createAgentChat() with the relay, the model is set server-side in the agent config. The modelSelector prop is for building UIs with custom backends.

License

MIT

Description from the npm listing.

  • react
  • ai
  • agent
  • chat
  • ai-sdk
  • 21st
  • 21st.dev
  • components
  • ui

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

@21st-sdk/react weekly downloads on npm, last 90 days: 275 weekly downloads as of Oct 17, 2026, -50.5% over 90 days.@21st-sdk/reactWeekly downloads on npm · Last 90 days275downloads / week-50.5% over 90 days02004006008001KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
@21st-sdk/react weekly downloads on npm, last 90 days: 275 weekly downloads as of Oct 17, 2026, -50.5% over 90 days.

7/30/90-day growth

@21st-sdk/react weekly downloads growth on npm: -54.6% over 7 days, -33.9% over 30 days, -50.5% over 90 days.@21st-sdk/reactWeekly downloads growth on npm275downloads / week now7-day growth-331 weekly downloads-54.6%30-day growth-141 weekly downloads-33.9%90-day growth-280 weekly downloads-50.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@21st-sdk/react weekly downloads growth on npm: -54.6% over 7 days, -33.9% over 30 days, -50.5% over 90 days.

Ranking history

@21st-sdk/react npm ranking history: currently #1629 (by weekly downloads).@21st-sdk/reactnpm ranking · by weekly downloads · Last 90 days#1629current rank#1540#1560#1580#1600#1620#1640Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
@21st-sdk/react npm ranking history: currently #1629 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 82, #13 (overall #1,633)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 11, #4 (overall #204)
AI SDKs: 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 (121)
Recent weekly downloads observations for @21st-sdk/react
Date (UTC)Weekly downloadsChange vs. previous
275-38
313+48
265-121
386-82
4680
468-43
511-95
606-26
632+1
631-89
720+22
698-49
747+78
669—

Similar npm AI SDKs plugins

All 20 @21st-sdk/react 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/@21st-sdk/react. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.