Overview
When you create a new project withpnpm dlx sunpeak new, the sunpeak Starter Kit gives you a complete project scaffold with everything needed for ChatGPT widget development.
Pre-Configured Tools
Vite
Fast build tool with hot-reload (HMR) for instant development feedback. Configured viavite files.
Tailwind CSS 4
Utility-first CSS framework for rapid UI development. Configured via Vite plugin & CSS import.TypeScript
Type safety and better developer experience. Configured viatsconfig files.
Vitest (Unit Tests)
Vite-native testing framework. Configured viavitest.config.ts.
npm Scripts
Build optimized production bundle.
Start development server with ChatGPT simulator at
http://localhost:6767.Start MCP server for ChatGPT testing. Requires
pnpm build to be run first.Run linter (ESLint & Prettier).
Check TypeScript types without building.
Run unit tests.
Run and validate all of the above commands.
Key Files
src/index.chatgpt.tsx- Production build root. Entrypoint forpnpm build.dev/main.tsx- ChatGPT simulator setup. Entrypoint forpnpm dev.mcp/server.ts- Simple MCP server for live ChatGPT testing with dummy data. Entrypoint forpnpm mcp.src/components/apps/App.tsx- Your main MCP App UI that will ultimately be shipped.src/components/apps/active-app.ts- Where you can change the App to be built or served on the MCP server.