# amiba
**Repository Path**: belowthetree/amiba
## Basic Information
- **Project Name**: amiba
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-07-05
- **Last Updated**: 2026-09-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Amiba (变形虫)
AI-powered cross-platform instant-app platform. Describe your needs in natural language — AI generates mini-apps that run instantly in iframe sandboxes.
中文
## Screenshots
 |
 |
 |
 |
| AI Chat |
Services |
Service Runtime |
Settings |
## Tech Stack
Vue 3 + TypeScript + Vite + Tauri 2 (Windows / macOS / Linux / Android)
## Quick Start
```bash
npm install
npm run dev # Dev → http://localhost:8484
npm run build # Production build
cargo tauri dev # Tauri desktop (dev)
cargo tauri build # Tauri desktop (package EXE/DMG/deb)
```
## Core Features
### AI Chat
- OpenAI-compatible multi-turn streaming chat (DeepSeek / Qwen / GLM etc.)
- **Memory System**: AI auto-saves user preferences & key info to MEMORY.md / USER.md
- **Personality System**: first-launch onboarding creates AI persona; adjustable via `soul_save` tool
- **Multi-Session**: tap › next to the input bar to open the action panel, 🗂️ session list to switch history; each session stored independently
- **Requirement Tracking**: AI records service feature requests & optimization notes
### UI & Interaction
- **No top bar**: swipe left/right to switch pages (iPhone-style follow-finger gesture), or tap the subtle glass edge arrows
- **Jade glass style**: jade-green primary + translucent glass surfaces + global glow background with light streaks
- **Floating input bar**: vertically centered when there's no chat history, sinks to the bottom once the conversation starts
### Android Home-Screen Cards (AppWidget)
- Services can ship **system home-screen cards**: a `desktop-widgets/{cardId}/` directory (widget.json UI config + logic.js data logic + assets images), rendered natively via RemoteViews
- **Global cards** are also supported: just tell the AI "put an xx card on my home screen" — no full service needed
- Long-press the Android launcher, pick the "Amiba Card · Small (2x2) / Medium (4x2) / Large (4x4)" widget entry matching the card size and choose a card; cards refresh on a schedule and tap through to the service page
- Card faces can be drawn freely with HTML/CSS or SVG (`renderHtml` renders off-screen to an image): progress rings, charts and custom layouts all work on the home screen
### Service Generation
- Natural language → complete HTML/CSS/JS mini-app
- Apps run in iframe sandbox; JSBridge (`window.__amiba__`) provides host capabilities (see "Service API" below)
- Service UIs follow the unified jade glass style: include `/libs/jade.css` to reuse design tokens & component classes (see [Service Style Guide](public/docs/service-style.md))
- Chart.js v4 support
- Post-generation editing via AI (`service_file_*` tools)
### Skill Evolution
- Agent **autonomously creates/patches skills**: complex successes or overcome errors → recorded as SKILL.md
- **Usage telemetry**: per-skill use/view/patch counters
- **Curator**: auto-marks unused skills stale → archived; optional LLM consolidation
### Offline-first
- All data stored locally under `{AppData}/amiba/`
- Config, memory, history, services, skills, souls — all local
### UI Customization & Multi-Theme
- **CSS variable system**: 30 `:root` variables drive the global look; AI can tweak colors/corners/fonts/shadows via chat
- **Built-in themes**: ships with `default` (jade glass), `dark` (dark mode), `ocean` (blue palette)
- **Theme management**: AI manages themes via `ui_theme_*` tools; Settings page offers dropdown switching
- **Slot system**: 4 predefined UI injection points (above chat messages, below chat input, end of Settings, above service list); AI can insert custom HTML
- **Fully AI-driven**: say "make the background dark" or "add a shortcut hint below the input bar" — AI does it
## Built-in Pages & Services
### Built-in Pages (7 routes)
The first 6 pages can be switched by swiping or tapping the edge arrows (left-to-right as listed):
| Route | Page | Description |
|---|---|---|
| `/registry` | Remote Registry | Browse/import services from remote registries |
| `/services` | Services | Installed services, import & share |
| `/` | AI Chat | Multi-turn conversation with AI |
| `/quick` | Quick Page | Customizable quick page (widget host) |
| `/settings` | Settings | Configuration (API key, providers, agents, themes, logs) |
| `/memory` | Memory | View/edit MEMORY.md & USER.md |
| `/service/:id` | Service Container | Runs services in an iframe sandbox (floating back button top-left) |
### User Prebuilt Services (`user.*`)
3 prebuilt services are auto-installed on first launch, demonstrating JSBridge modules in real-world use cases. More can be installed from remote service registries.
| ID | Name | Description | APIs Used |
|---|---|---|---|
| `user.music_player` | Music Player | Local music scanner & player with shuffle/repeat, background play, floating widget | `storage` `notification` `widgets` `background` `fileAccess` |
| `user.quick_note` | Quick Note | Global floating widget for instant notes; manage & search in main view | `storage` `notification` `widgets` |
| `user.rss_reader` | RSS Reader | Subscribe to RSS feeds, aggregate & read articles | `storage` `notification` `fetch` |
## Service API (JSBridge)
Generated services run inside `