Skip to content
PluginStats

@ai-sdk-tools/artifacts weekly downloads statistics

By ai-sdk-tools (5 listings) · npm · AI SDKs

Advanced streaming interfaces for AI applications

View on npm Stale · Oct 17, 2026

@ai-sdk-tools/artifacts has 9,394 recorded weekly downloads on npm, a decrease of 60.9% over the past 30 days, ranking #926 of 2,256 tracked listings.

Weekly downloads
9,394
Official API · Oct 17, 2026
7-day growth
-67.4%
-19.5K weekly downloads
30-day growth
-60.9%
-14.6K weekly downloads
90-day growth
-51.7%
-10.1K weekly downloads
Rank
#926
Among tracked npm listings

About @ai-sdk-tools/artifacts

@ai-sdk-tools/artifacts

Advanced streaming interfaces for AI applications. Create structured, type-safe artifacts that stream real-time updates from AI tools to React components.

Features

• Type-Safe Streaming - Full TypeScript support with Zod schema validation • Real-time Updates - Stream partial updates with progress tracking • Clean API - Minimal boilerplate, maximum flexibility • State Management - Built on @ai-sdk-tools/store for efficient message handling • Performance Optimized - Efficient state management and updates

Installation

Why do you need both packages?

• @ai-sdk-tools/artifacts - Provides the artifact streaming and management APIs • @ai-sdk-tools/store - Required for message state management and React hooks

The artifacts package uses the store package's useChatMessages hook to efficiently extract and track artifact data from AI SDK message streams, ensuring optimal performance and avoiding unnecessary re-renders.

Setup

  1. Initialize Chat with Store

  2. Use Artifacts from Any Component

The useArtifact hook automatically connects to the global chat store to extract artifact data from message streams - no prop drilling needed!

Quick Start

  1. Define an Artifact

  2. Create a Tool with Context

  3. Set Up Route with Context

  4. Consume in React

API Reference

artifact(id, schema)

Creates an artifact definition with Zod schema validation.

useArtifact(artifact, callbacks?)

React hook for consuming a specific streaming artifact.

Returns: • data - Current artifact payload • status - Current status ('idle' | 'loading' | 'streaming' | 'complete' | 'error') • progress - Progress value (0-1) • error - Error message if failed • isActive - Whether artifact is currently processing • hasData - Whether artifact has any data

Callbacks: • onUpdate(data, prevData) - Called when data updates • onComplete(data) - Called when artifact completes • onError(error, data) - Called on error • onProgress(progress, data) - Called on progress updates • onStatusChange(status, prevStatus) - Called when status changes

useArtifacts(options?)

React hook for listening to all artifacts across all types. Perfect for implementing switch cases to render different artifact types.

Options: • onData(artifactType, data) - Callback fired when any artifact updates • storeId - Optional store ID (defaults to global store)

Returns: • byType - All artifacts grouped by type: Record • latest - Latest version of each artifact type: Record • artifacts - All artifacts in chronological order: ArtifactData[] • current - Most recent artifact across all types: ArtifactData | null

Example:

Advanced Usage

Combining Both Hooks

You can use both hooks together for different purposes:

Hook Selection Guide

Use useArtifact when: • You need to display/work with a specific artifact type • You want detailed status, progress, and error handling • You need type-safe access to the artifact's payload

Use useArtifacts when: • You want to render different artifact types with switch cases • You need to listen to all artifacts for logging/analytics • You want to show an overview of all available artifacts • You're building a generic artifact renderer

Examples

See the src/examples/ directory for complete examples including: • Burn rate analysis with progress tracking • React component integration • Route setup and tool implementation • Using useArtifacts for multi-type artifact rendering

Contributing

Contributions are welcome! See the contributing guide for details.

License

MIT

Description from the npm listing.

  • ai
  • artifacts
  • streaming
  • react
  • ai-sdk
  • typescript

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

@ai-sdk-tools/artifacts weekly downloads on npm, last 90 days: 9,394 weekly downloads as of Oct 17, 2026, -51.7% over 90 days.@ai-sdk-tools/artifactsWeekly downloads on npm · Last 90 days9,394downloads / week-51.7% over 90 days05K10K15K20K25K30K35K40KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
@ai-sdk-tools/artifacts weekly downloads on npm, last 90 days: 9,394 weekly downloads as of Oct 17, 2026, -51.7% over 90 days.

7/30/90-day growth

@ai-sdk-tools/artifacts weekly downloads growth on npm: -67.4% over 7 days, -60.9% over 30 days, -51.7% over 90 days.@ai-sdk-tools/artifactsWeekly downloads growth on npm9,394downloads / week now7-day growth-19,464 weekly downloads-67.4%30-day growth-14,613 weekly downloads-60.9%90-day growth-10,064 weekly downloads-51.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@ai-sdk-tools/artifacts weekly downloads growth on npm: -67.4% over 7 days, -60.9% over 30 days, -51.7% over 90 days.

Ranking history

@ai-sdk-tools/artifacts npm ranking history: currently #926 (by weekly downloads).@ai-sdk-tools/artifactsnpm ranking · by weekly downloads · Last 90 days#926current rank#922#923#924#925#926#927#928Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@ai-sdk-tools/artifacts npm ranking history: currently #926 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 47, #6 (overall #926)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs250 listings · 13 pages · page 3, #18 (overall #58)
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 @ai-sdk-tools/artifacts
Date (UTC)Weekly downloadsChange vs. previous
9,394-2.1K
11,488-313
11,801-6K
17,838-5.9K
23,7530
23,753-2.2K
25,985-2.9K
28,858+528
28,330-1.2K
29,482-1.9K
31,363+197
31,166-4.9K
36,095+1.2K
34,849—

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/@ai-sdk-tools/artifacts. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.