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
// GET /api/cron/arena-tick - the heartbeat of the Social Trading Arena.
//
// Before this existed, nothing in the codebase advanced a tournament's
// lifecycle. Rows were created by hand, ranked live while their window was
// open, and then sat at 'ended' forever: never frozen, never attested, never
// paid. And because the route only ever showed what a human had created, the
// live Arena was one stale card. Both problems are lifecycle problems, so they
// are fixed in one place.
//
// Each tick:
// 1. ensures today's house arena is live and tomorrow's is queued
// 2. enters every agent with a real trading mandate into the live one
// 3. finalizes, attests and settles every window the clock has closed
// (user-created tournaments included, which is the half nobody ran)
//
// Every stage reports honestly and independently; a failure in one is recorded
// in the response and does not starve the others. Idempotent by construction,
// so the schedule in vercel.json is a safety net rather than a requirement.
import { json, method, wrapCron } from '../_lib/http.js';
import { requireCron } from '../_lib/cron-auth.js';
import { arenaTick } from '../_lib/arena-house.js';
export default wrapCron(async (req, res) => {
if (!method(req, res, ['GET', 'POST'])) return;
if (!requireCron(req, res)) return;
const summary = await arenaTick({ network: 'mainnet', now: Date.now() });
return json(res, 200, { ok: true, ...summary }, { 'cache-control': 'no-store' });
});