stitch-sdk  by google-labs-code

Generate dynamic UI screens from natural language

Created 4 months ago
1,428 stars

Top 28.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

The Stitch SDK empowers developers and AI agents to programmatically generate UI screens from text prompts, extracting HTML and screenshots. It streamlines UI prototyping and integration into automated workflows, offering a novel approach to dynamic UI assembly.

How It Works

Stitch leverages a backend MCP server to translate natural language descriptions into functional UI designs. Its core advantage lies in its SDK-first approach, providing direct programmatic access to UI generation, editing, and variant creation. The deep integration with AI SDKs, like Vercel's, enables autonomous agents to orchestrate complex UI tasks, bridging the gap between intent and implementation.

Quick Start & Requirements

  • Installation: npm install @google/stitch-sdk.
  • Prerequisites: Requires a STITCH_API_KEY environment variable or explicit OAuth credentials (STITCH_ACCESS_TOKEN, GOOGLE_CLOUD_PROJECT). A Node.js environment is necessary.
  • No specific hardware, GPU, or CUDA requirements are detailed.

Highlighted Details

  • Programmatic UI Generation: Creates UI screens directly from text prompts.
  • Asset Extraction: Provides downloadable URLs for generated HTML and screenshots.
  • AI Agent Integration: Designed for seamless use with AI SDKs, enabling autonomous tool calling for UI tasks.
  • Iterative Design: Supports editing existing screens and generating multiple design variants based on specified aspects (layout, color, text, etc.).

Maintenance & Community

This project is explicitly designated as "not an officially supported Google product" and is ineligible for the Google Open Source Software Vulnerability Rewards Program. The README provides no information regarding community channels, active contributors, sponsorships, or a public roadmap.

Licensing & Compatibility

The project is licensed under the Apache 2.0 license, which is permissive for commercial use and integration into closed-source applications.

Limitations & Caveats

As an unofficial Google project, it lacks formal support and vulnerability rewards. Authentication is mandatory via API key or OAuth. The README does not specify limitations regarding the fidelity, complexity, or supported UI frameworks of the generated screens.

Health Check
Last Commit

21 hours ago

Responsiveness

Inactive

Pull Requests (30d)
66
Issues (30d)
217
Star History
1,435 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.