vibesdk
CLAUDE.md5.4k starsChanged 4 months agoMITView on GitHub
VibeSDK is an agentic full-stack application builder on Cloudflare. Tech Stack: - Frontend: React 19, TypeScript, Vite, TailwindCSS, React Router v7 - Backend: Cloudflare Workers, Durable Objects, Hono, D1, R2, and KV - Agent: Cloudflare Think with AI Gateway model routing - Workspace: SpaceDO Durable Objects - Version history: Cloudflare Artifacts - Preview runtime: Worker Loader bindings and Dynamic Workers - Generated app data: Durable Object Facets with isolated SQLite - WebSocket: PartySocket for real-time communication Project Structure: - /src…
Trending
Quiet since September.about the whole repository
Who's talking about cloudflare/vibesdk
- A Hacker News story“VibeSDK: Open-source vibe coding platform”Hacker News · Sep 23, 2025 · 3 points
- A Hacker News story“VibeSDK/Cloudflare”Hacker News · Nov 19, 2025 · 2 points
- @u11g.com“Build your own vibe-coding platform on Cloudflare's stack - open source and powerful! …”Bluesky · Dec 20, 2025 · 1 likes
- A Hacker News story“Zero Lines of code. 1 AI prompt. 1 deployed website”Hacker News · Dec 9, 2025 · 1 points
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe …”Bluesky · Dec 8, 2025 · 1 likes
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Hacker News and Bluesky (16 times).
On GitHub · 8
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026wiki: bulk update 2026-09-26 — wikicommit/ai-driven-dev-wiki0 reactions
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/frontend-design-landing-page - frontend-design-landing-page — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/frontend-design - frontend-design — ProSkillsMD/proskills0 reactions · 1 comment
3 more on GitHub
- Sep 26, 2026[Candidate] cloudflare/vibesdk/worker/agents/think/skills/app-file-structure - cloudflare-bundler-apps — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 12, 2026Architecture review: Cloudflare first-party VibeSDK and Workers for Platforms patterns — Midtown-Technology-Group/Wrangnarok0 reactions · 2 comments
- Sep 12, 2026Study Cloudflare-native FOSS platforms for reusable architecture and cost patterns — Midtown-Technology-Group/Wrangnarok0 reactions · 1 comment
On Hacker News · 5
- Sep 23, 2025VibeSDK: Open-source vibe coding platform3 points
- Nov 19, 2025VibeSDK/Cloudflare2 points
- Dec 9, 2025Zero Lines of code. 1 AI prompt. 1 deployed website1 point
- Nov 20, 2025Cloudflare Vibe SDK1 point
- Sep 30, 2025Vibesdk: Cloudflare's open source AI-coding app toolkit1 point
On Bluesky · 3
- Dec 20, 2025Build your own vibe-coding platform on Cloudflare's stack - open source and powerful! https://github.com/cloudflare/vibesdk — @u11g.com1 likes and repost
- Dec 8, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe coding platform that helps you… — @github-trending-js.bsky.social1 likes and repost
- Dec 8, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 cloudflare / vibesdk ⭐ 3,516 (+149) 🗒 TypeScript An open-source vibe coding platform that helps you… — @github-trending.bsky.social1 likes and repost
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cloudflare-bundler-appsSkill
- frontend-design-landing-pageSkill
- frontend-design-saasSkill
- frontend-designSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
23 rules. About 0 are common, 15 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Do NOT use emojis in code reviews, changelogs, or any generated content.
- Distinctive: line 9
Use clear technical language
- Very specific: line 67
Add type to worker/api/websocketTypes.ts
- Very specific: line 72
Create the tool under worker/agents/think/
- Very specific: line 73
Add required SpaceDO RPC typing to space-workspace-ops.ts
- Distinctive: line 75
Update the relevant prompt or skill
- Very specific: line 81
Create service in worker/database/services/
- Very specific: line 82
Create controller in worker/api/controllers/
- Very specific: line 83
Add route in worker/api/routes/
- Very specific: line 118
NEVER use any type
- Distinctive: line 120
Search codebase for existing types before creating new ones
- Distinctive: line 123
Search for similar functionality before implementing
- Distinctive: line 125
Never copy-paste code - refactor into shared functions
- Distinctive: line 137
No overly verbose AI-like comments
- Very specific: line 147
Use any type (find or create proper types)
- Distinctive: line 149
Use Vite env variables in Worker code
- Distinctive: line 151
Create new implementations without searching for existing ones
- Distinctive: line 152
Use emojis in code or comments
- Distinctive: line 153
Write verbose AI-like comments
- Distinctive: line 156
Search codebase thoroughly before creating new code
- Distinctive: line 157
Follow existing patterns consistently
- Distinctive: line 158
Keep comments concise and purposeful
- Distinctive: line 160
Test thoroughly before submitting
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code when working with code in this repository.
Communication Style
- Be professional, concise, and direct
- Do NOT use emojis in code reviews, changelogs, or any generated content. You may use professional visual indicators or favor markdown formatting over emojis.
- Focus on substance over style
- Use clear technical language
Project Overview
VibeSDK is an agentic full-stack application builder on Cloudflare.
Tech Stack:
- Frontend: React 19, TypeScript, Vite, TailwindCSS, React Router v7
- Backend: Cloudflare Workers, Durable Objects, Hono, D1, R2, and KV
- Agent: Cloudflare Think with AI Gateway model routing
- Workspace: SpaceDO Durable Objects
- Version history: Cloudflare Artifacts
- Preview runtime: Worker Loader bindings and Dynamic Workers
- Generated app data: Durable Object Facets with isolated SQLite
- WebSocket: PartySocket for real-time communication
Project Structure:
/src- React frontend, API types, and API client/worker/agents/think- ThinkAgent, prompts, skills, workspace adapter, and tools/worker/agents/core/behaviors/think.ts- Think host orchestration/worker/api- Routes, controllers, handlers, and WebSocket types/worker/database- D1 schema and services/space- SpaceDO, Artifacts synchronization, preview bundling, and App Facets/sdk- TypeScript client SDK/migrations- D1 migrations/scripts- Setup and deployment utilities
Key Architectural Patterns
ThinkAgent:
- One Agent backed by a Durable Object per app session
- Owns conversation, context selection, skills, streaming, tools, and step limits
- Uses explicit SpaceDO-backed tools; workspace bash is disabled
Workspace and Versioning:
- SpaceDO owns the isolated live workspace and files
- Cloudflare Artifacts owns durable commits, branches, history, and restore points
commitsaves without deploying;deploy_spacecommits and rebuilds the preview- Rollback applies a selected tree, creates a new commit, and redeploys
Preview Runtime:
@cloudflare/worker-bundlerbuilds committed project files- Worker Loader loads bundled modules as a Dynamic Worker
- Generated
Appclasses run as Durable Object Facets with isolated SQLite
WebSocket Communication:
- PartySocket carries realtime agent output, tools, files, and deployment state
- Session state is restored on reconnect
Common Development Tasks
Change LLM Model for Operation:
Edit /worker/agents/inferutils/config.ts → AGENT_CONFIG object
Modify Think Agent Behavior:
Edit worker/agents/think/ThinkAgent.ts, the host behavior in worker/agents/core/behaviors/think.ts, and the relevant prompt or skill.
Add New WebSocket Message:
- Add type to
worker/api/websocketTypes.ts - Handle in
worker/agents/core/websocket.ts - Handle in
src/routes/chat/utils/handle-websocket-message.ts
Add New Think Tool:
- Create the tool under
worker/agents/think/ - Add required SpaceDO RPC typing to
space-workspace-ops.ts - Register it in
ThinkAgent.getTools() - Update the relevant prompt or skill
- Add focused tests
Add API Endpoint:
- Define types in
src/api-types.ts - Add to
src/lib/api-client.ts - Create service in
worker/database/services/ - Create controller in
worker/api/controllers/ - Add route in
worker/api/routes/ - Register in
worker/api/routes/index.ts
Important Context
User Secrets Store (Durable Object):
- Location:
/worker/services/secrets/ - Purpose: Encrypted storage for user API keys with key rotation
- Architecture: One DO per user, XChaCha20-Poly1305 encryption, SQLite backend
- Key derivation: MEK → UMK → DEK (hierarchical PBKDF2)
- Features: Key rotation, soft deletion, access tracking, expiration support
- RPC Methods: Return
null/booleanon error, never throw exceptions - Testing: 90 comprehensive tests in
/test/worker/services/secrets/
Workspace and Git:
- SpaceDO provides workspace and file operations
- Cloudflare Artifacts stores durable git history
- Artifacts synchronization lives in
space/src/space/artifacts-sync.ts - Rollback preserves history by creating a new commit
Abort Controller Pattern:
getOrCreateAbortController()reuses controller for nested operations- Cleared after top-level operations complete
- Shared by parent and nested tool calls
- User abort cancels entire operation tree
Message Deduplication:
- Tool execution causes duplicate AI messages
- Backend skips redundant LLM calls (empty tool results)
- Frontend utilities deduplicate live and restored messages
- System prompt teaches LLM not to repeat
Core Rules (Non-Negotiable)
1. Strict Type Safety
- NEVER use
anytype - Frontend imports types from
@/api-types(single source of truth) - Search codebase for existing types before creating new ones
2. DRY Principle
- Search for similar functionality before implementing
- Extract reusable utilities, hooks, and components
- Never copy-paste code - refactor into shared functions
3. Follow Existing Patterns
- Frontend APIs: All in
/src/lib/api-client.ts - Backend Routes: Controllers in
worker/api/controllers/, routes inworker/api/routes/ - Database Services: In
worker/database/services/ - Types: Shared in
shared/types/, API insrc/api-types.ts
4. Code Quality
- Production-ready code only - no TODOs or placeholders
- No hacky workarounds
- Comments explain purpose, not narration
- No overly verbose AI-like comments
5. File Naming
- React Components: PascalCase.tsx
- Utilities/Hooks: kebab-case.ts
- Backend Services: PascalCase.ts
Common Pitfalls
Don't:
- Use
anytype (find or create proper types) - Copy-paste code (extract to utilities)
- Use Vite env variables in Worker code
- Forget to update types when changing APIs
- Create new implementations without searching for existing ones
- Use emojis in code or comments
- Write verbose AI-like comments
Do:
- Search codebase thoroughly before creating new code
- Follow existing patterns consistently
- Keep comments concise and purposeful
- Write production-ready code
- Test thoroughly before submitting
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

