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.

740 B
Raw Blame
// GET /api/community/capabilities
// Tells the browser which Town affordances are live: reads/realtime (needs
// CC_API_KEY) and posting (needs the server key-pair). The browser uses this
// to render the composer enabled vs. in its designed locked state, never a
// dead button.
import { cors, json, method, wrap } from '../_lib/http.js';
import { capabilities } from '../_lib/coin-communities.js';

export default wrap(async (req, res) => {
	if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
	if (!method(req, res, ['GET'])) return;
	// Capabilities are deployment-wide and safe to cache briefly at the edge.
	res.setHeader('cache-control', 'public, max-age=30, s-maxage=30');
	return json(res, 200, { data: capabilities() });
});