Chris Tate 5ccb109c08 use visual-json (#135) 4 luni în urmă
..
app a66aef17f9 stripe updates (#121) 4 luni în urmă
.env.example a66aef17f9 stripe updates (#121) 4 luni în urmă
README.md a66aef17f9 stripe updates (#121) 4 luni în urmă
next-env.d.ts 5ccb109c08 use visual-json (#135) 4 luni în urmă
next.config.ts a66aef17f9 stripe updates (#121) 4 luni în urmă
package.json ee28d548c1 use portless (#133) 4 luni în urmă
tsconfig.json a66aef17f9 stripe updates (#121) 4 luni în urmă

README.md

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.