Skip to content

Latest commit

 

History

History

README.md

Devonz Documentation

AI-powered local vibe coding platform for full-stack development — built with React Router v7 (Remix), React 19, and WebContainer API.


Quick Links

Document Description
Getting Started Setup, environment variables, run commands
Architecture System design, layers, data flow
Components Component hierarchy, patterns, conventions
State Management Stores, hooks, data flow patterns
API Routes All server endpoints documented
LLM Providers Provider system, adding new providers
Agent Mode Autonomous agent orchestration & tools
Styling Guidelines Dark theme, colors, CSS patterns
Deployment Vercel, Netlify, GitHub, GitLab integrations
Contributing Code style, testing, PR process

What's New

  • Error Classifier — Categorizes errors into 6 types (network, auth, validation, build, runtime, unknown) with 4 severity levels (fatal, error, warning, info); warning/info → toast, fatal/error → ChatAlert dialog where users click "Ask Devonz" to request a fix
  • Framer Motion Chat Animations — User messages slide in from the right, assistant messages from the left
  • Chat Naming via Artifact Titles — Chat names derived from artifact titles instead of raw user messages
  • Streaming Code Leak Prevention — Prevents raw code from leaking into chat during LLM streaming
  • Single WebContainer Enforcement — Guarantees only one WebContainer instance runs at a time
  • Port Escalation Prevention — Stops runaway port allocation in the dev preview
  • Improved System Prompts — Chain-of-thought reasoning, entry point file requirements, CSS variable guidance
  • Default Template: Vite + Shadcn — Astro only for explicit requests; Vite Shadcn is the default scaffold
  • MCP Auto-Approve — Per-server auto-approve toggle for trusted MCP servers
  • Formatted Tool Results — MCP tool results render as formatted markdown instead of raw JSON
  • Unified Mode Selector — Single Build/Plan/Discuss dropdown replaces separate toggles
  • Auto-Collapse Plan — Plan panel auto-collapses when all tasks reach 100%
  • Security HardeningwithSecurity() on all 42 API routes with input validation, rate limiting options, URL allowlisting
  • Z.ai Provider — Integration with 10 static GLM models optimized for coding tasks

Tech Stack at a Glance

Layer Technology
Framework React Router v7 (Remix) + React 19
Build Vite 5.4
Language TypeScript 5 (strict)
Styling UnoCSS + SCSS + Radix UI
State Nanostores
AI/LLM Vercel AI SDK (22 providers)
Editor CodeMirror 6
Terminal xterm.js 5.5
Runtime WebContainer API
Testing Vitest + Testing Library
Package Manager pnpm 9.14

Project Structure

├── app/
│   ├── components/       # React components (10 groups)
│   ├── lib/              # Core logic (stores, services, agent, LLM)
│   ├── routes/           # Remix routes (pages + 42 API routes)
│   ├── styles/           # Global SCSS + CSS
│   ├── types/            # Shared TypeScript types
│   ├── utils/            # Utility functions
│   ├── root.tsx          # App root layout
│   ├── entry.client.tsx  # Client entry
│   └── entry.server.tsx  # Server entry
├── docs/                 # This documentation
├── icons/                # Custom SVG icons (UnoCSS collection)
├── public/               # Static assets
├── scripts/              # Build/clean scripts
└── types/                # Global type declarations

Conventions

  • Path alias: ~/./app/ (enforced by ESLint — no ../ imports)
  • Client-only files: .client.tsx suffix for browser-only components
  • Scoped logging: createScopedLogger('Name') used throughout
  • Validation: Zod schemas for all API request bodies
  • Theming: CSS custom properties (--devonz-elements-*) + data-theme attribute