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(rate-limit): add pumpMetaIp limiter for metadata uploads to prevent authIp budget drain
nirholas468e53745faa
diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex f044cbbaf..74feaadbb 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -61,6 +61,11 @@ function parseWindowMs(w) {export const limits = {authIp: (ip) => getLimiter('auth:ip', { limit: 30, window: '10 m' }).limit(ip),registerIp: (ip) => getLimiter('register:ip', { limit: 5, window: '1 h' }).limit(ip),+ // pump.fun coin metadata upload (name/symbol/image → R2 JSON). Cheap and+ // idempotent, so it gets its own bucket instead of draining the strict+ // `authIp` budget shared by on-chain buy/sell/launch actions. Iterating in+ // the launch wizard would otherwise lock the user out of trading for 10 min.+ pumpMetaIp: (ip) => getLimiter('pump:meta:ip', { limit: 60, window: '10 m' }).limit(ip),oauthRegisterIp: (ip) =>getLimiter('oauth:register:ip', { limit: 10, window: '1 h' }).limit(ip),mcpUser: (userId) => getLimiter('mcp:user', { limit: 1200, window: '1 m' }).limit(userId),diff --git a/api/pump/[action].js b/api/pump/[action].jsindex fa1b36d56..f7a9bab00 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -610,7 +610,7 @@ async function handleBuildMetadata(req, res) {const user = await getSessionUser(req);if (!user) return error(res, 401, 'unauthorized', 'sign in required');- const rl = await limits.authIp(clientIp(req));+ const rl = await limits.pumpMetaIp(clientIp(req));if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');let body;