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 with vision statement and enhance backfill script for timestamp handling

nirholas2c8b49d07307
diff --git a/README.md b/README.md
index ad3915981..60f83bbb0 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@
## Table of Contents
- [What is three.ws?](#what-is-threews)
+- [Vision](#vision)
- [Key Features](#key-features)
- [Screenshots](#screenshots)
- [Architecture](#architecture)
@@ -61,6 +62,16 @@ three.ws is production-ready and serves [three.ws](https://three.ws) live. The e
---
+## Vision
+
+One day, creating your agent should be as simple as taking a selfie.
+
+Point your camera at yourself — or anyone — and watch a fully realized 3D avatar emerge: your face, your voice, your personality, alive in the browser. That avatar becomes an agent with memory and skills, registered onchain as an ERC-8004 token, permanent and verifiable by anyone forever. No 3D software. No wallet setup. No uploads. Just a photo and a name.
+
+This is the direction three.ws is heading: **photo → avatar → agent → onchain identity**, in a single flow. The infrastructure is already here — the viewer, the runtime, the contracts, the embedding layer. What comes next is closing the gap between a picture of a person and a living, ownable, embeddable piece of them that exists on the internet permanently.
+
+---
+
## Key Features
**3D Viewer**
diff --git a/scripts/backfill-erc8004.mjs b/scripts/backfill-erc8004.mjs
index c3233e8e1..515529c99 100644
--- a/scripts/backfill-erc8004.mjs
+++ b/scripts/backfill-erc8004.mjs
@@ -183,8 +183,8 @@ async function backfillChain(chain) {
const agentId = BigInt(log.topics[1]).toString();
const owner = getAddress('0x' + log.topics[2].slice(-40)).toLowerCase();
const [agentURI] = ABI_CODER.decode(['string'], log.data);
- const blockNumber = Number(log.blockNumber);
- const registeredAt = new Date(Number(log.timeStamp) * 1000).toISOString();
+ const blockNumber = Number(log.blockNumber); // hex string from RPC
+ const registeredAt = null; // eth_getLogs has no timestamp; cron enriches later
await sql`
INSERT INTO erc8004_agents_index
@@ -200,7 +200,7 @@ async function backfillChain(chain) {
last_seen_at = now()
`;
inserted++;
- if (blockNumber > lastBlock) lastBlock = blockNumber;
+ if (blockNumber > lastBlock) lastBlock = blockNumber; // always track even on skip
} catch (e) {
console.warn(` skip ${log.transactionHash}: ${e.message}`);
}
diff --git a/src/idle-animation.js b/src/idle-animation.js
index 4beafe19b..24f22eff2 100644
--- a/src/idle-animation.js
+++ b/src/idle-animation.js
@@ -153,6 +153,7 @@ export class IdleAnimation {
this._hipBone = null;
this._morphMeshes = [];
+ let headCandidate = null, neckCandidate = null;
root.traverse((node) => {
if (node.isBone) {
// Strip mixamorig prefix and any leading namespace so 'mixamorig:Head' → 'head'
@@ -161,8 +162,8 @@ export class IdleAnimation {
.replace(/^[A-Za-z0-9]+[_:]/, '')
.toLowerCase();
- if (!this._headBone && (canon === 'head' || canon === 'neck'))
- this._headBone = node;
+ if (!headCandidate && canon === 'head') headCandidate = node;
+ else if (!neckCandidate && canon === 'neck') neckCandidate = node;
if (
!this._spineBone &&
@@ -197,6 +198,10 @@ export class IdleAnimation {
}
});
+ // Prefer head over neck — neck is visited first in DFS but adding rotation
+ // at neck level cascades into head, fighting the empathy layer's head-only control.
+ this._headBone = headCandidate || neckCandidate;
+
if (
!this._headBone &&
!this._spineBone &&