Skip to content
PluginStats

@google/stitch-sdk weekly downloads statistics

By google (26 listings) · npm · MCP servers

Generate UI screens from text prompts and extract their HTML and screenshots programmatically.

View on npm Fresh · Dec 6, 2026

@google/stitch-sdk has 37,785 recorded weekly downloads on npm, an increase of 2.4% over the past 30 days, ranking #865 of 3,247 tracked listings.

Weekly downloads
37,785
Official API · Dec 5, 2026
7-day growth
+11.8%
+4K weekly downloads
30-day growth
+2.4%
+901 weekly downloads
90-day growth
-8.8%
-3.6K weekly downloads
Rank
#865
Among tracked npm listings

About @google/stitch-sdk

@google/stitch-sdk

Generate UI screens from text prompts and extract their HTML and screenshots programmatically.

Quick Start

Set your API key and generate a screen:

import { stitch } from "@google/stitch-sdk";

// STITCH_API_KEY must be set in the environment
const project = await stitch.createProject("My App");
const screen = await project.generate("A login page with email and password fields");
const html = await screen.getHtml();
const imageUrl = await screen.getImage();

html is a download URL for the screen's HTML. imageUrl is a download URL for the screenshot.

Install

npm install @google/stitch-sdk

To use stitchTools() with the Vercel AI SDK, install ai as well:

npm install @google/stitch-sdk ai

Working with Projects and Screens

List existing projects
import { stitch } from "@google/stitch-sdk";

const projects = await stitch.projects();
for (const project of projects) {
  console.log(project.id, project.projectId);
  const screens = await project.screens();
  console.log(`  ${screens.length} screens`);
}
Reference a project by ID

If you already have a project ID, reference it directly:

const project = stitch.project("4044680601076201931");
// Call methods on it — each method fetches data as needed
const screens = await project.screens();
Edit a screen
const screen = await project.generate("A dashboard with charts");
const edited = await screen.edit("Make the background dark and add a sidebar");
const editedHtml = await edited.getHtml();
Generate variants
const variants = await screen.variants("Try different color schemes", {
  variantCount: 3,
  creativeRange: "EXPLORE",
  aspects: ["COLOR_SCHEME", "LAYOUT"],
});

for (const variant of variants) {
  console.log(variant.id, await variant.getHtml());
}

variantOptions fields:

FieldTypeDefaultDescription
variantCountnumber3Number of variants (1–5)
creativeRangestring"EXPLORE""REFINE", "EXPLORE", or "REIMAGINE"
aspectsstring[]all"LAYOUT", "COLOR_SCHEME", "IMAGES", "TEXT_FONT", "TEXT_CONTENT"

Tool Client (Agent Usage)

For agents and orchestration scripts that need direct MCP tool access:

import { StitchToolClient } from "@google/stitch-sdk";

const client = new StitchToolClient({ apiKey: "your-api-key" });

// List available tools
const { tools } = await client.listTools();
for (const tool of tools) {
  console.log(tool.name, tool.description);
}

// Call a tool directly — returns are now strongly typed!
import { CreateProjectResponse } from "@google/stitch-sdk";
const result = await client.callTool<CreateProjectResponse>("create_project", {
  title: "Agent Project",
});
console.log(result.project?.projectId);

await client.close();

The client auto-connects on the first callTool or listTools call. No explicit connect() needed. All tool responses and input parameters are strictly typed and exported from the SDK.

API Reference

Stitch

The root class. Manages projects.

MethodParametersReturnsDescription
createProject(title)title: stringPromise<Project>Create a new project
projects()—Promise<Project[]>List all accessible projects
project(id)id: stringProjectReference a project by ID (no API call)
Project

A Stitch project containing screens.

PropertyTypeDescription
idstringAlias for projectId
projectIdstringBare project ID (no projects/ prefix)
MethodParametersReturnsDescription
generate(prompt, deviceType?)prompt: string, deviceType?: DeviceTypePromise<Screen>Generate a screen from a text prompt
screens()—Promise<Screen[]>List all screens in the project
getScreen(screenId)screenId: stringPromise<Screen>Retrieve a specific screen by ID

DeviceType: "MOBILE" | "DESKTOP" | "TABLET" | "AGNOSTIC"

Screen

A generated UI screen. Provides access to HTML and screenshots.

PropertyTypeDescription
idstringAlias for screenId
screenIdstringBare screen ID
projectIdstringParent project ID
MethodParametersReturnsDescription
edit(prompt, deviceType?, modelId?)prompt: stringPromise<Screen>Edit the screen with a text prompt
variants(prompt, variantOptions, deviceType?, modelId?)prompt: string, variantOptions: objectPromise<Screen[]>Generate design variants
getHtml()—Promise<string>Get the screen's HTML download URL
getImage()—Promise<string>Get the screen's screenshot download URL

getHtml() and getImage() use cached data from the generation response when available. If the screen was loaded from screens() or getScreen(), they call the get_screen API automatically.

modelId: "GEMINI_3_PRO" | "GEMINI_3_FLASH"

StitchToolClient

Low-level authenticated pipe to the Stitch MCP server. Use this when you need direct tool access (e.g., in an AI agent).

import { StitchToolClient, GetScreenResponse } from "@google/stitch-sdk";

const client = new StitchToolClient({ apiKey: "..." });
const result = await client.callTool<GetScreenResponse>("get_screen", { projectId: "...", screenId: "..." });
await client.close();
MethodParametersReturnsDescription
callTool<T>(name, args)name: string, args: Record<string, any>Promise<T>Call an MCP tool
listTools()—Promise<{ tools }>List available tools
connect()—Promise<void>Explicitly connect (auto-called by callTool)
close()—Promise<void>Close the connection
StitchProxy…

Description from the npm listing.

  • stitch
  • mcp
  • ui
  • generative-ai
  • google

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

@google/stitch-sdk weekly downloads on npm, last 90 days: 37,785 weekly downloads as of Dec 5, 2026, -8.8% over 90 days.@google/stitch-sdkWeekly downloads on npm · Last 90 days37,785downloads / week-8.8% over 90 days010K20K30K40K50KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@google/stitch-sdk weekly downloads on npm, last 90 days: 37,785 weekly downloads as of Dec 5, 2026, -8.8% over 90 days.

7/30/90-day growth

@google/stitch-sdk weekly downloads growth on npm: +11.8% over 7 days, +2.4% over 30 days, -8.8% over 90 days.@google/stitch-sdkWeekly downloads growth on npm37,785downloads / week now7-day growth+4,002 weekly downloads+11.8%30-day growth+901 weekly downloads+2.4%90-day growth-3,648 weekly downloads-8.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@google/stitch-sdk weekly downloads growth on npm: +11.8% over 7 days, +2.4% over 30 days, -8.8% over 90 days.

Ranking history

@google/stitch-sdk npm ranking history: currently #865 (by weekly downloads).@google/stitch-sdknpm ranking · by weekly downloads · Last 90 days#865current rank#200#300#400#500#600#700#800#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@google/stitch-sdk npm ranking history: currently #865 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 44, #5 (overall #865)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 7, #12 (overall #132)
MCP servers: 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 @google/stitch-sdk
Date (UTC)Weekly downloadsChange vs. previous
37,785-4.1K
41,892+1.9K
39,975+1.9K
38,068+1.2K
36,886+2.7K
34,211+17
34,194+411
33,783+681
33,102-80
33,182+141
33,041+355
32,686-1K
33,715-179
33,894—

Similar npm MCP servers plugins

All 20 @google/stitch-sdk 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/@google/stitch-sdk. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.