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
fix(widgets): serve the demo widgets' OG cards from their baked-in fixtures
nirholasfb3bc3dbb902
diff --git a/api/widgets/og.js b/api/widgets/og.jsindex 953bedaaa..deb72affc 100644--- a/api/widgets/og.js+++ b/api/widgets/og.js@@ -12,6 +12,7 @@import { sql } from '../_lib/db.js';import { getAvatar } from '../_lib/avatars.js';import { cors, wrap } from '../_lib/http.js';+import { isDemoWidgetId, getDemoWidget } from './_demo-fixtures.js';const CACHE_CARD = 'public, max-age=3600, s-maxage=86400';const CACHE_REDIR = 'public, max-age=3600';@@ -61,6 +62,15 @@ export default wrap(async (req, res) => {});async function loadWidget(id) {+ // The demo widgets are served by /w/:id and the oEmbed route from baked-in+ // fixtures rather than the DB, so resolve them here too. Without this every+ // demo widget's og:image (which /w/:id points at) answers 404 and social+ // previews render the not-found card instead of the widget.+ if (isDemoWidgetId(id)) {+ const demo = getDemoWidget(id);+ if (!demo) return null;+ return { id: demo.id, name: demo.name, type: demo.type, avatar_id: null, is_public: true };+ }try {const [row] = await sql`select id, name, type, avatar_id, is_public