Skip to content

Add implementation plan for bunbox app builder#3

Closed
demattosanthony wants to merge 6 commits into
mainfrom
claude/add-bunbox-app-builder-cxMIT
Closed

Add implementation plan for bunbox app builder#3
demattosanthony wants to merge 6 commits into
mainfrom
claude/add-bunbox-app-builder-cxMIT

Conversation

@demattosanthony
Copy link
Copy Markdown
Owner

Create comprehensive plan for v0-like agent application that allows
users to create bunbox apps through natural language chat. The plan
covers architecture, database schema, API design, agent integration
with Anthropic Agent SDK, and implementation phases.

claude and others added 6 commits December 14, 2025 18:08
Create comprehensive plan for v0-like agent application that allows
users to create bunbox apps through natural language chat. The plan
covers architecture, database schema, API design, agent integration
with Anthropic Agent SDK, and implementation phases.
- Create project structure with app/, lib/, public/ directories
- Add package.json with dependencies (bunbox, claude-code SDK, zod)
- Set up bunbox.config.ts on port 3001
- Add root layout and comprehensive CSS styles
- Implement SQLite database layer with Bun:
  - Schema for projects, sessions, messages tables
  - CRUD operations for all entities
  - Session-project linking
Features:
- Chat interface with streaming responses (main landing page)
- AI agent with comprehensive bunbox knowledge in system prompt
- File system tools for creating/editing bunbox apps
- SQLite database for sessions, messages, and projects
- Project management pages (list, view, delete)
- SSE streaming for real-time agent responses

API endpoints:
- POST /api/chat - Stream chat with agent
- GET/POST /api/sessions - Session management
- GET/POST/PUT/DELETE /api/projects - Project CRUD

Architecture:
- lib/agent/ - Anthropic API integration and bunbox system prompt
- lib/db/ - Bun SQLite database layer
- app/components/ - React chat interface
- app/api/ - Backend API routes
- Rename styles.css to index.css
- Add Tailwind CSS 4 with bun-plugin-tailwind
- Add shadcn/ui components (Button, Card, ScrollArea)
- Create clean Apple-inspired minimalist design
- Use Inter font and OKLCH color variables
- Add lucide-react icons throughout
- Update all pages with consistent header and styling
- Add proper dark mode support via CSS variables

The design focuses on:
- Clean typography with proper tracking
- Subtle borders and hover states
- Consistent spacing and rounded corners
- Smooth animations for feedback
- Update tsconfig.json to match working examples
- Remove loader functions that import from bun:sqlite in pages
- Move data fetching to client-side via API calls
- Add /api/projects/:id/files endpoint for project file listing
- Create ProjectDetail client component for project page
- ProjectsList now fetches data from /api/projects on mount

This fixes the "Browser build cannot import Bun builtin" error
by ensuring database code only runs in API routes (server-only).
@demattosanthony demattosanthony deleted the claude/add-bunbox-app-builder-cxMIT branch December 15, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants