█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Skybridge

MCP Apps और ChatGPT Apps के लिए full-stack TypeScript और React framework

Generative UI SDKsओपन सोर्स
भाषा
TypeScript
लाइसेंस
MIT
$npx skybridge create
संक्षेप में

Skybridge क्या है?

Skybridge MCP Apps और ChatGPT Apps के लिए full-stack TypeScript और React framework. यह App UIs & Builders टूल्स की Generative UI SDKs श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: project scaffold करें.

सारांश

Skybridge MCP Apps बनाने के लिए एक full-stack TypeScript framework है — ऐसे interactive React views जो ChatGPT और Claude जैसे model hosts के अंदर render होते हैं और एक MCP server से जुड़े रहते हैं। आप server पर tools define करते हैं, किसी tool को एक view से bind करते हैं, और view को एक सामान्य React component की तरह लिखते हैं। Protocol, authentication और hosts के बीच के फ़र्क को framework संभालता है, इसलिए वही app Claude, ChatGPT, VS Code और MCP Apps सपोर्ट करने वाले दूसरे clients में चलता है।

इस प्रोजेक्ट का आधार यह है कि MCP Apps तीन-तरफ़ा सिस्टम होते हैं: डेटा app, user और model के बीच बहता है, और जब तक app उन्हें वापस sync नहीं करता, model न UI देख सकता है, न user के clicks। Skybridge इसी समस्या के इर्द-गिर्द बना है। किसी tool का output model, view या दोनों के लिए हो सकता है; `useViewState` ऐसा state रखता है जो model के साथ साझा होता है और remount के बाद भी बचा रहता है; और `data-llm` attribute view को यह मौका देता है कि वह स्क्रीन पर क्या है, यह model की अगली turn के लिए सादे शब्दों में बता सके।

Framework के चारों ओर एक development toolchain है: hot module reload वाला dev server; DevTools, जो host runtime को स्थानीय रूप से emulate करते हैं ताकि आप model के बिना tools call कर सकें और views render कर सकें; एक tunnel जो local server को ChatGPT या Claude के लिए उपलब्ध कराता है; tunnel URL पर एक hosted LLM playground; और Alpic Cloud के लिए एक deploy command (किसी भी Node.js-compatible platform पर self-hosting भी समर्थित है)। एक Skybridge skill coding agents को apps scaffold करने, मौजूदा MCP servers migrate करने और views जोड़ने देता है। यह MIT-licensed है और इसे Alpic team maintain करती है।

Flight Booking example view: a carousel of three Paris to Valencia return flights with prices, stops and Buy buttons
Flight Booking example: a search carousel with route details and pricing.
Ecommerce Carousel example view showing product cards with photos, names, prices and star ratings
Ecommerce Carousel example: product cards with a persistent cart.
Capitals Explorer example view: an interactive map of Europe with a flag pin on each country
Capitals Explorer example: an interactive world map for exploring countries and capitals.

यह क्या करता है

DevTools preview mode rendering a Skybridge view inside a mock ChatGPT conversation shell, with controls to switch theme, device and client to Claude
Preview mode drops the real view into a mock ChatGPT or Claude conversation to check layout before connecting a host.Skybridge docs ↗
  • Hot module reload के साथ dev environment, एक local host emulator (DevTools) और एक tunnel जो local app को ChatGPT और Claude से जोड़ता है
  • एक बार लिखें, हर जगह चलाएं: Claude, ChatGPT और VS Code जैसे MCP clients के बीच implementation के फ़र्क को abstract करता है
  • End-to-end type safety, tRPC-style inference के साथ — `generateHelpers` server definition से `useToolInfo` और `useCallTool` को type करता है
  • Tool output, tool calls, view state, display mode और बहुत कुछ के लिए React Query-style hooks, साथ में `data-llm` जो स्क्रीन का वर्णन model को करता है
  • Agent-ready: एक installable skill, एक CLI, और DevTools actions जो WebMCP tools के रूप में उपलब्ध हैं, जिन्हें coding agent चला सकता है
  • E-commerce, travel, games और dashboards के लिए example apps, और Descope, Clerk, WorkOS AuthKit, Stytch, Auth0 और Authplane के लिए OAuth examples

शुरू करें

Skybridge के लिए Node 24 या उससे नया version चाहिए। एक project scaffold करें, dev server चलाएं, फिर tunnel के ज़रिए उसे किसी असली host से जोड़ें। Coding agents चाहें तो इसके बजाय `npx skills add alpic-ai/skybridge -s skybridge` से Skybridge skill इंस्टॉल कर सकते हैं।

Project scaffold करें

डिफ़ॉल्ट `demo` template में दो tools आते हैं (`start`, जो `onboarding` view mount करता है, और `get-fortune-cookie`)। Tools `src/server.ts` में रहते हैं और views `views` directory में। खाली project के लिए `blank` template चुनें, या `--example` से किसी repository example से शुरू करें।

bashbash
npx skybridge create
# or start from an example app
npx skybridge create my-app --example auth-descope

Dev server चलाएं

यह MCP server को `http://localhost:3000/mcp` पर और DevTools को `http://localhost:3000/` पर serve करता है। File save करने पर server और views अपने-आप reload हो जाते हैं।

bashbash
npm run dev
Skybridge DevTools with a tools sidebar and input form, the raw tool output JSON, the view state inspector, a rendered onboarding view with theme and device controls, and a log of callTool and setWidgetState calls
DevTools on localhost:3000: pick a tool, run it, and inspect its output, the view state and the rendered view side by side.Skybridge docs ↗

Tool define करें और उसे view से bind करें

Server पर Zod input schema और एक `view` component के साथ tools register करें; view tool का output एक hook से पढ़ता है।

tsts
// server.ts
import { Skybridge } from "skybridge/server";
import { z } from "zod";

export const app = new Skybridge({
  name: "my-app",
  version: "0.0.1",
  handler: (server) =>
    server.registerTool(
      {
        name: "greeting",
        description: "Greet someone by name.",
        inputSchema: { name: z.string() },
        view: { component: "greeting" },
      },
      async ({ name }) => {
        return { structuredContent: { message: `Hello, ${name}!` } };
      },
    ),
});

// views/greeting.tsx
import { useToolInfo } from "../helpers.js";

export default function Greeting() {
  const { output } = useToolInfo<"greeting">();
  return <h1>{output.message}</h1>;
}

Typed hooks generate करें

Server से `AppType = typeof app` export करें, फिर ऐसे hooks बनाएं जिनमें tool names autocomplete हों और जिनके inputs व outputs typed हों।

tsts
// helpers.ts
import type { AppType } from "./server";
import { generateHelpers } from "skybridge/web";

export const { useCallTool, useToolInfo } = generateHelpers<AppType>();

ChatGPT या Claude से जोड़ें, फिर deploy करें

`--tunnel` local server को एक public URL देता है, जिसे ChatGPT app या Claude connector के रूप में register किया जा सकता है; `/try` पर एक LLM playground भी है। `deploy` app को Alpic Cloud पर भेजता है और उसका public URL प्रिंट करता है।

bashbash
npm run dev -- --tunnel
npm run deploy

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • एक interactive app बनाएं — product carousel, booking flow, dashboard — जो एक ही codebase से ChatGPT और Claude conversations के अंदर render हो
  • मौजूदा MCP server में rich UI views जोड़ें, या coding agent से skill की मदद लेकर उसे Skybridge में migrate करवाएं
  • Hot reload और host emulator के साथ MCP App views को स्थानीय रूप से iterate करें, असली host में model को बार-बार prompt करने के बजाय
  • Shared view state के ज़रिए model को लगातार पता रखने दें कि user ने UI में क्या किया, जैसे cart या selection

How Skybridge compares

Skybridge alongside other open-source generative ui sdks tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CopilotKit★ 39.1kइन-ऐप AI copilots और agent-driven generative UI को React और उससे आगे तक जोड़ें
Vercel AI SDK★ 28.3kProvider-agnostic TypeScript टूलकिट, AI ऐप्स, agents और chat UI बनाने के लिए
OpenUI★ 22.8kसादे शब्दों में UI का वर्णन करें और LLM को उसे लाइव रेंडर होते देखें
AG-UI प्रोटोकॉल★ 22.5kAI एजेंट को यूज़र-फेसिंग ऐप्स से जोड़ने वाला एक ओपन, इवेंट-आधारित प्रोटोकॉल
json-render★ 19.9kमॉडल से कॉम्पोनेंट नहीं, JSON लिखवाएं, और उसे अपने ख़ुद के UI में रेंडर करें
A2UI★ 19.2kएजेंट्स के लिए एक ओपन प्रोटोकॉल, जिससे वे declarative UI भेजते हैं और ऐप्स उसे अपने native components से render करते हैं
OpenUI (Thesys)★ 16.1kमॉडल से बनी UI को स्ट्रीम करने के लिए एक खुला स्टैंडर्ड और React रनटाइम
Skybridge★ 2.2kMCP Apps और ChatGPT Apps के लिए full-stack TypeScript और React framework