mirror of
https://github.com/vercel-labs/json-render.git
synced 2026-10-21 06:30:33 +08:00
* stripe cleanup * full screen flag * fixes * stripe cleanup * refactor * fixes * progressive * fix data * fixes * fixes actions * fixes * fixes
527 B
527 B
Stripe App API
A lightweight Next.js server that provides the /api/generate endpoint for AI-powered UI generation in the Stripe App examples.
Setup
pnpm install
cp .env.example .env
# Set AI_GATEWAY_API_KEY
Running
pnpm dev
Runs on port 3001. The Stripe apps (drawer-app/ and fullpage-app/) expect this server to be running for AI generation features.
API
POST /api/generate
Accepts { prompt, systemPrompt } and returns a streamed text response with a json-render spec.