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.

feat: update README.md and embedding guide with installation instructions for embeddable web component

nirholasbb9aefd5a841
diff --git a/README.md b/README.md
index fee67757a..147347a18 100644
--- a/README.md
+++ b/README.md
@@ -319,7 +319,31 @@ The backend is stateless serverless functions. All persistent state lives in Pos
## Getting Started
-### Prerequisites
+### Use the embeddable web component (no setup)
+
+Install from npm:
+
+```bash
+npm install three.ws
+```
+
+```js
+import 'three.ws';
+// <agent-3d src="/path/to/avatar.glb"></agent-3d>
+```
+
+Or load via CDN:
+
+```html
+<script type="module" src="https://unpkg.com/three.ws"></script>
+<agent-3d src="/path/to/avatar.glb"></agent-3d>
+```
+
+Package: https://www.npmjs.com/package/three.ws
+
+### Run the full platform locally
+
+#### Prerequisites
- Node.js 20+
- npm 10+
@@ -327,7 +351,7 @@ The backend is stateless serverless functions. All persistent state lives in Pos
- A Cloudflare R2 bucket (or any S3-compatible store)
- An Anthropic API key (for the LLM backend)
-### Installation
+#### Installation
```bash
git clone https://github.com/nirholas/3D-Agent.git
diff --git a/docs/embedding.md b/docs/embedding.md
index 3e49ad9cd..afa3f6aaf 100644
--- a/docs/embedding.md
+++ b/docs/embedding.md
@@ -23,6 +23,18 @@ The `<agent-3d>` custom element is the recommended approach for any page where y
### Basic setup
+Install from npm:
+
+```bash
+npm install three.ws
+```
+
+```js
+import 'three.ws';
+```
+
+Or load via CDN:
+
```html
<!-- 1. Load the library (pinned version + SRI) -->
<script
@@ -32,6 +44,9 @@ The `<agent-3d>` custom element is the recommended approach for any page where y
crossorigin="anonymous"
></script>
+<!-- or via unpkg -->
+<script type="module" src="https://unpkg.com/three.ws"></script>
+
<!-- 2. Place the element -->
<agent-3d
src="agent://base/42"
diff --git a/publish/README.md b/publish/README.md
index fee67757a..147347a18 100644
--- a/publish/README.md
+++ b/publish/README.md
@@ -319,7 +319,31 @@ The backend is stateless serverless functions. All persistent state lives in Pos
## Getting Started
-### Prerequisites
+### Use the embeddable web component (no setup)
+
+Install from npm:
+
+```bash
+npm install three.ws
+```
+
+```js
+import 'three.ws';
+// <agent-3d src="/path/to/avatar.glb"></agent-3d>
+```
+
+Or load via CDN:
+
+```html
+<script type="module" src="https://unpkg.com/three.ws"></script>
+<agent-3d src="/path/to/avatar.glb"></agent-3d>
+```
+
+Package: https://www.npmjs.com/package/three.ws
+
+### Run the full platform locally
+
+#### Prerequisites
- Node.js 20+
- npm 10+
@@ -327,7 +351,7 @@ The backend is stateless serverless functions. All persistent state lives in Pos
- A Cloudflare R2 bucket (or any S3-compatible store)
- An Anthropic API key (for the LLM backend)
-### Installation
+#### Installation
```bash
git clone https://github.com/nirholas/3D-Agent.git