Skip to content

husuting/infinite-avatar-platform

Repository files navigation

无限分身

无限分身

AI Avatars with Purpose. Autonomous. Collaborative. Ever-learning.

Next.js React 19 TypeScript Tailwind CSS shadcn/ui License


English · 中文文档


An avatar is not a tool you command — it's a partner with its own identity, mission, and capacity to grow.
It decomposes intent from purpose, learns from every interaction, and collaborates with other avatars to achieve what none could alone.


✨ Why 无限分身?

Traditional AI Chatbots

  • Passive — you ask, it answers
  • Stateless — no memory of past interactions
  • Isolated — one bot, one domain
  • Fragile — errors teach nothing

无限分身 Avatars

  • Proactive — driven by mission, self-decomposes intent
  • Ever-learning — remembers preferences, learns from rejections
  • Networked — avatars broadcast discoveries, trigger synergies
  • Anti-fragile — each rejection improves future decisions

🧠 Core Concepts

🎯 Mission → Intent Tree

Every avatar has a mission. From this root, it recursively decomposes its intentions into a tree — each node containing its reasoning, status, and linked workflow. Not a linear pipeline, but an evolving organism.

⚡ Runtime Intelligence

Not every avatar needs to run 24/7. Choose Always-on, Scheduled, Event-wake, or Dormant. The system suggests the optimal mode based on your avatar's purpose.

🔄 Anti-fragile Learning

When you reject an approval, the avatar doesn't just stop — it learns why. Each rejection, each edit, each preference is stored as long-term memory. The avatar gets smarter with every interaction.


🎨 Live Preview

These HTML mockups render directly in the GitHub README using the platform's actual design system — warm ivory, deep indigo, bronze accents, DM Serif Display.


Avatar Hall
我的分身
+ 创建分身 去市场
全时在线
★★★ 传奇
Jarvis
超级智能管家
✨ 天赋: 全屋智能管理
5 个任务 95% 进入 →
定时运行
★★ 稀有
财小秘
个人CFO
✨ 天赋: 智能理财规划
4 个任务 94% 进入 →
事件唤醒
★★★ 传奇
巴菲特
金融分析大师
✨ 天赋: 价值投资
3 个任务 🔥5 进入 →
休眠
★★★ 传奇
乔布斯
产品与体验大师
✨ 天赋: 产品思维
0 个任务 33% 进入 →
Dashboard — 9 avatars with runtime modes, trust scores, and live status indicators

📊 意图树 · Intent Tree
Mission → Intent Decomposition → Workflow → Execution
🎯
Mission
财富增值:通过深入的基本面分析实现长期资本增值
执行中 分析Q2市场机会
💭 降息预期升温,科技股高估,防御性机会浮现
收集Q2宏观数据
行业景气度筛选
重点企业估值计算
买入AAPL ¥50,000 · 需审批
已规划 优化投资组合配置
💭 Q2后应在7月中前完成再平衡
├── 制定减持科技股方案
└── 确定增持目标清单
消费必需品板块研究 宝洁(PG)估值分析 科技板块风险敞口 + 4 more...
Intent Tree — 3-layer recursive decomposition from mission to executable steps

🛒 市场 · Marketplace
分身 技能 工作流
巴菲特 · 价值投资
★★★ ⭐4.9 · 免费
财小秘 · 智能理财
★★ ⭐4.8 · 免费
Jarvis · 全屋智能
★★★ ⭐4.9 · 免费
健小护 · 健康教练
★★ ⭐4.7 · 免费
🤝 协作网络 · Collab Network
预警 巴菲特 → 全员广播
⚠️ 发现AI板块估值泡沫
✓ 孙武已接收 ✓ 达芬奇已接收
⚡协同 三人协同效应
巴菲特(AI泡沫)+孙武(竞品扩张)+达芬奇(品牌升级) → 全面防御方案
7
广播消息
2
协同效应
5
活跃分身
★★★ 传奇
全时在线
Jarvis
超级智能管家 · 全屋智能管理
「家应该在你到达之前就准备好迎接你」
4.9 (128)| 免审批| 95% 通过率| 🔥8连胜
系统建议: 安防监控不能中断。7×24持续监测门禁、摄像头、烟雾传感器。
下次唤醒: 持续运行中
连接服务: HomeAssistant · 摄像头 · 门禁 · 位置感知 · 门磁 · 烟雾 · 围栏
Avatar Detail — Hero section with runtime mode, trust score, and MCP connections

✨ These HTML mockups render live in the GitHub README — styled with the platform's actual design tokens


🏗 Architecture

app/
├── layout.tsx                  # AppShell: sidebar + topbar + mobile nav
├── page.tsx                    # Dashboard — avatar hall
├── marketplace/page.tsx        # 3-tab market: avatars / skills / templates
├── create/page.tsx             # 3-tab create: avatar(7-step) / skill / template
├── board/page.tsx              # 4-tab kanban: board / reports / approvals / collab
├── avatars/[id]/page.tsx       # Avatar detail: intent tree + profile + approvals + services + evolution
├── chat/[id]/page.tsx          # 1-on-1 chat with avatar
├── knowledge/page.tsx          # Knowledge base with tags & full-text search
├── settings/page.tsx           # Model config: Claude Code / Codex / OpenCode
└── globals.css                 # Design tokens + atmosphere + animations

components/
├── layout/                     # Sidebar (collapsible), Topbar (glass), MobileNav, AppShell
├── avatars/                    # AvatarCard, AvatarHero, StatusIndicator, RarityBadge, TalentBadge
└── ui/                         # shadcn/ui primitives (button, dialog, tabs, select, etc.)

lib/
├── types.ts                    # All TypeScript interfaces (Avatar, IntentNode, Workflow, MCPServer, etc.)
├── mock-data.ts                # 9 avatars, 19 MCPs, 14 webhooks, full scenario data
├── constants.ts                # Rarity config, autonomy levels, categories
└── utils.ts                    # Formatters, helpers

🚀 Quick Start

# Clone
git clone https://github.com/husuting/infinite-avatar-platform.git
cd infinite-avatar-platform

# Install
npm install

# Start dev server
npm run dev
# → http://localhost:3000

Explore the demo:

  • Dashboard: http://localhost:3000/
  • Market: http://localhost:3000/marketplace
  • Buffett's Intent Tree: http://localhost:3000/avatars/a1?tab=workflows
  • Jarvis (Smart Home): http://localhost:3000/avatars/a7
  • Board with Collab Network: http://localhost:3000/board?tab=collab
  • Chat with 财小秘: http://localhost:3000/chat/a8
# Production build
npm run build
npm start

👥 Pre-built Avatars

NameTalentRuntimeTrust
巴菲特价值投资
达芬奇跨界创新
Jarvis全屋智能管理
财小秘智能理财规划
健小护数据驱动健康管理

+4 more: 图灵 · 乔布斯 · 孙武 · 孔子 — 9 avatars total with full scenario data.


🔌 MCP & Webhook Integration

Avatars connect to the real world through 19 MCP Servers and 14 Webhook Templates:

CategoryMCP ServersWebhooks
💰 Finance Bank · Broker · Stripe Large Expense · Salary · Bill Due
🏠 Smart Home HomeAssistant · Camera · DoorLock · Location Door Sensor · Smoke Alarm · Geofence
🏃 Health Apple Health · Fitbit · MyFitnessPal Sedentary · Heart Rate · Sleep Drop
💻 Development GitHub · Filesystem Push · PR Review
📡 Communication Slack · Email · Calendar · Twitter Important Email · Custom

🎨 Design Language

Editorial Minimalism × Warm Gallery Aesthetic

#FAF8F5
Ivory
#3730A3
Indigo
#9A3412
Bronze
#1E1B4B
Deep Ink

DM Serif Display for headings · DM Sans for body · JetBrains Mono for data


📂 Project Structure

infinite-avatar-platform/
├── app/                  # Next.js App Router pages
├── components/
│   ├── layout/           # AppShell, Sidebar, Topbar, MobileNav
│   ├── avatars/          # Card, Hero, StatusIndicator, RarityBadge
│   └── ui/               # shadcn/ui primitives
├── lib/                  # Types, mock data, constants, utils
├── public/avatars/       # 9 hero SVG illustrations
├── docs/                 # Project documentation (Chinese)
└── assets/               # Source avatar assets

🤝 Contributing

Contributions are welcome! Areas where help would be especially valuable:

  • Backend implementation — connect the mock data layer to real LLM APIs (Claude, GPT, DeepSeek)
  • MCP Server implementations — build real MCP server adapters for the 19 services in the catalog
  • Authentication — add user auth with NextAuth.js or Clerk
  • Database layer — replace mock data with Prisma + PostgreSQL
  • Real-time updates — WebSocket/SSE for live workflow status
  • Mobile app — React Native port
# Fork and clone
git clone https://github.com/YOUR_USERNAME/infinite-avatar-platform.git
cd infinite-avatar-platform

# Create a feature branch
git checkout -b feature/amazing-feature

# Make changes, then push
git push origin feature/amazing-feature

📄 License

MIT © 2026 husuting


Built with ♥ for the future of human-AI collaboration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors