Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions mini-muse/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Anthropic API Configuration
# Option 1: Use API Key (direct Anthropic API)
ANTHROPIC_API_KEY=sk-ant-your-api-key-here

# Option 2: Use custom proxy endpoint
# ANTHROPIC_BASE_URL=https://your-proxy-endpoint.com/anthropic
# ANTHROPIC_AUTH_TOKEN=your-auth-token-here
20 changes: 20 additions & 0 deletions mini-muse/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Mini-Muse 项目规范

## 文档同步要求

每次通过 Claude Code 修改代码实现后,**必须**检查并同步更新 `docs/design.md` 设计文档:

1. **新增功能**:在设计文档中补充对应的模块描述、数据流、API 接口
2. **架构变更**:更新架构图(使用 Mermaid 语法)和模块关系
3. **接口变更**:更新 API 路由表、请求/响应格式
4. **删除功能**:从文档中移除对应描述,避免文档与代码不一致

设计文档 `docs/design.md` 应包含:
- 项目概述与核心功能
- 系统架构图(Mermaid)
- 技术栈说明
- 后端模块划分与职责
- 前端页面与组件结构
- API 接口定义
- 数据流与核心流程(SSE、AI Agent Loop 等)
- 关键设计决策及原因
62 changes: 62 additions & 0 deletions mini-muse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Mini-Muse

AI-powered web application generator. Describe what you want, and Mini-Muse uses Claude as an AI agent to generate a complete React + Tailwind project.

## Features

- Natural language to web app generation
- Real-time progress streaming via SSE
- AI agent loop with tool use (analyze, plan, generate, validate)
- Live preview and file download

## Tech Stack

- **Backend**: Egg.js 3 + TypeScript
- **Frontend**: React 18 + Vite + Tailwind CSS
- **AI**: Anthropic Claude API (tool use)

## Quick Start

### Prerequisites

- Node.js >= 18
- npm or other package manager

### 1. Install dependencies

```bash
# Backend
npm install

# Frontend
cd frontend && npm install && cd ..
```

### 2. Configure environment

```bash
cp .env.example .env
# Edit .env with your Anthropic API key
```

### 3. Build frontend

```bash
cd frontend && npm run build && cd ..
```

### 4. Start

```bash
# Development
npm run dev

# Production
npm run build && npm start
```

The app will be available at http://127.0.0.1:7001

## Documentation

See [docs/design.md](docs/design.md) for detailed architecture and design documentation.
Loading