
OpenAI Apps SDK Cloudflare Template
Supports UIby toolbase-ai
Rapidly build OpenAI Apps using Vite, React, and Cloudflare Workers with automated resource discovery.
What it does
This template provides a streamlined architecture for building interactive OpenAI Apps. Instead of a heavy SPA, it treats each resource as an independent, minimal HTML page, allowing for lightweight, focused UI components rendered directly within the AI interface.
Key features
- Automatic Route Discovery: A custom Vite plugin automatically finds all
*.htmlfiles insrc/app/routes/and registers them as resources. - Content Hashing: Built-in cache-busting via content hashing of the final HTML files.
- Cloudflare Workers Integration: Seamless deployment to Cloudflare Workers for high-performance, edge-based serving.
- Dynamic Build Manifest: Generates a typed manifest to simplify the creation of tools and resources within your MCP server.
Installation
- Cloudflare Workers: Deploy via Wrangler using
pnpm build-deploy. - Configuration: Set
WORKER_DOMAIN_BASEandWIDGET_DOMAINin your.envor Cloudflare environment variables.
Supported hosts
- Claude
- ChatGPT
Quick install
pnpm install && pnpm build-deployInformation
- Pricing
- free
- Published
- 4/27/2026
- stars






