Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/examples/express-integration/README.md

overstepping2eebda9b0611
diff --git a/xspace-agent/examples/express-integration/README.md b/xspace-agent/examples/express-integration/README.md
new file mode 100644
index 000000000..6c26ad5d4
--- /dev/null
+++ b/xspace-agent/examples/express-integration/README.md
@@ -0,0 +1,47 @@
+# Express Integration Example
+
+Embed the X Space agent into an **existing Express application** as a mounted sub-router. Your app keeps its own routes while gaining a full agent admin panel and API.
+
+## Quickstart
+
+1. Install dependencies:
+ ```bash
+ npm install
+ ```
+
+2. Copy `.env.example` to `.env` and fill in your credentials:
+ ```bash
+ cp .env.example .env
+ ```
+
+3. Start the server:
+ ```bash
+ npm start
+ ```
+
+4. Open in your browser:
+ - App: http://localhost:3000/
+ - Agent Admin Panel: http://localhost:3000/agent/admin
+ - Agent Status: http://localhost:3000/agent/api/status
+
+## Routes Added
+
+| Route | Method | Description |
+|-------|--------|-------------|
+| `/agent/admin` | GET | Admin panel UI |
+| `/agent/api/status` | GET | Agent status JSON |
+| `/agent/api/join` | POST | Join a Space (`{ url }`) |
+| `/agent/api/leave` | POST | Leave the current Space |
+| `/agent/api/say` | POST | Speak text (`{ text }`) |
+
+Socket.IO is attached to the same HTTP server for real-time transcription streaming.
+
+## How to Adapt
+
+Replace the example routes with your own application logic. The agent mounts cleanly at any path:
+
+```typescript
+app.use('/my-custom-path', router)
+```
+
+