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.

Enhance Open Graph and Twitter metadata across multiple pages for improved SEO and social sharing. Update image descriptions and alt texts for better accessibility. Add canonical links and structured data for various pages including agent economy volume, live agents, avatar engines, scene capture, integrations, launcher, partners, and sitemap. Implement error handling for database connection strings in environment configuration for agent workers.

qbdzffdaddac70bc
diff --git a/api/_lib/env.js b/api/_lib/env.js
index bbcc31fc4..4ad4527c6 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -185,14 +185,42 @@ const DATABASE_URL_SOURCES = [
'POSTGRES_PRISMA_URL',
];
+// Repair the dashboard-paste corruptions that survive a whitespace trim but still
+// break the neon() client. Two shapes, both seen on real Vercel env values (the
+// same class of paste damage normalizeRpcUrl()/addr() already repair for RPC URLs
+// and wallet addresses):
+// · a single layer of matching surrounding quotes — "postgresql://…" / 'postgresql://…'
+// · an accidental `psql ` / `psql -d ` shell-copy prefix
+// Either one makes neon() throw SYNCHRONOUSLY at client construction ("is not a
+// valid URL"), and because the lazy Neon client is built inside a query thenable
+// that throw bypasses every per-query `.catch()` guard and 500s every DB-backed
+// read at once. Worse, both also fail the `/^postgres/` scheme guard below, so the
+// alias is silently skipped and resolveDatabaseUrl() reports the connection string
+// as MISSING even though a perfectly good URL is sitting in the env. Stripping the
+// wrappers here turns a fat-fingered paste into a working connection instead of a
+// site-wide outage. Returns undefined for a value that's empty after unwrapping.
+function unwrapDbCandidate(v) {
+ if (!v) return v;
+ // Drop an accidental `psql `/`psql -d ` prefix first (the URL after it may be quoted).
+ let s = v.replace(/^psql\s+(?:-d\s+)?/i, '').trim();
+ // Strip one layer of matching surrounding quotes.
+ if ((s.startsWith('"') && s.endsWith('"')) || (s.startsWith("'") && s.endsWith("'"))) {
+ s = s.slice(1, -1).trim();
+ }
+ return s || undefined;
+}
+
// Resolve the first alias that holds a usable Postgres connection string.
// Trims dashboard-pasted whitespace/newlines (cred()) — an untrimmed trailing
-// "\n" makes neon() throw "is not a valid URL" — and requires a postgres(ql)://
-// scheme so a stray, unrelated value on one alias can't shadow a real URL on a
-// lower-priority one. Returns undefined when no alias is configured.
-function resolveDatabaseUrl() {
+// "\n" makes neon() throw "is not a valid URL" — unwraps surrounding quotes / a
+// `psql ` prefix (unwrapDbCandidate), and requires a postgres(ql):// scheme so a
+// stray, unrelated value on one alias can't shadow a real URL on a lower-priority
+// one. Returns undefined when no alias is configured. Exported so standalone
+// workers that build their own Neon client (agora-citizens) resolve the
+// connection string from the same alias set the serverless API does.
+export function resolveDatabaseUrl() {
for (const name of DATABASE_URL_SOURCES) {
- const v = cred(opt(name));
+ const v = unwrapDbCandidate(cred(opt(name)));
if (v && /^postgres(ql)?:\/\//i.test(v)) return v;
}
return undefined;
diff --git a/api/client-errors.js b/api/client-errors.js
index 0cd048731..53f4cc740 100644
--- a/api/client-errors.js
+++ b/api/client-errors.js
@@ -86,6 +86,24 @@ function isNonActionableNoise(event) {
if (event.name === 'AbortError' || /\bfetch is aborted\b|\bthe operation was aborted\b/i.test(msg)) {
return true;
}
+ // Injected wallet-provider (window.ethereum / injected Solana) RPC errors and
+ // user-cancellations. An injected EVM provider rejects window.ethereum.request()
+ // with EIP-1474 "Internal JSON-RPC error." when its upstream node errors, or with
+ // a user-cancellation string when the popup is dismissed — both thrown as a plain
+ // object (name "Object"), not an Error. No first-party three.ws code produces
+ // these strings; the wallet extension owns the transport, so they are unfixable
+ // from our deploy and only reach us from pages that co-exist with a wallet
+ // extension (e.g. /trending). Matched exactly so a genuine fault never collides.
+ // Mirrors public/error-reporter.js WALLET_RPC_NOISE_RE.
+ if (
+ /^Internal JSON-RPC error\.?$/i.test(msg) ||
+ /^User rejected( the)? request/i.test(msg) ||
+ /^User denied /i.test(msg) ||
+ /^Already processing eth_requestAccounts/i.test(msg) ||
+ /^Request of type 'wallet_/i.test(msg)
+ ) {
+ return true;
+ }
// A ReferenceError naming a known injected bridge global — their script, not ours.
if (/can't find variable:|is not defined/i.test(msg) && INJECTED_GLOBALS.test(msg)) return true;
// Property-access TypeErrors from extension/wallet-injected page scripts. These
diff --git a/api/galaxy/flows.js b/api/galaxy/flows.js
index 4ded1232f..d250d8530 100644
--- a/api/galaxy/flows.js
+++ b/api/galaxy/flows.js
@@ -44,6 +44,15 @@ import {
const FEED_TTL_S = 8; // first-page cache — it's a live feed, keep it short
const LASTGOOD_TTL_S = 600; // last-good snapshot, served if a build is slow/fails
+// The last-good snapshot is the degraded fallback, not live data, so it does NOT
+// need rewriting on every 8s cache miss. Writing it on every build doubled the
+// large-payload SET volume on this endpoint — the codebase's own named cause of
+// the Upstash cache-SET timeouts (see _lib/env.js UPSTASH_CACHE_REST_* note).
+// Refresh it at most once per window per view; a fallback at most this stale is
+// still a perfectly good calm-degrade snapshot, and SET pressure on the hot path
+// is roughly halved. In-process gate (per warm instance) — best-effort by design.
+const LASTGOOD_REFRESH_MS = 60_000;
+const _lastGoodWrittenAt = new Map();
const DEFAULT_LIMIT = 80;
const MAX_LIMIT = 200;
@@ -253,8 +262,14 @@ export default async function handler(req, res) {
});
try {
const body = await Promise.race([handleFeed({ network, type, limit, cursor, since }), deadline]);
- // Retain a long-lived copy for the degraded path on a future slow build.
- cacheSet(lastGoodKey, body, LASTGOOD_TTL_S).catch(() => {});
+ // Retain a long-lived copy for the degraded path on a future slow build —
+ // but at most once per LASTGOOD_REFRESH_MS per view, so the live-feed cache
+ // miss isn't paired with a second large SET on every request.
+ const now = Date.now();
+ if (now - (_lastGoodWrittenAt.get(lastGoodKey) || 0) >= LASTGOOD_REFRESH_MS) {
+ _lastGoodWrittenAt.set(lastGoodKey, now);
+ cacheSet(lastGoodKey, body, LASTGOOD_TTL_S).catch(() => {});
+ }
return body;
} finally {
clearTimeout(timer);
diff --git a/pages/agent-economy-volume.html b/pages/agent-economy-volume.html
index aee926c09..1a894ef0f 100644
--- a/pages/agent-economy-volume.html
+++ b/pages/agent-economy-volume.html
@@ -21,7 +21,7 @@
<meta property="og:title" content="Agent Economy Volume · three.ws" />
<meta property="og:description" content="Live total volume of the three.ws agent-to-agent economy: real USDC moved between AI agents hiring each other for paid skills over x402." />
<meta property="og:url" content="https://three.ws/agent-economy-volume" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Agent+Economy+Volume&amp;d=Real+USDC+moved+between+AI+agents+hiring+each+other+over+x402.+Settled+on-chain%2C+live.&amp;p=%2Fagent-economy-volume" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Agent+Economy+Volume&amp;d=Live+dashboard+of+total+agent-to-agent+economy+volume%3A+real+USDC+settled+between+AI+agents+hiring+each+other+for+paid+skills+over+x402%2C+with+top+earners%2C+top+sp&amp;p=%2Fagent-economy-volume" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Agent Economy Volume — three.ws" />
@@ -30,7 +30,7 @@
<meta name="twitter:site" content="@trythreews" />
<meta name="twitter:title" content="Agent Economy Volume · three.ws" />
<meta name="twitter:description" content="Live total volume of the three.ws agent-to-agent economy: real USDC moved between AI agents over x402." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Agent+Economy+Volume&amp;d=Real+USDC+moved+between+AI+agents+hiring+each+other+over+x402.+Settled+on-chain%2C+live.&amp;p=%2Fagent-economy-volume" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Agent+Economy+Volume&amp;d=Live+dashboard+of+total+agent-to-agent+economy+volume%3A+real+USDC+settled+between+AI+agents+hiring+each+other+for+paid+skills+over+x402%2C+with+top+earners%2C+top+sp&amp;p=%2Fagent-economy-volume" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Economy Volume","description":"Live total volume of the three.ws agent-to-agent economy: real USDC moved between AI agents hiring each other for paid skills over x402.","url":"https://three.ws/agent-economy-volume","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
<style>
diff --git a/pages/agents-live.html b/pages/agents-live.html
index 21b78081a..4647a638d 100644
--- a/pages/agents-live.html
+++ b/pages/agents-live.html
@@ -12,10 +12,10 @@
<meta property="og:url" content="https://three.ws/agents-live" />
<meta property="og:title" content="Live Agents · three.ws" />
<meta property="og:description" content="Watch AI agents work in real time on three.ws." />
- <meta property="og:image" content="https://three.ws/og-image.png" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Live+Agents&amp;d=Mission+control+%E2%80%94+real-time+grid+of+all+AI+agents+with+active+screen+streams.+Watch+their+screens+and+avatar+feeds+live.&amp;p=%2Fagents-live" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
- <meta name="twitter:image" content="https://three.ws/og-image.png" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Live+Agents&amp;d=Mission+control+%E2%80%94+real-time+grid+of+all+AI+agents+with+active+screen+streams.+Watch+their+screens+and+avatar+feeds+live.&amp;p=%2Fagents-live" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
@@ -876,6 +876,15 @@
.al-ticker-sub { display: none; }
}
</style>
+
+ <link rel="canonical" href="https://three.ws/agents-live">
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Live Agents — three.ws">
+ <meta name="twitter:title" content="Live Agents · three.ws">
+ <meta name="twitter:description" content="Mission control — real-time grid of all AI agents with active screen streams. Watch their screens and avatar feeds live.">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Live Agents","description":"Mission control — real-time grid of all AI agents with active screen streams. Watch their screens and avatar feeds live.","url":"https://three.ws/agents-live","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&amp;t=Live+Agents&amp;d=Mission+control+%E2%80%94+real-time+grid+of+all+AI+agents+with+active+screen+streams.+Watch+their+screens+and+avatar+feeds+live.&amp;p=%2Fagents-live"}]}</script>
</head>
<body>
<nav class="al-nav">
diff --git a/pages/avatar-engines.html b/pages/avatar-engines.html
index d32f1027b..0ccdff5a7 100644
--- a/pages/avatar-engines.html
+++ b/pages/avatar-engines.html
@@ -15,12 +15,12 @@
<meta property="og:title" content="Avatar Engines Atlas · three.ws" />
<meta property="og:description" content="Every major engine for high-quality and photoreal 3D human avatars — Gaussian-splat heads, image→human, text→avatar, and the rigs three.ws already animates. Technique, license, and integration status for each." />
<meta property="og:url" content="https://three.ws/avatar-engines" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Avatar+Engines+Atlas&amp;d=Every+major+engine+for+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+technique%2C+license%2C+and+how+three.ws+uses+each.&amp;p=%2Favatar-engines" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Avatar+Engines+Atlas&amp;d=A+curated%2C+factual+atlas+of+the+open-source+and+commercial+engines+that+build+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+Gaussian-splat+heads%2C+single-photo+h&amp;p=%2Favatar-engines" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
<meta name="twitter:title" content="Avatar Engines Atlas · three.ws" />
<meta name="twitter:description" content="A curated atlas of high-quality and photoreal 3D avatar engines, with license and integration status." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Avatar+Engines+Atlas&amp;d=Every+major+engine+for+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+technique%2C+license%2C+and+how+three.ws+uses+each.&amp;p=%2Favatar-engines" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Avatar+Engines+Atlas&amp;d=A+curated%2C+factual+atlas+of+the+open-source+and+commercial+engines+that+build+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+Gaussian-splat+heads%2C+single-photo+h&amp;p=%2Favatar-engines" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@@ -301,7 +301,12 @@
.ae-stats { gap: 20px; }
}
</style>
- </head>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Avatar Engines Atlas — three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Avatar Engines Atlas","description":"A curated, factual atlas of the open-source and commercial engines that build high-quality and photoreal 3D human avatars — Gaussian-splat heads, single-photo humans, text→avatar generators, and the rigs three.ws already animates. Technique, license, compute, and integration status for each.","url":"https://three.ws/avatar-engines","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&amp;t=Avatar+Engines+Atlas&amp;d=A+curated%2C+factual+atlas+of+the+open-source+and+commercial+engines+that+build+high-quality+and+photoreal+3D+human+avatars+%E2%80%94+Gaussian-splat+heads%2C+single-photo+h&amp;p=%2Favatar-engines"}]}</script>
+</head>
<body>
<div class="ae-page">
<div id="nav-container"></div>
diff --git a/pages/capture.html b/pages/capture.html
index dc75b50e5..1bb78c55c 100644
--- a/pages/capture.html
+++ b/pages/capture.html
@@ -15,12 +15,12 @@
<meta property="og:title" content="Scene Capture — Video to 3D Point Cloud · three.ws" />
<meta property="og:description" content="Film a space, get an explorable 3D point cloud. Streaming feed-forward reconstruction → coloured .ply, rendered live in the browser." />
<meta property="og:url" content="https://three.ws/capture" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture&amp;d=Turn+a+video+of+any+space+into+an+explorable+3D+point+cloud.&amp;p=%2Fcapture" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture+%E2%80%94+Video+to+3D+Point+Cloud&amp;d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the+f&amp;p=%2Fcapture" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
<meta name="twitter:title" content="Scene Capture — Video to 3D Point Cloud · three.ws" />
<meta name="twitter:description" content="Film a space, get an explorable 3D point cloud — rendered live in the browser." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture&amp;d=Turn+a+video+of+any+space+into+an+explorable+3D+point+cloud.&amp;p=%2Fcapture" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture+%E2%80%94+Video+to+3D+Point+Cloud&amp;d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the+f&amp;p=%2Fcapture" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@@ -190,7 +190,12 @@
body.pc-embed .pc-layout { grid-template-columns: 1fr; margin: 0; gap: 0; }
body.pc-embed .pc-stage { aspect-ratio: auto; height: 100vh; border: 0; border-radius: 0; }
</style>
- </head>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Scene Capture — Video to 3D Point Cloud — three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Scene Capture — Video to 3D Point Cloud","description":"Turn a phone video of any space into an explorable 3D point cloud. Streaming feed-forward reconstruction (LingBot-Map Geometric Context Transformer) fuses the frames into a coloured .ply, rendered live in the browser with WebGL. Or load a point cloud you already have.","url":"https://three.ws/capture","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&amp;t=Scene+Capture+%E2%80%94+Video+to+3D+Point+Cloud&amp;d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the+f&amp;p=%2Fcapture"}]}</script>
+</head>
<body>
<div class="pc-page">
<div id="nav-container"></div>
diff --git a/pages/integrations.html b/pages/integrations.html
index dce33c844..9446aa52e 100644
--- a/pages/integrations.html
+++ b/pages/integrations.html
@@ -13,13 +13,13 @@
<meta property="og:title" content="Integrations — three.ws" />
<meta property="og:description" content="Drop-in 3D agents, chat widgets, and avatar embeds for any site. One script tag." />
<meta property="og:url" content="https://three.ws/integrations" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Integrations&d=Drop-in+3D+agents%2C+chat+widgets%2C+and+avatar+embeds+for+any+site.+One+script+tag.&p=%2Fintegrations" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Integrations&amp;d=Drop-in+3D+agents%2C+chat+widgets%2C+walk+companions%2C+and+live+token+embeds+for+any+site.+One+script+tag.+Powered+by+three.ws.&amp;p=%2Fintegrations" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Integrations — three.ws" />
<meta name="twitter:description" content="Drop-in 3D agents, chat widgets, and avatar embeds for any site." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Integrations&d=Drop-in+3D+agents%2C+chat+widgets%2C+and+avatar+embeds+for+any+site.+One+script+tag.&p=%2Fintegrations" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Integrations&amp;d=Drop-in+3D+agents%2C+chat+widgets%2C+walk+companions%2C+and+live+token+embeds+for+any+site.+One+script+tag.+Powered+by+three.ws.&amp;p=%2Fintegrations" />
<meta name="twitter:site" content="@trythreews" />
<link rel="canonical" href="https://three.ws/integrations" />
<link rel="icon" href="/favicon.ico" sizes="any" />
@@ -742,6 +742,11 @@
.modal-body iframe { height: 480px; }
}
</style>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Integrations — three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Integrations","description":"Drop-in 3D agents, chat widgets, walk companions, and live token embeds for any site. One script tag. Powered by three.ws.","url":"https://three.ws/integrations","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&amp;t=Integrations&amp;d=Drop-in+3D+agents%2C+chat+widgets%2C+walk+companions%2C+and+live+token+embeds+for+any+site.+One+script+tag.+Powered+by+three.ws.&amp;p=%2Fintegrations"}]}</script>
</head>
<body>
diff --git a/pages/launcher.html b/pages/launcher.html
index abfac2cfd..4547a9f3d 100644
--- a/pages/launcher.html
+++ b/pages/launcher.html
@@ -1,6 +1,7 @@
<!doctype html>
<html lang="en">
<head>
+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Memetic Launcher · Dashboard · three.ws</title>
@@ -11,7 +12,26 @@
<link rel="stylesheet" href="/dashboard-next/shell.css" />
<link rel="stylesheet" href="/src/admin-launcher.css" />
<link rel="stylesheet" href="/src/user-launcher.css" />
- </head>
+
+ <link rel="canonical" href="https://three.ws/launcher">
+ <meta property="og:type" content="website">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:title" content="Memetic Launcher · three.ws">
+ <meta property="og:description" content="Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.">
+ <meta property="og:url" content="https://three.ws/launcher">
+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Memetic+Launcher&amp;d=Design+your+personal+autonomous+coin+launcher+%E2%80%94+set+your+mode+%28trend%2C+meme%2C+hybrid%2C+random%29%2C+pick+trend+sources%2C+tune+your+cadence%2C+and+preview+exactly+what+you&amp;p=%2Flauncher">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:type" content="image/png">
+ <meta property="og:image:alt" content="Memetic Launcher — three.ws">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:site" content="@trythreews">
+ <meta name="twitter:title" content="Memetic Launcher · three.ws">
+ <meta name="twitter:description" content="Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.">
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Memetic+Launcher&amp;d=Design+your+personal+autonomous+coin+launcher+%E2%80%94+set+your+mode+%28trend%2C+meme%2C+hybrid%2C+random%29%2C+pick+trend+sources%2C+tune+your+cadence%2C+and+preview+exactly+what+you&amp;p=%2Flauncher">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Memetic Launcher","description":"Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.","url":"https://three.ws/launcher","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Memetic+Launcher&d=Design+your+personal+autonomous+coin+launcher+%E2%80%94+set+your+mode+%28trend%2C+meme%2C+hybrid%2C+random%29%2C+pick+trend+sources%2C+tune+your+cadence%2C+and+preview+exactly+what+you&p=%2Flauncher"}]}</script>
+</head>
<body>
<script type="module" src="/src/dashboard-next/pages/launcher.js"></script>
</body>
diff --git a/pages/partners.html b/pages/partners.html
index 341f32b9d..20dd9ef37 100644
--- a/pages/partners.html
+++ b/pages/partners.html
@@ -13,13 +13,13 @@
<meta property="og:title" content="Partner Ecosystem — three.ws" />
<meta property="og:description" content="The cloud and AI platforms powering 3D AI agents at enterprise scale." />
<meta property="og:url" content="https://three.ws/partners" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=ecosystem&t=Partner+Ecosystem&d=The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterprise+scale.&p=%2Fpartners" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Partner Ecosystem — three.ws" />
<meta name="twitter:description" content="The cloud and AI platforms powering 3D AI agents at enterprise scale." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=ecosystem&t=Partner+Ecosystem&d=The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterprise+scale.&p=%2Fpartners" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners" />
<meta name="twitter:site" content="@trythreews" />
<link rel="canonical" href="https://three.ws/partners" />
<link rel="icon" href="/favicon.ico" sizes="any" />
@@ -372,6 +372,11 @@
.benefits { grid-template-columns: 1fr; }
}
</style>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Partner Ecosystem — three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Partner Ecosystem","description":"three.ws partner ecosystem — AWS, IBM, Google Cloud, Alibaba Cloud, Intel, NVIDIA, Microsoft, Oracle. The cloud and AI platforms powering 3D AI agents at enterprise scale.","url":"https://three.ws/partners","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners"}]}</script>
</head>
<body>
diff --git a/pages/splat.html b/pages/splat.html
index 76ce391e4..cdd474c2d 100644
--- a/pages/splat.html
+++ b/pages/splat.html
@@ -15,12 +15,12 @@
<meta property="og:title" content="Splat Viewer — Photoreal Gaussian Avatars · three.ws" />
<meta property="og:description" content="View photoreal Gaussian-splat avatars in the browser — load a .ply / .splat / .ksplat by URL or upload. The realistic-head output of engines like GaussianAvatars and HumanGaussian, rendered live." />
<meta property="og:url" content="https://three.ws/splat" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Splat+Viewer&amp;d=View+photoreal+Gaussian-splat+avatars+in+the+browser+%E2%80%94+load+a+.ply+%2F+.splat+by+URL+or+upload.&amp;p=%2Fsplat" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Splat+Viewer+%E2%80%94+Photoreal+Gaussian+Avatars&amp;d=Render+Gaussian-splat+and+radiance-field+avatars+in+the+browser+%E2%80%94+the+photoreal+output+of+engines+like+GaussianAvatars+and+HumanGaussian.+Load+a+.ply+%2F+.splat+%2F&amp;p=%2Fsplat" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
<meta name="twitter:title" content="Splat Viewer — Photoreal Gaussian Avatars · three.ws" />
<meta name="twitter:description" content="Render photoreal Gaussian-splat avatars in the browser." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Splat+Viewer&amp;d=View+photoreal+Gaussian-splat+avatars+in+the+browser.&amp;p=%2Fsplat" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Splat+Viewer+%E2%80%94+Photoreal+Gaussian+Avatars&amp;d=Render+Gaussian-splat+and+radiance-field+avatars+in+the+browser+%E2%80%94+the+photoreal+output+of+engines+like+GaussianAvatars+and+HumanGaussian.+Load+a+.ply+%2F+.splat+%2F&amp;p=%2Fsplat" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@@ -163,7 +163,12 @@
.sp-layout { grid-template-columns: 1fr; }
}
</style>
- </head>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Splat Viewer — Photoreal Gaussian Avatars — three.ws">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Splat Viewer — Photoreal Gaussian Avatars","description":"Render Gaussian-splat and radiance-field avatars in the browser — the photoreal output of engines like GaussianAvatars and HumanGaussian. Load a .ply / .splat / .ksplat by URL or upload; decoding runs entirely client-side.","url":"https://three.ws/splat","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&amp;t=Splat+Viewer+%E2%80%94+Photoreal+Gaussian+Avatars&amp;d=Render+Gaussian-splat+and+radiance-field+avatars+in+the+browser+%E2%80%94+the+photoreal+output+of+engines+like+GaussianAvatars+and+HumanGaussian.+Load+a+.ply+%2F+.splat+%2F&amp;p=%2Fsplat"}]}</script>
+</head>
<body>
<div class="sp-page">
<div id="nav-container"></div>
diff --git a/public/404.html b/public/404.html
index 6dc407a83..d8c6c0992 100644
--- a/public/404.html
+++ b/public/404.html
@@ -96,7 +96,7 @@
<meta property="og:title" content="Chat · three.ws">
<meta property="og:description" content="Talk to your agent. Voice, text, and tool-use in one interface.">
<meta property="og:url" content="https://three.ws/chat">
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners">
+ <meta property="og:image" content="https://three.ws/api/page-og?s=agent-tools&amp;t=Chat&amp;d=Talk+to+your+agent.+Voice%2C+text%2C+and+tool-use+in+one+interface.&amp;p=%2Fchat">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:type" content="image/png">
@@ -105,7 +105,7 @@
<meta name="twitter:site" content="@trythreews">
<meta name="twitter:title" content="Chat · three.ws">
<meta name="twitter:description" content="Talk to your agent. Voice, text, and tool-use in one interface.">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners">
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=agent-tools&amp;t=Chat&amp;d=Talk+to+your+agent.+Voice%2C+text%2C+and+tool-use+in+one+interface.&amp;p=%2Fchat">
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Chat","description":"Talk to your agent. Voice, text, and tool-use in one interface.","url":"https://three.ws/chat","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=agent-tools&t=Chat&d=Talk+to+your+agent.+Voice%2C+text%2C+and+tool-use+in+one+interface.&p=%2Fchat"}]}</script>
</head>
<body>
diff --git a/public/changelog.json b/public/changelog.json
index d366533c6..ffa9781d2 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-29T21:41:44.096Z",
+ "generated_at": "2026-06-29T22:31:47.544Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
diff --git a/public/error-reporter.js b/public/error-reporter.js
index ec50f5923..7f08df067 100644
--- a/public/error-reporter.js
+++ b/public/error-reporter.js
@@ -136,6 +136,22 @@
// CDN script the pages load.
// Whole-word match so a genuine first-party method is never swallowed.
const INJECTED_OVERLAY_SYMBOL = /\bhideIndicator\b/;
+ // Injected wallet-provider (window.ethereum / injected Solana) errors. An
+ // injected EVM provider rejects window.ethereum.request(...) with EIP-1474
+ // "Internal JSON-RPC error." when its upstream node errors, and rejects with a
+ // user-cancellation string when the user dismisses the wallet popup — both as a
+ // plain object (caught name "Object"), not an Error. None of these strings are
+ // produced by any first-party three.ws code: the wallet extension owns the
+ // transport. They reach us from pages that merely co-exist with a wallet
+ // extension (e.g. /trending) and are unfixable from our deploy. Match the
+ // canonical messages exactly so a genuine first-party error can never collide.
+ const WALLET_RPC_NOISE =
+ /^Internal JSON-RPC error\.?$/i.source +
+ '|^User rejected( the)? request' +
+ '|^User denied ' +
+ '|^Already processing eth_requestAccounts' +
+ '|^Request of type \'wallet_';
+ const WALLET_RPC_NOISE_RE = new RegExp(WALLET_RPC_NOISE, 'i');
// WebKit and Chromium phrasings for "read property `prop` of null/undefined".
// Capture group 1 is the property name in both engines.
const PROP_ACCESS_TYPEERROR =
@@ -276,6 +292,15 @@
) {
return true;
}
+ // Injected wallet-provider RPC errors and user-cancellations — the wallet
+ // extension's transport, never our code (see WALLET_RPC_NOISE_RE).
+ if (
+ (report.type === 'unhandledrejection' || report.type === 'error' || report.type === 'manual') &&
+ report.message &&
+ WALLET_RPC_NOISE_RE.test(report.message.trim())
+ ) {
+ return true;
+ }
// A stackless network-layer fetch rejection (Load failed / Failed to fetch /
// NetworkError) — a user network drop or an expired/deleted asset, not a
// code fault. No stack means nothing actionable; the viewer surface already
diff --git a/public/features.json b/public/features.json
index 4a5416b0f..e4e53ff50 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-29T21:41:44.083Z",
+ "generated_at": "2026-06-29T22:31:47.532Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index fccd48d01..1d025d42c 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,6 +56,25 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:type" content="website">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:title" content="Sitemap · three.ws">
+ <meta property="og:description" content="Human-readable index of every page on three.ws.">
+ <meta property="og:url" content="https://three.ws/sitemap">
+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:type" content="image/png">
+ <meta property="og:image:alt" content="Sitemap — three.ws">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:site" content="@trythreews">
+ <meta name="twitter:title" content="Sitemap · three.ws">
+ <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script>
</head>
<body>
<header class="sm-topbar">
diff --git a/tests/env-database-url.test.js b/tests/env-database-url.test.js
index 4a992421a..23dd846dc 100644
--- a/tests/env-database-url.test.js
+++ b/tests/env-database-url.test.js
@@ -70,6 +70,44 @@ describe('env.DATABASE_URL connection-string resolution', () => {
expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
});
+ // A connection string pasted WITH its surrounding quotes survives cred()'s
+ // whitespace trim but fails the postgres:// scheme guard (it starts with `"`),
+ // so the alias was silently skipped and resolution reported MISSING even though
+ // a valid URL was present — neon() also throws "is not a valid URL" on the raw
+ // quoted value. Both quote styles must be unwrapped.
+ it('strips surrounding double quotes (dashboard paste)', () => {
+ process.env.DATABASE_URL = '"postgresql://u:[email protected]/main"';
+ expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
+ expect(databaseConfigured()).toBe(true);
+ });
+
+ it('strips surrounding single quotes', () => {
+ process.env.DATABASE_URL = "'postgresql://u:[email protected]/main'";
+ expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
+ });
+
+ it('strips quotes plus surrounding whitespace together', () => {
+ process.env.DATABASE_URL = ' "postgresql://u:[email protected]/main" ';
+ expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
+ });
+
+ // A value copied straight from a `psql …` connect command keeps the command
+ // prefix; strip it (and an optional `-d`), including when the URL is quoted.
+ it('strips an accidental "psql " shell-copy prefix', () => {
+ process.env.DATABASE_URL = 'psql postgresql://u:[email protected]/main';
+ expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
+ });
+
+ it('strips a "psql -d \'<url>\'" prefix with quotes', () => {
+ process.env.DATABASE_URL = `psql -d 'postgresql://u:[email protected]/main'`;
+ expect(env.DATABASE_URL).toBe('postgresql://u:[email protected]/main');
+ });
+
+ it('a quoted alias is recovered when the canonical name is absent', () => {
+ process.env.POSTGRES_URL = '"postgres://u:[email protected]/main"';
+ expect(env.DATABASE_URL).toBe('postgres://u:[email protected]/main');
+ });
+
it('ignores a non-postgres value on a higher-priority name and falls through', () => {
// A stray/garbage value on DATABASE_URL must not shadow a real URL on an alias.
process.env.DATABASE_URL = 'not-a-connection-string';
diff --git a/workers/agent-mm/config.js b/workers/agent-mm/config.js
index 17f61a771..fe0e52ec3 100644
--- a/workers/agent-mm/config.js
+++ b/workers/agent-mm/config.js
@@ -7,6 +7,18 @@
// MM_MODE=live — real floor-defense / recycle fills from agent wallets
// MM_GLOBAL_KILL=1 — halt all MM actions (policies untouched; kill/withdraw still work)
+import { databaseConfigured } from '../../api/_lib/env.js';
+
+// The Postgres connection string may arrive under DATABASE_URL or any standard
+// Vercel-Postgres/Neon alias (POSTGRES_URL, NEON_DATABASE_URL, …). db.js resolves
+// the live connection from that alias set, so assert configuration the same way
+// rather than hard-requiring the bare DATABASE_URL name at boot.
+function requireDatabase(scope) {
+ if (!databaseConfigured()) {
+ throw new Error(`[${scope}] missing required env var: DATABASE_URL (or a POSTGRES_URL/NEON_DATABASE_URL alias)`);
+ }
+}
+
function req(name) {
const v = process.env[name];
if (!v || !String(v).trim()) throw new Error(`[agent-mm] missing required env var: ${name}`);
@@ -26,7 +38,7 @@ function bool(name, def = false) {
export function loadConfig() {
// DATABASE_URL + JWT_SECRET are consumed transitively by db.js / agent-wallet.js.
- req('DATABASE_URL');
+ requireDatabase('agent-mm');
req('JWT_SECRET');
const network = (process.env.MM_NETWORK || 'mainnet').trim();
diff --git a/workers/agent-orders/config.js b/workers/agent-orders/config.js
index 2b869c83d..a66864ae1 100644
--- a/workers/agent-orders/config.js
+++ b/workers/agent-orders/config.js
@@ -1,11 +1,21 @@
// agent-orders — environment + runtime configuration. Validated once at boot so
// a misconfigured worker fails loudly instead of trading with half a config.
+import { databaseConfigured } from '../../api/_lib/env.js';
+
function req(name) {
const v = process.env[name];
if (!v || !String(v).trim()) throw new Error(`[agent-orders] missing required env var: ${name}`);
return v;
}
+// The Postgres connection string may arrive under DATABASE_URL or any standard
+// Vercel-Postgres/Neon alias; db.js resolves the live connection from that set,
+// so assert configuration the same way rather than hard-requiring the bare name.
+function requireDatabase(scope) {
+ if (!databaseConfigured()) {
+ throw new Error(`[${scope}] missing required env var: DATABASE_URL (or a POSTGRES_URL/NEON_DATABASE_URL alias)`);
+ }
+}
function num(name, def) {
const raw = process.env[name];
if (raw == null || raw === '') return def;
@@ -19,7 +29,7 @@ function bool(name, def = false) {
}
export function loadConfig() {
- req('DATABASE_URL');
+ requireDatabase('agent-orders');
req('JWT_SECRET');
const network = (process.env.ORDERS_NETWORK || 'mainnet').trim();
diff --git a/workers/agent-sniper/config.js b/workers/agent-sniper/config.js
index 9a82cf049..83b388205 100644
--- a/workers/agent-sniper/config.js
+++ b/workers/agent-sniper/config.js
@@ -4,6 +4,8 @@
// REQUIRED vars so a misconfigured worker fails loudly instead of trading with
// half a config. Optional vars get sane, conservative defaults.
+import { databaseConfigured } from '../../api/_lib/env.js';
+
function req(name) {
const v = process.env[name];
if (!v || !String(v).trim()) {
@@ -11,6 +13,14 @@ function req(name) {
}
return v;
}
+// The Postgres connection string may arrive under DATABASE_URL or any standard
+// Vercel-Postgres/Neon alias; db.js resolves the live connection from that set,
+// so assert configuration the same way rather than hard-requiring the bare name.
+function requireDatabase(scope) {
+ if (!databaseConfigured()) {
+ throw new Error(`[${scope}] missing required env var: DATABASE_URL (or a POSTGRES_URL/NEON_DATABASE_URL alias)`);
+ }
+}
function num(name, def) {
const raw = process.env[name];
@@ -29,7 +39,7 @@ export function loadConfig() {
// DATABASE_URL + JWT_SECRET are consumed transitively by db.js / agent-wallet.js.
// We assert them here so the failure points at config, not a cryptic decrypt
// error three layers deep on the first trade.
- req('DATABASE_URL');
+ requireDatabase('agent-sniper');
req('JWT_SECRET');
const network = (process.env.SNIPER_NETWORK || 'mainnet').trim();