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
perf(selfie): stop rebuilding the face landmarker for every still we check
nirholas0437ac70c1f3
diff --git a/public/changelog.json b/public/changelog.jsonindex bfb1d2abe..633137fbc 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-14T00:56:39.870Z",+ "generated_at": "2026-08-14T01:01:14.295Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -28,6 +28,18 @@"infra"]},+ {+ "date": "2026-08-14",+ "type": "update",+ "title": "The contracts that hold agent earnings, reputation stakes and skill licenses are now audit-ready",+ "summary": "Before an outside firm can review the contracts behind agent royalties, reputation staking and wallet delegation, someone has to write down what those contracts promise and then prove it holds. That pack now exists and is public. Every value-bearing contract has numbered invariants, each backed by a test proving the property holds and a second test proving that an attacker trying to break it is rejected, alongside a threat model naming what is worth stealing, who could try, and what stops them. The Solidity contracts sit at 100% test coverage across 242 tests. The two Solana programs, which had no automated tests at all, now have 32 running against their real compiled on-chain bytecode rather than a stand-in, with the real token programs loaded. Two standard analyzers were run across everything, and every finding is either fixed or answered in writing. One of those fixes closes a real gap: a cross-chain permission request that was declined rather than failed outright would have credited a seller and charged a buyer for access that was never going to be granted.",+ "link": null,+ "tags": [+ "security",+ "infra",+ "docs"+ ]+ },{"date": "2026-08-14","type": "update",diff --git a/public/features.json b/public/features.jsonindex c1a46fc2c..3bbe97800 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-14T00:56:39.710Z",+ "generated_at": "2026-08-14T01:01:14.237Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/face-quality.js b/src/face-quality.jsindex 0e980199f..ca9b12044 100644--- a/src/face-quality.js+++ b/src/face-quality.js@@ -31,6 +31,7 @@ const MODEL_URL =let _modPromise = null;let _landmarkerPromise = null;+let _imageLandmarkerPromise = null;function loadModule() {if (!_modPromise) {@@ -58,6 +59,30 @@ function loadLandmarker() {return _landmarkerPromise;}+/**+ * IMAGE-mode landmarker for one-shot stills, cached like the VIDEO one.+ * Every review shot and every upload used to build and tear down its own,+ * which re-reads the ~5MB model and re-initialises the GPU delegate while the+ * user waits on "Checking shot..." right after the shutter fires.+ */+function loadImageLandmarker() {+ if (_imageLandmarkerPromise) return _imageLandmarkerPromise;+ _imageLandmarkerPromise = (async () => {+ const { FilesetResolver, FaceLandmarker } = await loadModule();+ const vision = await FilesetResolver.forVisionTasks(WASM_ROOT);+ return FaceLandmarker.createFromOptions(vision, {+ baseOptions: { modelAssetPath: MODEL_URL, delegate: 'GPU' },+ runningMode: 'IMAGE',+ numFaces: 1,+ outputFaceBlendshapes: false,+ });+ })().catch((err) => {+ _imageLandmarkerPromise = null;+ throw err;+ });+ return _imageLandmarkerPromise;+}+/** Pre-warm the model download. */export function preload() {loadLandmarker().catch(() => {});@@ -294,17 +319,8 @@ export function estimateHeadPose(lms) {* @returns {Promise<QualityReport>}*/export async function checkImageQuality(source, slot = 'frontal') {- const mod = await loadModule();- const { FilesetResolver, FaceLandmarker } = mod;- const vision = await FilesetResolver.forVisionTasks(WASM_ROOT);- const imgLandmarker = await FaceLandmarker.createFromOptions(vision, {- baseOptions: { modelAssetPath: MODEL_URL, delegate: 'GPU' },- runningMode: 'IMAGE',- numFaces: 1,- outputFaceBlendshapes: false,- });+ const imgLandmarker = await loadImageLandmarker();const result = imgLandmarker.detect(source);- imgLandmarker.close();const lms = result.faceLandmarks?.[0];if (!lms || lms.length < 468) {