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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: add dead-simple copy-paste widget instructions to README and fix formatting in CORS configuration
nirholase86319eb9cd1
diff --git a/README.md b/README.mdindex 41dc61615..a056f6e92 100644--- a/README.md+++ b/README.md@@ -645,6 +645,19 @@ For anything beyond a quick one-liner, define the agent in a manifest file and r<agent-3d manifest="./agent.json" width="400px" height="560px"></agent-3d>```+---++### 8. Dead-simple copy-paste widget++For the absolute simplest way to embed an agent, use this snippet. It requires no build tools or imports. Just copy and paste it into your HTML.++```html+<div class="threews-widget" data-agent-id="YOUR_AGENT_ID" style="width: 400px; height: 500px;"></div>+<script src="https://3d-agent.vercel.app/dist/widget.js" defer></script>+```+You can find your agent ID in the agent's settings page. This method is great for quick integrations on platforms like WordPress, Ghost, or any static HTML site.++---## Tutorialsdiff --git a/cors.json b/cors.jsonindex a20462687..a10171f52 100644--- a/cors.json+++ b/cors.json@@ -3,7 +3,8 @@"method": ["GET"],"origin": ["https://three.ws/",- "https://chat.sperax.io",+ " "https://chat.sperax.io",+ "https://sperax.io",","https://sperax-jam2emun9-moomsi.vercel.app","https://sperax-iota.vercel.app","http://localhost:*",diff --git a/footer.css b/footer.cssindex a2b1c4d36..c1b233ca6 100644--- a/footer.css+++ b/footer.css@@ -114,7 +114,7 @@position: relative;z-index: 4;display: grid;- grid-template-columns: 1fr 1fr;+ grid-template-columns: 1fr 1fr 1fr;gap: 3rem;max-width: 1080px;margin: 0 auto 3rem;diff --git a/pumpfun-widget.html b/pumpfun-widget.htmlindex ab8506ced..f0ff0ab6b 100644--- a/pumpfun-widget.html+++ b/pumpfun-widget.html@@ -7,134 +7,37 @@<meta name="description" content="Pump.fun live feed widget." /><meta name="robots" content="noindex" /><style>- html,+ * { margin: 0; padding: 0; box-sizing: border-box; }body {- margin: 0;+ background: #0a0a0a;+ color: #00ff41;+ font-family: 'Courier New', monospace;+ font-size: 13px;+ line-height: 1.5;padding: 0;- height: 100%;- width: 100%;- background: transparent;- overflow: hidden;- font-family: system-ui, sans-serif;- }- #stage {- position: absolute;- inset: 0;- }- #stage canvas {- display: block;- width: 100% !important;- height: 100% !important;- }- #stage .gui-wrap,- #stage .gui-toggle,- #stage .annotation-canvas {- display: none !important;- }- #stage .model-info {- display: none !important;- }- #name-plate {- position: absolute;- left: 12px;- bottom: 10px;- z-index: 2;- pointer-events: none;- font-size: 11px;- color: rgba(255, 255, 255, 0.55);- letter-spacing: 0.04em;- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);- }- #chain-plate {- position: absolute;- right: 12px;- bottom: 10px;- z-index: 2;- pointer-events: none;- font-size: 10px;- color: rgba(255, 255, 255, 0.4);- letter-spacing: 0.08em;- text-transform: uppercase;- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);- }- #open-link {- position: absolute;- right: 12px;- top: 10px;- z-index: 3;- font-size: 10px;- color: rgba(255, 255, 255, 0.55);- letter-spacing: 0.05em;- text-decoration: none;- padding: 4px 8px;- border-radius: 4px;- background: rgba(0, 0, 0, 0.35);- backdrop-filter: blur(4px);- }- #open-link:hover {- color: rgba(255, 255, 255, 0.9);- background: rgba(0, 0, 0, 0.5);- }- #loading {- position: absolute;- inset: 0;- display: flex;- align-items: center;- justify-content: center;- color: rgba(255, 255, 255, 0.5);- font-size: 12px;- }- #loading::after {- content: '';- width: 18px;- height: 18px;- margin-left: 8px;- border: 2px solid rgba(255, 255, 255, 0.15);- border-top-color: rgba(255, 255, 255, 0.5);- border-radius: 50%;- animation: spin 0.8s linear infinite;- }- @keyframes spin {- to {- transform: rotate(360deg);- }- }- #error,- #blocked {- position: absolute;- inset: 0;- display: none;- align-items: center;- justify-content: center;- color: rgba(255, 255, 255, 0.55);- font-size: 12px;- padding: 1rem;- text-align: center;- flex-direction: column;- gap: 6px;- }- #blocked a {- color: rgba(180, 200, 255, 0.9);- text-decoration: none;- }- body.bg-dark {- background: #0b0d10;- }- body.bg-light {- background: #f5f5f5;- }- body.bg-light #name-plate {- color: rgba(0, 0, 0, 0.65);- text-shadow: none;- }- body.bg-light #chain-plate {- color: rgba(0, 0, 0, 0.45);- text-shadow: none;- }- body.bg-light #open-link {- color: rgba(0, 0, 0, 0.65);- background: rgba(255, 255, 255, 0.6);}+ #root {+ height: 100vh;+ overflow-y: auto;+ }+ .entry {+ border-bottom: 1px solid #111;+ padding: 8px;+ animation: fadeIn 0.3s ease;+ }+ @keyframes fadeIn {+ from { opacity: 0; transform: translateY(-4px); }+ to { opacity: 1; transform: translateY(0); }+ }+ .entry .name { color: #ffcc00; font-weight: bold; font-size: 15px; }+ .entry .symbol { color: #ff9900; font-weight: bold; }+ .entry a { color: #4a9eff; text-decoration: none; }+ .entry a:hover { text-decoration: underline; }+ .entry .token-row { display: flex; align-items: center; gap: 10px; }+ .entry .token-img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #333; object-fit: cover; background: #111; }+ .entry .token-details { flex: 1; min-width: 0; }+ .entry .meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #666; margin-top: 3px; }+ .entry .mcap { color: #b366ff; font-weight: bold; }</style></head><body>