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: agents published by default
nirholas48f5ffece246
diff --git a/api/_lib/migrations/2026-05-13-agents-default-published.sql b/api/_lib/migrations/2026-05-13-agents-default-published.sqlnew file mode 100644index 000000000..50ecd86ab--- /dev/null+++ b/api/_lib/migrations/2026-05-13-agents-default-published.sql@@ -0,0 +1,18 @@+-- Agents are now published by default so newly-created agents appear in the+-- marketplace immediately. The prior false default (from 2026-04-29) meant+-- every signup produced an unreachable draft until the user manually clicked+-- publish, which contradicts the rest of the visibility model (is_public,+-- avatar visibility) that already defaults to public.+--+-- Flip the column default and backfill non-deleted rows that have never been+-- published. Rows that were explicitly unpublished are left alone — only ones+-- that were waiting on the old default get pulled forward.++alter table agent_identities alter column is_published set default true;++update agent_identities+ set is_published = true,+ published_at = coalesce(published_at, now())+ where is_published = false+ and deleted_at is null+ and published_at is null;diff --git a/api/_lib/seed-default-agent.js b/api/_lib/seed-default-agent.jsindex a03cf7028..657c7396b 100644--- a/api/_lib/seed-default-agent.js+++ b/api/_lib/seed-default-agent.js@@ -1,5 +1,5 @@-// Seeds a default draft agent for a brand-new user so they have something-// to publish, fork from, or attach an avatar to as soon as they sign in.+// Seeds a default published agent for a brand-new user so they have something+// reachable, forkable, and ready to attach an avatar to as soon as they sign in.//// Idempotent: if the user already has any agent (published or draft), the// function is a no-op. Safe to call from any signup path (email, SIWE, SIWS).@@ -8,7 +8,7 @@ import { sql } from './db.js';const DEFAULT_NAME = 'My First Agent';const DEFAULT_DESCRIPTION =- "A friendly starter agent. Edit the personality, attach a 3D avatar, and publish when you're ready.";+ 'A friendly starter agent. Edit the personality and attach a 3D avatar — it goes live immediately.';const DEFAULT_PROMPT ='You are a helpful, concise assistant. Greet the user warmly, ask what they need help with, ' +'and respond clearly. Avoid filler. When you do not know something, say so.';@@ -28,7 +28,7 @@ export async function seedDefaultAgent(userId) {const [agent] = await sql`INSERT INTO agent_identities (user_id, name, description, system_prompt, greeting,- category, tags, capabilities, is_published+ category, tags, capabilities, is_published, published_at) VALUES (${userId},${DEFAULT_NAME},@@ -38,7 +38,8 @@ export async function seedDefaultAgent(userId) {'general',ARRAY['starter']::text[],'{"bullets": ["Answers questions","Helps with writing","Suggests next steps"], "skills": [], "library": []}'::jsonb,- false+ true,+ now())RETURNING id`;diff --git a/api/marketplace/[action].js b/api/marketplace/[action].jsindex 678d35390..9d49264e7 100644--- a/api/marketplace/[action].js+++ b/api/marketplace/[action].js@@ -63,7 +63,7 @@ const createAgentSchema = z.object({}).default({}),avatar_id: z.string().uuid().optional().nullable(),- publish: z.boolean().default(false),+ publish: z.boolean().default(true),});export default wrap(async (req, res) => {@@ -165,7 +165,6 @@ async function handleCreate(req, res) {category: j.meta?.category || 'general',tags: j.meta?.tags || [],capabilities: j.meta?.capabilities || {},- publish: false,};}diff --git a/src/avatar-page.js b/src/avatar-page.jsindex d6e527d90..e3b5886e4 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -457,7 +457,6 @@ async function startAgentWithAvatar() {tags: (avatar.tags || []).slice(0, 8),capabilities: { skills: skillsArr, library: [], bullets: [] },avatar_id: avatar.id || avatarId,- publish: false,};const r = await fetch('/api/marketplace/agents', {method: 'POST',