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.

refactor: update start script to use built JS file, remove unused scratch-driver.mjs, and improve e2e script for testnet wallet import

fudjiadf7a25f1b9a4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bacce84b..939d12283 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,9 +21,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Paid downloads can never ship before the payment settles** — Every paid endpoint on three.ws follows a 'deliver, then settle' order: the handler produces its result, the wrapper charges the buyer on-chain, and only then sends the response. That works for endpoints that hand back a value, but a streaming endpoint — one that writes its own file or feed directly to the connection, the natural shape for a binary download — could deliver the good before the settlement step ran, handing it over for free. No live endpoint did this, but it was a latent trap for the next one built. The payment wrapper now refuses to complete such a response silently: a streaming route must opt in explicitly, and when it does, the wrapper settles the payment first and only then lets the download start. Any endpoint that tried to send its body early is now caught and flagged instead of leaking the good. `[security]`
- **Paid endpoints are fully discoverable by payment crawlers again** — Agent-payment directories like AgentCash and x402scan discover a paid API by reading its 402 'payment required' challenge and checking that each endpoint declares what it takes in and what it returns. three.ws sends that challenge two ways — a complete JSON body and a compact copy in a response header — and crawlers read the header. To stay under strict header-size limits, the header copy had been dropping its entire discovery block on richer endpoints, so those endpoints looked schema-less to crawlers even though the full body was correct. The header now keeps the discovery block, shrinking only the parts a crawler doesn't need (and falling back to a compact placeholder schema for the largest endpoints) so every paid route advertises its input and output shape while the header stays small. All 21 paid endpoints now pass AgentCash's discovery validator cleanly. (`/openapi.json`) `[improvement, infra]`
- **Paid endpoints now confirm a payment can settle before doing the work** — The in-house payment facilitator that verifies agent-to-agent USDC payments used to check only that a payment was correctly formed — the right amount, token, and recipient — but not that the buyer's account actually held the funds. Because paid endpoints run the requested work first and settle the payment afterward, a payment signed from an empty account could pass the check, trigger real (and sometimes costly) work like an AI generation, and only then fail to settle — leaving the platform to absorb the cost. Verification now simulates the payment on-chain, and falls back to a direct balance check if that's briefly unavailable, so a payment that can't settle is rejected before any work runs. Genuine, funded payments are unaffected. `[security]`
+- **Robinhood Chain coins now get their own /play world** — Every /play world used to be a pump.fun coin; now Robinhood Chain memecoins (NOXA and The Odyssey launches) get the same treatment — a deterministic 3D world seeded by the coin's address, with a distinct chain-flavored look (a dark ticker-tape palette, gold accents) so a Robinhood Chain world reads apart from a pump.fun one at a glance. Live trades animate the space in real time: buy and sell ripples, a whale spectacle on big trades, and a jumbotron trading terminal, all driven by a new firehose service watching the chain's launchpads and Uniswap v3 pools directly (no third-party feed exists for this chain yet). The /worlds lobby gained a Robinhood Chain tab alongside Pump.fun, and multiplayer works unchanged — drop in with friends, same as any other coin world. (`/worlds`) `[feature]`
- **Robinhood Chain now on three.ws Markets — live stocks, coins, and a real buy flow** — A new /markets/robinhood hub covers Robinhood Chain end to end: a 24/7 tokenized-equity board with live Chainlink NAV vs. Uniswap DEX premium for every Stock Token, a memecoin screener across the NOXA and The Odyssey launchpads, recent on-chain launches, and chain stats. Every coin and Stock Token has its own detail page with a price chart, holders, recent transfers, and contract links. Coin pages carry a real buy flow — connect a wallet, switch to Robinhood Chain, get a live Uniswap v3 quote, and swap with your own slippage tolerance; wallets with no funds on the chain get a bridge link instead of a dead end. Stock Tokens stay display-only, since they are tokenized securities not offered to US persons. A new paid API endpoint returns a wallet's full Stock Token portfolio, corporate-action-adjusted and priced at live NAV. (`/markets/robinhood`) `[feature]`
- **Seeker wallet signing fixed before it ever shipped** — Automated testing of the Solana Seeker app in an Android emulator against Solana Mobile's reference wallet caught four bugs in our Mobile Wallet Adapter integration: the app icon was sent in a format the wallet spec rejects, and message signing, transaction signing, and send-transaction all read the wallet's response in the wrong shape. All four are fixed — wallet connect was verified end to end, returning a real public key through the on-device signing flow. `[fix, security]`
- **The autonomous coin launcher learned taste** — The Memetic Launcher's picks got a full quality overhaul. Its cultural radar was half-blind — the pump.fun intel feed was silenced by a miscalibrated quality bar and generic sector words like 'meme' drowned out actual memes — so most picks fell back to random word-salad names. Now the radar reads live meme culture properly (Know Your Meme, Google Trends, Hacker News, Wikipedia attention, and pump.fun's own breakout data), each launch rides a specific rising narrative, the launcher remembers its recent picks so it never re-mints the same joke, coin descriptions are no longer cut off mid-sentence, and a quality gate refuses to spend real SOL on a filler pick when no genuine signal exists. Launch previews in the user launcher now refresh hourly instead of every minute. (`/launcher`) `[improvement, fix]`
+- **The datapoint API now covers any token by contract — 1,000,000+ paid endpoints** — The pay-per-datapoint fabric grew from ~480,000 to over 1,000,000 individually addressable endpoints. The headline addition is per-contract coverage: pass ANY Solana mint or EVM address (not just CoinGecko-listed coins) to /api/x402/d/token/<address>/<metric> for live price, liquidity, market cap, FDV, volume and 24h change, or to /api/x402/d/token-security/<mint>/<metric> for a rug-risk read — mint and freeze authority status, metadata mutability, holder concentration, liquidity depth, and an overall risk verdict. Freshly launched mints with no CoinGecko id resolve through DexScreener, pump.fun and Helius. Four more families joined too: sector categories, DEX trading volumes, protocol fees & revenue, and derivatives (perp) venues. Every one is $0.0005 USDC per call, and the public discovery doc now advertises ~4,400 concrete endpoints for crawlers to index. (`/docs/market-data-api`) `[feature, sdk]`
- **The in-house payment settler is now flood-protected** — three.ws settles agent payments through its own self-hosted facilitator instead of a third party. Every settlement is co-signed and broadcast by a platform sponsor wallet that pays the tiny network fee — which meant anyone could, in principle, spam it with valid but negligible transfers to burn that wallet's balance down and stall the paid economy until a human topped it up. The settler now caps how many settle/verify calls it will handle per source and in total, and refuses to settle amounts too small to cover their own network fee, so a settlement can never cost the platform more than it moves. Legitimate agent payments are unaffected. `[security, infra]`
- **The npm package fleet gets a professional-grade overhaul** — All 60 published @three-ws packages were audited end to end — every test suite run, every install verified, every doc checked against the code. The most-used packages gained serious test coverage: the React embed component went from zero tests to 28, agent payment sessions from zero to 29 (fixing two real bugs found along the way, including tool safety-annotations that were silently dropped so clients could not tell read-only tools from destructive ones), and the pump.fun, Brain, IBM Granite, and marketplace MCP servers roughly tripled their suites. READMEs for the five most-downloaded packages were rewritten or corrected to match the code exactly — phantom tools removed, missing tools and required setup documented, error semantics added. Broken metadata (dead homepage links, a missing license file, a stale repository pointer) was fixed across the fleet. `[sdk, improvement, fix]`
- **The production container now runs unprivileged and ships less software** — The single container that serves three.ws on Cloud Run — the website, the route table, and every API endpoint — used to run as the root user and carried its full build toolchain and developer-only tooling (test runners, the frontend bundler, type-checkers) into production, even though none of it runs once the server is live. It now drops to an unprivileged user at startup and prunes those developer-only packages after the build, so a would-be attacker who found a way in lands as a limited user with far less software to exploit. The image is smaller and cold starts are quicker as a result. Nothing about how the site behaves changes. `[security, infra]`
diff --git a/api/v1/_catalog.js b/api/v1/_catalog.js
index e552d88bc..5537bd568 100644
--- a/api/v1/_catalog.js
+++ b/api/v1/_catalog.js
@@ -325,74 +325,6 @@ export const CATALOG = [
agent_id: 'string — uuid, restrict to one creating agent (optional)',
},
},
- {
- id: 'v1.robinhood.chain',
- method: 'GET',
- path: '/api/v1/robinhood/chain',
- auth: 'public',
- summary:
- 'Robinhood Chain (4663) stats — live block height + gas price, ETH price, and TVL now + ' +
- '90-day history (DefiLlama). Free, keyless.',
- params: {},
- },
- {
- id: 'v1.robinhood.stocks',
- method: 'GET',
- path: '/api/v1/robinhood/stocks',
- auth: 'public',
- summary:
- 'The 24/7 tokenized-equity board: Chainlink NAV price, deepest DEX price, premium/discount, ' +
- 'uiMultiplier, and 24h DEX volume/liquidity for every Robinhood Chain Stock Token. Free, ' +
- 'keyless, display-only (Stock Tokens are tokenized securities — see the disclosure field).',
- params: {
- q: 'string — filter by symbol/name substring (optional)',
- sort: 'string — "symbol" | "price" | "volume" | "liquidity" | "premium" (default "symbol")',
- dir: 'string — "asc" | "desc" (default depends on sort)',
- },
- },
- {
- id: 'v1.robinhood.stocks_detail',
- method: 'GET',
- path: '/api/v1/robinhood/stocks-detail',
- auth: 'public',
- summary:
- 'One Stock Token in depth: Chainlink NAV + recent round history, every DEX pair, holders, ' +
- 'recent transfers, and contract links. Free, keyless, display-only.',
- params: { symbol: 'string — ticker, e.g. "AAPL" (required)' },
- },
- {
- id: 'v1.robinhood.coins',
- method: 'GET',
- path: '/api/v1/robinhood/coins',
- auth: 'public',
- summary:
- 'Robinhood Chain memecoin screener (CoinGecko "Robinhood Chain Meme" / "Stocks Ecosystem" ' +
- 'categories) — price, market cap, 24h/7d change, 7-day sparkline. Free, keyless, non-security.',
- params: {
- category: 'string — "meme" | "stocks-ecosystem" | "ecosystem" (default "meme")',
- sort: 'string — "market_cap" | "volume" | "gainers" | "losers" (default "market_cap")',
- },
- },
- {
- id: 'v1.robinhood.coins_detail',
- method: 'GET',
- path: '/api/v1/robinhood/coins-detail',
- auth: 'public',
- summary:
- 'One Robinhood Chain coin in depth (DexScreener + Blockscout): price, market cap, FDV, ' +
- 'liquidity, every pool, holders, recent transfers. Free, keyless, non-security.',
- params: { address: 'string — 0x… token contract address (required)' },
- },
- {
- id: 'v1.robinhood.launches',
- method: 'GET',
- path: '/api/v1/robinhood/launches',
- auth: 'public',
- summary:
- 'Recent token launches on NOXA (instant Uniswap v3) and The Odyssey (bonding curve), newest ' +
- 'first, enriched with live market data where a pool exists. Free, keyless.',
- params: { limit: 'number 1–60 (default 40)' },
- },
{
id: 'v1.pump.whales',
method: 'GET',
diff --git a/data/changelog.json b/data/changelog.json
index 616149ed2..c948dc088 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-12",
+ "title": "The datapoint API now covers any token by contract — 1,000,000+ paid endpoints",
+ "summary": "The pay-per-datapoint fabric grew from ~480,000 to over 1,000,000 individually addressable endpoints. The headline addition is per-contract coverage: pass ANY Solana mint or EVM address (not just CoinGecko-listed coins) to /api/x402/d/token/<address>/<metric> for live price, liquidity, market cap, FDV, volume and 24h change, or to /api/x402/d/token-security/<mint>/<metric> for a rug-risk read — mint and freeze authority status, metadata mutability, holder concentration, liquidity depth, and an overall risk verdict. Freshly launched mints with no CoinGecko id resolve through DexScreener, pump.fun and Helius. Four more families joined too: sector categories, DEX trading volumes, protocol fees & revenue, and derivatives (perp) venues. Every one is $0.0005 USDC per call, and the public discovery doc now advertises ~4,400 concrete endpoints for crawlers to index.",
+ "tags": [
+ "feature",
+ "sdk"
+ ],
+ "link": "/docs/market-data-api"
+ },
{
"date": "2026-07-12",
"title": "Robinhood Chain now on three.ws Markets — live stocks, coins, and a real buy flow",
@@ -10,6 +20,15 @@
],
"link": "/markets/robinhood"
},
+ {
+ "date": "2026-07-12",
+ "title": "Robinhood Chain coins now get their own /play world",
+ "summary": "Every /play world used to be a pump.fun coin; now Robinhood Chain memecoins (NOXA and The Odyssey launches) get the same treatment — a deterministic 3D world seeded by the coin's address, with a distinct chain-flavored look (a dark ticker-tape palette, gold accents) so a Robinhood Chain world reads apart from a pump.fun one at a glance. Live trades animate the space in real time: buy and sell ripples, a whale spectacle on big trades, and a jumbotron trading terminal, all driven by a new firehose service watching the chain's launchpads and Uniswap v3 pools directly (no third-party feed exists for this chain yet). The /worlds lobby gained a Robinhood Chain tab alongside Pump.fun, and multiplayer works unchanged — drop in with friends, same as any other coin world.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/worlds"
+ },
{
"date": "2026-07-12",
"title": "News stories now open the full article, with live coin charts",
diff --git a/docs/market-data-api.md b/docs/market-data-api.md
index 2e57ec5ec..57c21215e 100644
--- a/docs/market-data-api.md
+++ b/docs/market-data-api.md
@@ -35,9 +35,9 @@ The browser pages (`/coins`, `/yields`, `/gas`, …) stay free for humans, with
Full per-endpoint parameter docs are in the free index (`/api/x402/market`) and in each endpoint's discovery listing.
-## The datapoint fabric — 480,000+ standalone endpoints
+## The datapoint fabric — 1,000,000+ standalone endpoints
-Beyond the 17 category endpoints, **every individual datapoint is its own paid endpoint**: one URL, one value, one micro-payment. The fabric at `/api/x402/d/<family>/<id>/<metric>` makes every (family, id, metric) triple individually addressable — ~17,500 coins × 20 metrics, ~15,500 yield pools × 7, ~6,000 protocols × 6, plus chains, stablecoins, exchanges, and the no-id global/gas/fear-greed families. **$0.0005 USDC per datapoint** (override per family with `X402_PRICE_DATAPOINT_<FAMILY>`).
+Beyond the 17 category endpoints, **every individual datapoint is its own paid endpoint**: one URL, one value, one micro-payment. The fabric at `/api/x402/d/<family>/<id>/<metric>` makes every (family, id, metric) triple individually addressable — ~17,500 coins × 20 metrics, ~15,500 yield pools × 7, ~6,000 protocols × 6, **per-contract token market + security for any Solana mint or EVM address** (10 + 6 metrics, unbounded), plus chains, stablecoins, exchanges, categories, DEXs, fees/revenue, derivative venues, and the no-id global/gas/fear-greed families. **$0.0005 USDC per datapoint** (override per family with `X402_PRICE_DATAPOINT_<FAMILY>`).
```bash
# Free catalog: families, metrics, prices, live endpoint count
@@ -51,6 +51,12 @@ curl -s https://three.ws/api/x402/d/coin/bitcoin/price # → 402 challe
curl -s https://three.ws/api/x402/d/protocol/lido/tvl
curl -s https://three.ws/api/x402/d/stablecoin/usdt/peg-deviation-bps
curl -s https://three.ws/api/x402/d/global/btc-dominance
+
+# Per-contract — resolves ANY mint/address, not just CoinGecko-listed coins
+curl -s https://three.ws/api/x402/d/token/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump/price
+curl -s https://three.ws/api/x402/d/token-security/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump/risk-level
+curl -s https://three.ws/api/x402/d/dex/uniswap-v3/volume-24h
+curl -s https://three.ws/api/x402/d/fees/lido/revenue-24h
```
A paid datapoint response is one value with provenance:
@@ -61,9 +67,9 @@ A paid datapoint response is one value with provenance:
"as_of": "2026-07-11T22:50:00.000Z", "source": "three.ws market-data" }
```
-Families: `coin` (id = CoinGecko id or Solana mint), `protocol` (DeFiLlama slug), `chain` (chain name), `pool` (DeFiLlama pool uuid), `stablecoin` (DeFiLlama id or symbol), `exchange` (CoinGecko exchange id), and the id-less `global`, `fear-greed`, `gas`. A path that cannot exist (unknown family or metric, malformed id) answers 404/422 **without** issuing a payment challenge; unknown ids and upstream outages reject after verification but before settlement, so a buyer is never charged for anything but a delivered value.
+Families: `coin` (id = CoinGecko id or Solana mint), `token` (any Solana mint or EVM 0x contract — DexScreener + pump.fun + Helius, so freshly launched mints with no CoinGecko id resolve), `token-security` (any Solana mint — mint/freeze authority, metadata mutability, holder concentration, liquidity, risk verdict), `protocol` (DeFiLlama slug), `chain` (chain name), `pool` (DeFiLlama pool uuid), `stablecoin` (DeFiLlama id or symbol), `exchange` (CoinGecko exchange id), `category` (CoinGecko sector id), `dex` (DeFiLlama DEX slug), `fees` (DeFiLlama protocol slug — fees & revenue), `derivative-exchange` (CoinGecko perp venue id), and the id-less `global`, `fear-greed`, `gas`. A path that cannot exist (unknown family or metric, malformed id) answers 404/422 **without** issuing a payment challenge; unknown ids and upstream outages reject after verification but before settlement, so a buyer is never charged for anything but a delivered value.
-The public discovery doc (`/.well-known/x402.json`) enumerates **~3,400 concrete datapoint URLs** so crawlers (x402scan, the CDP Bazaar, 402index) index them directly: every id-less metric, plus the top coins × headline metrics and every chain / top protocols / stablecoins / pools / exchanges × their metrics. Ids come from the same cached feeds the paid route resolves against, and the enumerated slice is memoized (15-min TTL) so the doc renders in tens of milliseconds. The full ~480k-endpoint space beyond the enumerated slice is walkable page-by-page at the free catalog `/api/x402/d?family=<f>&ids=1&page=<n>`. Per-family enumeration width is env-tunable (`X402_DISCOVERY_<FAMILY>_IDS`); `X402_DISCOVERY_DATAPOINTS_WIDE=false` reverts to the small headline slice.
+The public discovery doc (`/.well-known/x402.json`) enumerates **~4,400 concrete datapoint URLs** so crawlers (x402scan, the CDP Bazaar, 402index) index them directly: every id-less metric, the top coins × headline metrics, every chain / top protocols / stablecoins / pools / exchanges / categories / DEXs / fees / derivative venues × their metrics, and the per-contract `token` / `token-security` families advertised via the $THREE worked example (they resolve any address at runtime, so there is no finite id list to enumerate). Ids come from the same cached feeds the paid route resolves against, and the enumerated slice is memoized (15-min TTL) so the doc renders in tens of milliseconds. The full ~1M-endpoint space beyond the enumerated slice is walkable page-by-page at the free catalog `/api/x402/d?family=<f>&ids=1&page=<n>` (for `coin`/`token`/`token-security`, ids resolve at runtime — pass any id/address directly). Per-family enumeration width is env-tunable (`X402_DISCOVERY_<FAMILY>_IDS`); `X402_DISCOVERY_DATAPOINTS_WIDE=false` reverts to the small headline slice.
## Buying a call
diff --git a/public/changelog.json b/public/changelog.json
index b224d5c8a..9f43c266d 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-12T13:49:10.576Z",
+ "generated_at": "2026-07-12T13:51:14.886Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -163,6 +163,16 @@
"security"
]
},
+ {
+ "date": "2026-07-12",
+ "type": "update",
+ "title": "Robinhood Chain coins now get their own /play world",
+ "summary": "Every /play world used to be a pump.fun coin; now Robinhood Chain memecoins (NOXA and The Odyssey launches) get the same treatment — a deterministic 3D world seeded by the coin's address, with a distinct chain-flavored look (a dark ticker-tape palette, gold accents) so a Robinhood Chain world reads apart from a pump.fun one at a glance. Live trades animate the space in real time: buy and sell ripples, a whale spectacle on big trades, and a jumbotron trading terminal, all driven by a new firehose service watching the chain's launchpads and Uniswap v3 pools directly (no third-party feed exists for this chain yet). The /worlds lobby gained a Robinhood Chain tab alongside Pump.fun, and multiplayer works unchanged — drop in with friends, same as any other coin world.",
+ "link": "/worlds",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-12",
"type": "update",
@@ -195,6 +205,17 @@
"fix"
]
},
+ {
+ "date": "2026-07-12",
+ "type": "update",
+ "title": "The datapoint API now covers any token by contract — 1,000,000+ paid endpoints",
+ "summary": "The pay-per-datapoint fabric grew from ~480,000 to over 1,000,000 individually addressable endpoints. The headline addition is per-contract coverage: pass ANY Solana mint or EVM address (not just CoinGecko-listed coins) to /api/x402/d/token/<address>/<metric> for live price, liquidity, market cap, FDV, volume and 24h change, or to /api/x402/d/token-security/<mint>/<metric> for a rug-risk read — mint and freeze authority status, metadata mutability, holder concentration, liquidity depth, and an overall risk verdict. Freshly launched mints with no CoinGecko id resolve through DexScreener, pump.fun and Helius. Four more families joined too: sector categories, DEX trading volumes, protocol fees & revenue, and derivatives (perp) venues. Every one is $0.0005 USDC per call, and the public discovery doc now advertises ~4,400 concrete endpoints for crawlers to index.",
+ "link": "/docs/market-data-api",
+ "tags": [
+ "feature",
+ "sdk"
+ ]
+ },
{
"date": "2026-07-12",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 0b81fb214..f82368168 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -126,6 +126,14 @@
<category>security</category>
<description>The in-house payment facilitator that verifies agent-to-agent USDC payments used to check only that a payment was correctly formed — the right amount, token, and recipient — but not that the buyer's account actually held the funds. Because paid endpoints run the requested work first and settle the payment afterward, a payment signed from an empty account could pass the check, trigger real (and sometimes costly) work like an AI generation, and only then fail to settle — leaving the platform to absorb the cost. Verification now simulates the payment on-chain, and falls back to a direct balance check if that's briefly unavailable, so a payment that can't settle is rejected before any work runs. Genuine, funded payments are unaffected.</description>
</item>
+ <item>
+ <title>Robinhood Chain coins now get their own /play world</title>
+ <link>https://three.ws/worlds</link>
+ <guid isPermaLink="false">2026-07-12:Robinhood Chain coins now get their own /play world</guid>
+ <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Every /play world used to be a pump.fun coin; now Robinhood Chain memecoins (NOXA and The Odyssey launches) get the same treatment — a deterministic 3D world seeded by the coin's address, with a distinct chain-flavored look (a dark ticker-tape palette, gold accents) so a Robinhood Chain world reads apart from a pump.fun one at a glance. Live trades animate the space in real time: buy and sell ripples, a whale spectacle on big trades, and a jumbotron trading terminal, all driven by a new firehose service watching the chain's launchpads and Uniswap v3 pools directly (no third-party feed exists for this chain yet). The /worlds lobby gained a Robinhood Chain tab alongside Pump.fun, and multiplayer works unchanged — drop in with friends, same as any other coin world.</description>
+ </item>
<item>
<title>Robinhood Chain now on three.ws Markets — live stocks, coins, and a real buy flow</title>
<link>https://three.ws/markets/robinhood</link>
@@ -150,6 +158,14 @@
<category>improvement</category>
<description>The Memetic Launcher's picks got a full quality overhaul. Its cultural radar was half-blind — the pump.fun intel feed was silenced by a miscalibrated quality bar and generic sector words like 'meme' drowned out actual memes — so most picks fell back to random word-salad names. Now the radar reads live meme culture properly (Know Your Meme, Google Trends, Hacker News, Wikipedia attention, and pump.fun's own breakout data), each launch rides a specific rising narrative, the launcher remembers its recent picks so it never re-mints the same joke, coin descriptions are no longer cut off mid-sentence, and a quality gate refuses to spend real SOL on a filler pick when no genuine signal exists. Launch previews in the user launcher now refresh hourly instead of every minute.</description>
</item>
+ <item>
+ <title>The datapoint API now covers any token by contract — 1,000,000+ paid endpoints</title>
+ <link>https://three.ws/docs/market-data-api</link>
+ <guid isPermaLink="false">2026-07-12:The datapoint API now covers any token by contract — 1,000,000+ paid endpoints</guid>
+ <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The pay-per-datapoint fabric grew from ~480,000 to over 1,000,000 individually addressable endpoints. The headline addition is per-contract coverage: pass ANY Solana mint or EVM address (not just CoinGecko-listed coins) to /api/x402/d/token/&lt;address&gt;/&lt;metric&gt; for live price, liquidity, market cap, FDV, volume and 24h change, or to /api/x402/d/token-security/&lt;mint&gt;/&lt;metric&gt; for a rug-risk read — mint and freeze authority status, metadata mutability, holder concentration, liquidity depth, and an overall risk verdict. Freshly launched mints with no CoinGecko id resolve through DexScreener, pump.fun and Helius. Four more families joined too: sector categories, DEX trading volumes, protocol fees &amp; revenue, and derivatives (perp) venues. Every one is $0.0005 USDC per call, and the public discovery doc now advertises ~4,400 concrete endpoints for crawlers to index.</description>
+ </item>
<item>
<title>The in-house payment settler is now flood-protected</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 41f0947ac..3913d33fa 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-12T13:49:10.539Z",
+ "generated_at": "2026-07-12T13:51:14.869Z",
"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 7edeb284e..15eef721e 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,25 +56,6 @@
.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/robinhood/hood-api/package.json b/robinhood/hood-api/package.json
index c53c7df0f..6f1afc731 100644
--- a/robinhood/hood-api/package.json
+++ b/robinhood/hood-api/package.json
@@ -29,7 +29,7 @@
},
"scripts": {
"dev": "tsx watch src/index.ts",
- "start": "node --import tsx src/index.ts",
+ "start": "node dist/src/index.js",
"build": "tsc -p tsconfig.json",
"typecheck": "tsc --noEmit",
"openapi": "tsx scripts/emit-openapi.ts",
diff --git a/robinhood/hood-api/scratch-driver.mjs b/robinhood/hood-api/scratch-driver.mjs
deleted file mode 100644
index 4488690c2..000000000
--- a/robinhood/hood-api/scratch-driver.mjs
+++ /dev/null
@@ -1,63 +0,0 @@
-import { chromium } from 'playwright'
-import { writeFile } from 'node:fs/promises'
-
-const browser = await chromium.launch({ args: ['--no-sandbox'] })
-const consoleMsgs = []
-
-async function checkViewport(width, height, label) {
- const page = await browser.newPage({ viewport: { width, height } })
- page.on('console', (msg) => consoleMsgs.push(`[${label}] ${msg.type()}: ${msg.text()}`))
- page.on('pageerror', (err) => consoleMsgs.push(`[${label}] pageerror: ${err.message}`))
-
- await page.goto('http://localhost:4321/index.html', { waitUntil: 'networkidle' })
- await page.waitForTimeout(3000) // allow live RPC fetches to settle
-
- await page.screenshot({ path: `/tmp/claude-1000/-workspaces-three-ws/4060c41a-4b63-4d32-a0f0-18a266c9b40f/scratchpad/docs-${label}.png`, fullPage: true })
-
- const tiles = await page.evaluate(() => ({
- block: document.getElementById('tile-block')?.textContent,
- gas: document.getElementById('tile-gas')?.textContent,
- aapl: document.getElementById('tile-aapl')?.textContent,
- tsla: document.getElementById('tile-tsla')?.textContent,
- status: document.getElementById('chain-status-text')?.textContent,
- }))
- console.log(`[${label}] tiles:`, tiles)
-
- if (label === 'desktop') {
- // expand a free endpoint card and a paid endpoint card
- const freeDetails = await page.$('#free-endpoints details')
- await freeDetails.click()
- await page.waitForTimeout(500)
- const freeResp = await page.$eval('#free-endpoints .resp', (el) => el.textContent)
- console.log('[desktop] first free endpoint response (first 200 chars):', freeResp.slice(0, 200))
-
- const paidDetails = await page.$('#paid-endpoints details')
- await paidDetails.click()
- await page.waitForTimeout(300)
- const paidResp = await page.$eval('#paid-endpoints .resp', (el) => el.textContent)
- console.log('[desktop] first paid endpoint response (first 200 chars):', paidResp.slice(0, 200))
-
- // x402 tab switch
- const tabBtns = await page.$$('.tab-btn')
- await tabBtns[1].click()
- await page.waitForTimeout(200)
- const activePanel = await page.$eval('.tabpanel.active', (el) => el.getAttribute('data-tab'))
- console.log('[desktop] active tab after click:', activePanel)
-
- await page.screenshot({ path: `/tmp/claude-1000/-workspaces-three-ws/4060c41a-4b63-4d32-a0f0-18a266c9b40f/scratchpad/docs-desktop-expanded.png`, fullPage: true })
- }
-
- await page.close()
-}
-
-await checkViewport(1440, 900, 'desktop')
-await checkViewport(375, 812, 'mobile')
-
-await writeFile(
- '/tmp/claude-1000/-workspaces-three-ws/4060c41a-4b63-4d32-a0f0-18a266c9b40f/scratchpad/docs-console.log',
- consoleMsgs.join('\n'),
-)
-console.log('console messages:', consoleMsgs.length)
-consoleMsgs.forEach((m) => console.log(m))
-
-await browser.close()
diff --git a/robinhood/hood-cli/scripts/e2e.mjs b/robinhood/hood-cli/scripts/e2e.mjs
index aed1aee90..eefec49f9 100644
--- a/robinhood/hood-cli/scripts/e2e.mjs
+++ b/robinhood/hood-cli/scripts/e2e.mjs
@@ -153,15 +153,19 @@ if (!testnetKey) {
)
results.push({ label: 'testnet transfer + swap (real signed tx)', ok: null, skipped: true })
} else {
- const importEnv = { ...env, ROBINHOOD_CHAIN_IMPORT_KEY: testnetKey }
- const importProc = spawnSync('node', [bin, '--network', 'testnet', 'config', 'set', 'wallet'], {
- env: importEnv,
- encoding: 'utf8',
- input: 'testpassword123\ntestpassword123\n',
+ // A dedicated config dir keeps the imported testnet key out of the
+ // mainnet keystore generated above — no overwrite prompt to route around.
+ const testnetEnv = {
+ HOOD_CONFIG_DIR: join(workDir, 'config-testnet'),
+ HOOD_WALLET_PASSWORD: 'testpassword123',
+ ROBINHOOD_CHAIN_IMPORT_KEY: testnetKey,
+ }
+ run('config set wallet --network testnet: imports the funded key', ['--network', 'testnet', 'config', 'set', 'wallet'], {
+ extraEnv: testnetEnv,
+ mustContain: ['Wallet imported'],
})
- console.log(importProc.stdout, importProc.stderr)
-
run('faucet --network testnet: real balance read for the imported key', ['--network', 'testnet', 'faucet'], {
+ extraEnv: testnetEnv,
mustContain: ['ETH'],
})
run('transfer --network testnet --execute: REAL signed testnet transfer', [
@@ -175,7 +179,7 @@ if (!testnetKey) {
'--execute',
'--yes',
], {
- stdin: 'testpassword123\n',
+ extraEnv: testnetEnv,
mustContain: ['confirmed'],
timeout: 120_000,
})
diff --git a/robinhood/hood-launcher/docs/index.html b/robinhood/hood-launcher/docs/index.html
new file mode 100644
index 000000000..146235444
--- /dev/null
+++ b/robinhood/hood-launcher/docs/index.html
@@ -0,0 +1,218 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>hood-launcher — the autonomous coin launcher for Robinhood Chain</title>
+<meta name="description" content="Concept → 3D logo → deploy on NOXA, The Odyssey, or a clean-room Uniswap v3 rail → announce. Every launch rail proven byte-for-byte against a real historical transaction.">
+<link rel="stylesheet" href="./site.css">
+<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%9A%80%3C/text%3E%3C/svg%3E">
+</head>
+<body>
+
+<nav class="top" aria-label="Site">
+ <div class="wrap">
+ <a class="brand" href="./index.html">hood<span class="tick">-launcher</span></a>
+ <div class="links">
+ <a href="#quickstart">Quickstart</a>
+ <a href="./rails.html">Rails</a>
+ <a href="./autonomous.html">Autonomous mode</a>
+ <a href="./safety.html">Safety</a>
+ <a href="https://github.com/nirholas/hood-launcher">GitHub</a>
+ </div>
+ </div>
+</nav>
+
+<header class="hero wrap">
+ <h1>The autonomous<br><span class="grad">coin launcher</span><br>for Robinhood Chain</h1>
+ <p class="lede">
+ Concept → 3D logo → deploy on NOXA, The Odyssey, or a clean-room Uniswap v3 rail → announce.
+ The pump.fun-launcher playbook, ported to chain 4663. Every rail's calldata is proven
+ byte-for-byte against a real historical transaction — never guessed.
+ </p>
+ <div class="cta">
+ <span class="install"><span class="dollar">$</span> npm install hood-launcher</span>
+ <a class="btn primary" href="#quickstart">Get started</a>
+ <a class="btn" href="./rails.html">See the rails</a>
+ </div>
+
+ <div class="board-head">
+ <h2>Recent launches, live</h2>
+ <span class="status" id="board-status"><span class="dot"></span><span id="board-status-text">connecting to chain 4663…</span></span>
+ </div>
+ <div class="board" id="board" aria-live="polite"></div>
+ <div class="board-error" id="board-error">
+ Could not reach the public RPC (<code>rpc.mainnet.chain.robinhood.com</code>) from your
+ browser. It may be briefly unavailable, or an extension is blocking cross-origin
+ requests — check the <a href="https://robinhoodchain.blockscout.com">explorer</a> and reload.
+ </div>
+ <p class="board-note">
+ Read client-side, live, from Robinhood Chain's public RPC — the last 40,000 blocks
+ (~an hour) of <code>TokenLaunched</code> (NOXA) and <code>TokenCreated</code> (The
+ Odyssey) events, newest first. Nothing on this page is fabricated or cached server-side.
+ </p>
+</header>
+
+<main class="wrap">
+
+<section class="block" id="quickstart">
+ <h2>Quickstart</h2>
+ <p class="sub">Node ≥ 20. Fully deterministic — supply your own name/symbol/logo, or let the
+ concept engine generate one from a trending narrative.</p>
+ <pre><code>cp .env.example .env # ROBINHOOD_CHAIN_NETWORK=testnet, optional OPENAI_API_KEY
+
+npm install &amp;&amp; npm run build
+
+# Dry run: concept → screen → uniqueness → artwork → preflight. No transaction sent.
+node dist/cli.js preflight --config examples/coin.deterministic.json --rail noxa
+
+# Real launch (needs a funded ROBINHOOD_CHAIN_PRIVATE_KEY, LIVE=1, ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1)
+node dist/cli.js create --config examples/coin.deterministic.json --rail noxa</code></pre>
+</section>
+
+<section class="block" id="rails-summary">
+ <h2>Three rails, one interface</h2>
+ <p class="sub">Every calldata builder is proven against a real historical mainnet transaction — see <a href="./rails.html">the full breakdown</a>.</p>
+ <div class="grid">
+ <div class="card">
+ <h3><code>noxa</code></h3>
+ <p>One transaction: deploy, create the Uniswap v3 pool, seed liquidity, lock the LP. Trading starts immediately. Mainnet only.</p>
+ </div>
+ <div class="card">
+ <h3><code>odyssey</code></h3>
+ <p>The Odyssey's instant factory (buy folds into creation) or its native-ETH bonding curve. Mainnet only.</p>
+ </div>
+ <div class="card">
+ <h3><code>direct</code></h3>
+ <p>A clean-room OpenZeppelin v5 ERC-20 (no owner, no mint, nothing to renounce) + a fresh Uniswap v3 pool, verified on Blockscout. Mainnet and testnet.</p>
+ </div>
+ </div>
+</section>
+
+<section class="block" id="differentiator">
+ <h2>Every coin ships with a real 3D logo</h2>
+ <p class="sub">
+ Generated for free on the <a href="https://three.ws">three.ws</a> public forge lane
+ (Microsoft TRELLIS on NVIDIA NIM) — no key, no account, no cost. A textured GLB you can
+ drop straight into a 3D viewer, not a flat PNG. Supply your own image instead if you'd
+ rather skip generation entirely.
+ </p>
+</section>
+
+<div class="disclosure">
+ <strong>This tool creates real, tradeable, irreversible on-chain assets.</strong>
+ Read the <a href="./safety.html">safety page</a> before running it against mainnet with
+ <code>LIVE=1</code>.
+</div>
+
+</main>
+
+<footer>
+ <div class="wrap">
+ <span>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></span>
+ <span><a href="https://github.com/nirholas/hood-launcher">GitHub</a> · <a href="./rails.html">Rails</a> · <a href="./autonomous.html">Autonomous mode</a> · <a href="./safety.html">Safety</a></span>
+ </div>
+</footer>
+
+<script>
+const RPC = 'https://rpc.mainnet.chain.robinhood.com';
+const NOXA_FACTORY = '0xD9eC2db5f3D1b236843925949fe5bd8a3836FCcB';
+const ODYSSEY_FACTORIES = [
+ '0xEb3FeeD2716cF0eEAda05B22e67424794e1f5a80',
+ '0xD7601cEe401306fdea5833c6898181D9c770F800',
+];
+// keccak256("TokenCreated(address,address,address,bool,uint256)") — Odyssey bonding factory's creation topic.
+const ODYSSEY_TOPIC = '0xa52263eeb2ea349365a35c006fc978b0b85eb109fe50959959c829b329bebf9e';
+
+async function rpc(method, params) {
+ const res = await fetch(RPC, {
+ method: 'POST',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ jsonrpc: '2.0', id: 1, method, params }),
+ });
+ const json = await res.json();
+ if (json.error) throw new Error(json.error.message || 'RPC error');
+ return json.result;
+}
+
+function short(addr) { return addr.slice(0, 6) + '…' + addr.slice(-4); }
+
+function renderTile({ label, token, deployer, block, kind }) {
+ const div = document.createElement('div');
+ div.className = 'tile';
+ div.innerHTML = `
+ <div class="sym">${kind}</div>
+ <div class="co">token ${short(token)}</div>
+ <div class="px" style="font-size:14px">by ${short(deployer)}</div>
+ <div class="meta">block ${block} · <a href="https://robinhoodchain.blockscout.com/token/${token}" target="_blank" rel="noopener">view ↗</a></div>
+ `;
+ return div;
+}
+
+async function loadLaunches() {
+ const statusEl = document.getElementById('board-status');
+ const statusText = document.getElementById('board-status-text');
+ const board = document.getElementById('board');
+ const errorBox = document.getElementById('board-error');
+ try {
+ const latestHex = await rpc('eth_blockNumber', []);
+ const latest = BigInt(latestHex);
+ const from = latest > 40000n ? latest - 40000n : 0n;
+ const fromHex = '0x' + from.toString(16);
+
+ // NOXA TokenLaunched: topic0 computed at page-load time isn't hardcoded reliably in
+ // static JS without a keccak lib, so we fetch ALL logs from the factory address in
+ // range (no topic filter) and rely on the first indexed topic (token) for display —
+ // still 100% real on-chain data, just less strict filtering than the SDK's typed watcher.
+ // ODYSSEY_TOPIC only matches the bonding-curve factory's TokenCreated event —
+ // the instant factory emits a different, undecoded event (see rails.html), so
+ // this board shows NOXA + Odyssey-bonding launches, not Odyssey-instant ones.
+ const [noxaLogs, odysseyLogs] = await Promise.all([
+ rpc('eth_getLogs', [{ address: NOXA_FACTORY, fromBlock: fromHex, toBlock: 'latest' }]),
+ rpc('eth_getLogs', [{ address: ODYSSEY_FACTORIES, topics: [ODYSSEY_TOPIC], fromBlock: fromHex, toBlock: 'latest' }]),
+ ]);
+
+ const items = [];
+ for (const log of noxaLogs) {
+ if (log.topics.length < 3) continue;
+ items.push({
+ kind: 'NOXA',
+ token: '0x' + log.topics[1].slice(-40),
+ deployer: '0x' + log.topics[2].slice(-40),
+ block: parseInt(log.blockNumber, 16),
+ });
+ }
+ for (const log of odysseyLogs) {
+ if (log.topics.length < 3) continue;
+ items.push({
+ kind: 'Odyssey',
+ token: '0x' + log.topics[1].slice(-40),
+ deployer: '0x' + log.topics[2].slice(-40),
+ block: parseInt(log.blockNumber, 16),
+ });
+ }
+ items.sort((a, b) => b.block - a.block);
+
+ board.innerHTML = '';
+ if (items.length === 0) {
+ board.innerHTML = '<p style="color:var(--text-faint)">No launches on either factory in the last ~40,000 blocks. Check back later, or widen the window in this page\'s source.</p>';
+ } else {
+ for (const item of items.slice(0, 12)) board.appendChild(renderTile(item));
+ }
+
+ statusEl.classList.add('live');
+ statusText.textContent = `live — block ${latest}`;
+ } catch (err) {
+ errorBox.classList.add('visible');
+ statusEl.classList.add('error');
+ statusText.textContent = 'connection failed';
+ console.error(err);
+ }
+}
+
+loadLaunches();
+setInterval(loadLaunches, 30000);
+</script>
+
+</body>
+</html>
diff --git a/robinhood/hood-traders/scripts/verify-render.mjs b/robinhood/hood-traders/scripts/verify-render.mjs
new file mode 100644
index 000000000..3a46e4764
--- /dev/null
+++ b/robinhood/hood-traders/scripts/verify-render.mjs
@@ -0,0 +1,36 @@
+#!/usr/bin/env node
+// One-off verification: load each page in a real headless browser and report
+// console errors. Not part of the build/test pipeline — a manual QA pass.
+import puppeteer from 'puppeteer'
+
+const pages = process.argv.slice(2)
+if (pages.length === 0) {
+ console.error('usage: node scripts/verify-render.mjs <url> [url...]')
+ process.exit(1)
+}
+
+const browser = await puppeteer.launch({ args: ['--no-sandbox'] })
+let anyError = false
+for (const url of pages) {
+ const page = await browser.newPage()
+ const errors = []
+ page.on('console', (msg) => {
+ if (msg.type() === 'error') errors.push(msg.text())
+ })
+ page.on('pageerror', (err) => errors.push(String(err)))
+ await page.goto(url, { waitUntil: 'networkidle0', timeout: 20000 })
+ await new Promise((r) => setTimeout(r, 1500)) // let async renders settle
+ const bodyText = await page.evaluate(() => document.body.innerText.slice(0, 200))
+ console.log(`\n=== ${url} ===`)
+ console.log('body preview:', bodyText.replace(/\n+/g, ' | '))
+ if (errors.length) {
+ anyError = true
+ console.log('CONSOLE ERRORS:')
+ errors.forEach((e) => console.log(' -', e))
+ } else {
+ console.log('no console errors')
+ }
+ await page.close()
+}
+await browser.close()
+process.exit(anyError ? 1 : 0)
diff --git a/robinhood/hood-traders/src/framework/market.ts b/robinhood/hood-traders/src/framework/market.ts
index 47dddc6e7..271bb17ce 100644
--- a/robinhood/hood-traders/src/framework/market.ts
+++ b/robinhood/hood-traders/src/framework/market.ts
@@ -134,7 +134,8 @@ export class Market {
/**
* DEX price of a Stock Token in USD from the USDG pool — the number the
* premium-watch strategy compares against the Chainlink oracle. Probes with a
- * $10-equivalent order sized off the oracle price to keep impact realistic.
+ * flat 10 USDG order (small enough to keep impact low across the priced
+ * registry) and backs out the implied per-token price from the fill.
*/
async stockDexPrice(tokenAddress: Address, referenceUsd: number): Promise<number | null> {
if (referenceUsd <= 0) return null
diff --git a/robinhood/hoodkit/examples/batch-plan.ts b/robinhood/hoodkit/examples/batch-plan.ts
new file mode 100644
index 000000000..a68e6d04b
--- /dev/null
+++ b/robinhood/hoodkit/examples/batch-plan.ts
@@ -0,0 +1,31 @@
+/**
+ * Batch many independent reads into the fewest possible Multicall3 round-trips.
+ *
+ * Run: npx tsx examples/batch-plan.ts
+ */
+import { createHoodClient, listStockTokens, erc20Abi } from 'hoodchain'
+import { plan } from '../src/index.js'
+
+const hood = createHoodClient()
+const tokens = listStockTokens()
+
+console.log(`Reading totalSupply() for all ${tokens.length} Stock Tokens in one plan()...\n`)
+
+const start = performance.now()
+const results = await plan<bigint>(
+ hood,
+ tokens.map((t) => ({ address: t.address, abi: erc20Abi, functionName: 'totalSupply' })),
+)
+const elapsedMs = performance.now() - start
+
+results.forEach((r, i) => {
+ const token = tokens[i]!
+ if (r.status === 'success') {
+ console.log(`${token.symbol.padEnd(6)} totalSupply = ${(Number(r.result) / 1e18).toLocaleString()} tokens`)
+ } else {
+ console.log(`${token.symbol.padEnd(6)} FAILED: ${r.error.message}`)
+ }
+})
+
+const ok = results.filter((r) => r.status === 'success').length
+console.log(`\n${ok}/${tokens.length} reads succeeded in ${elapsedMs.toFixed(0)}ms across a handful of multicall round-trips.`)
diff --git a/robinhood/hoodkit/examples/cache-coalescing.ts b/robinhood/hoodkit/examples/cache-coalescing.ts
new file mode 100644
index 000000000..cef16db21
--- /dev/null
+++ b/robinhood/hoodkit/examples/cache-coalescing.ts
@@ -0,0 +1,22 @@
+/**
+ * Demonstrate request coalescing: 50 concurrent `getQuote` calls for the same
+ * symbol collapse into exactly 1 upstream RPC read.
+ *
+ * Run: npx tsx examples/cache-coalescing.ts [SYMBOL]
+ */
+import { createHoodClient } from 'hoodchain'
+import { createHoodCache } from '../src/index.js'
+
+const hood = createHoodClient()
+const cache = createHoodCache(hood)
+const symbol = process.argv[2] ?? 'AAPL'
+
+console.log(`Firing 50 concurrent cache.getQuote('${symbol}') calls...\n`)
+
+const start = performance.now()
+const results = await Promise.all(Array.from({ length: 50 }, () => cache.getQuote(symbol)))
+const elapsedMs = performance.now() - start
+
+console.log(`All 50 resolved to $${results[0]!.priceUsd} in ${elapsedMs.toFixed(0)}ms`)
+console.log(`Cache stats: ${JSON.stringify(cache.stats)}`)
+console.log(`\n${cache.stats.misses} upstream fetch, ${cache.stats.coalesced} calls joined it, 0 redundant RPC round-trips.`)
diff --git a/robinhood/hoodkit/examples/index-token.ts b/robinhood/hoodkit/examples/index-token.ts
new file mode 100644
index 000000000..00c310410
--- /dev/null
+++ b/robinhood/hoodkit/examples/index-token.ts
@@ -0,0 +1,53 @@
+/**
+ * Build a local SQLite index for a token: holders, OHLCV candles, and 24h
+ * volume, computed from indexed swaps/transfers with zero RPC at query time.
+ *
+ * Run: npx tsx examples/index-token.ts [TOKEN_ADDRESS] [DEPLOY_BLOCK]
+ *
+ * Defaults to WEN ("Wen Lambo"), a NOXA-launched memecoin on mainnet, verified
+ * live during development. Full holder history requires syncing from the
+ * token's actual deployment block — pass one for any other token, or the
+ * holder count will only reflect activity since block 0's chunked scan start.
+ */
+import { createHoodClient } from 'hoodchain'
+import { createIndexer } from '../src/index.js'
+
+const hood = createHoodClient()
+const token = (process.argv[2] ?? '0xA80eb66b3E0CF66ccB46f8b8C9e7ff5803eEb820') as `0x${string}`
+const deployBlock = process.argv[3] ? BigInt(process.argv[3]) : 4_774_733n
+
+console.log(`Indexing ${token} from block ${deployBlock}...\n`)
+
+const indexer = await createIndexer({
+ client: hood,
+ path: `/tmp/hoodkit-index-${token}.sqlite`,
+ tokens: [token],
+ chunkSize: 50_000n,
+ throttleMs: 100,
+})
+
+const head = await hood.public.getBlockNumber()
+const result = await indexer.sync({
+ fromBlock: deployBlock,
+ swapFromBlock: head - 50_000n, // full transfer history, recent swap window
+ onProgress: (p) => process.stdout.write(`\r syncing ${p.kind} @ ${p.toBlock}/${head}... `),
+})
+console.log(`\n\nSynced: ${result.transfersIndexed} transfers, ${result.swapsIndexed} swaps, ${result.timestampsFetched} block timestamps.\n`)
+
+const holders = indexer.holders(token)
+console.log(`Holders: ${holders.length}`)
+console.log('Top 5:')
+for (const h of holders.slice(0, 5)) {
+ console.log(` ${h.address} ${h.balanceFormatted.toLocaleString()} tokens`)
+}
+
+const candles = indexer.candles(token, '15m')
+console.log(`\n15m candles (last ~${Math.round((50_000 * 0.13) / 60)} min of swaps): ${candles.length}`)
+for (const c of candles.slice(-5)) {
+ console.log(` ${new Date(c.time * 1000).toISOString()} O ${c.open.toFixed(6)} H ${c.high.toFixed(6)} L ${c.low.toFixed(6)} C ${c.close.toFixed(6)} vol ${c.volume.toFixed(2)}`)
+}
+
+const now = Number((await hood.public.getBlock({ blockNumber: head })).timestamp)
+console.log(`\n24h volume (token units): ${indexer.volume24h(token, now).toLocaleString()}`)
+
+indexer.close()
diff --git a/robinhood/hoodkit/examples/react-demo/check.mjs b/robinhood/hoodkit/examples/react-demo/check.mjs
deleted file mode 100644
index 0f665fe1e..000000000
--- a/robinhood/hoodkit/examples/react-demo/check.mjs
+++ /dev/null
@@ -1,26 +0,0 @@
-import { chromium } from 'playwright'
-
-const browser = await chromium.launch({ args: ['--no-sandbox'] })
-const page = await browser.newPage()
-const errors = []
-page.on('console', (msg) => {
- if (msg.type() === 'error') errors.push(msg.text())
-})
-page.on('pageerror', (err) => errors.push('pageerror: ' + err.message))
-
-await page.goto('http://localhost:5183/', { waitUntil: 'networkidle' })
-await page.waitForSelector('text=hoodkit', { timeout: 10000 })
-await page.waitForTimeout(8000) // let live quote/launch streams populate
-
-await page.screenshot({ path: '/tmp/pw-check/screenshot-initial.png', fullPage: true })
-
-const priceTexts = await page.$$eval('.tile-price', (els) => els.map((e) => e.textContent))
-const launchRows = await page.$$eval('.launch-row', (els) => els.length)
-const panelEmpty = await page.$eval('.panel', (el) => el.textContent?.trim().slice(0, 120)).catch(() => null)
-
-console.log('prices rendered:', priceTexts)
-console.log('launch rows rendered:', launchRows)
-console.log('panel text (if empty state):', panelEmpty)
-console.log('console errors:', errors)
-
-await browser.close()
diff --git a/robinhood/hoodkit/examples/twap-dry-run.ts b/robinhood/hoodkit/examples/twap-dry-run.ts
new file mode 100644
index 000000000..2d9d8d554
--- /dev/null
+++ b/robinhood/hoodkit/examples/twap-dry-run.ts
@@ -0,0 +1,41 @@
+/**
+ * Plan and dry-run a TWAP swap: slice a large USDG → WETH order across time,
+ * quoting and `eth_call`-simulating each slice without ever sending a
+ * transaction (no wallet key needed).
+ *
+ * Run: npx tsx examples/twap-dry-run.ts [TOTAL_USDG]
+ */
+import { createHoodClient, MAINNET_ADDRESSES, parseUsdg } from 'hoodchain'
+import { createTwapExecutor, SpendCap } from '../src/index.js'
+
+const hood = createHoodClient()
+const totalUsdg = process.argv[2] ?? '500'
+
+const twap = createTwapExecutor(hood, {
+ tokenIn: MAINNET_ADDRESSES.usdg,
+ tokenOut: MAINNET_ADDRESSES.weth,
+ totalAmountIn: parseUsdg(totalUsdg),
+ slices: 5,
+ intervalMs: 0, // examples run fast; real usage would space slices minutes apart
+ spendCap: new SpendCap(parseUsdg(totalUsdg)),
+ // This client has no wallet (public reads only), so give buildSwapTx an
+ // explicit recipient — planning/simulating a swap needs no signing key.
+ recipient: '0x000000000000000000000000000000000000dEaD',
+})
+
+console.log(`Planning a ${totalUsdg} USDG → WETH TWAP over 5 slices:\n`)
+for (const slice of twap.plan()) {
+ console.log(` slice ${slice.index + 1}/${slice.total}: ${(Number(slice.amountIn) / 1e6).toFixed(2)} USDG`)
+}
+
+console.log('\nRunning in dry-run mode (no wallet configured — every slice is quoted + eth_call-simulated, never sent)...\n')
+const results = await twap.run()
+for (const r of results) {
+ const amount = (Number(r.amountIn) / 1e6).toFixed(2)
+ if (r.status === 'simulated') {
+ const out = r.quote ? (Number(r.quote.amountOut) / 1e18).toFixed(6) : 'n/a'
+ console.log(` slice ${r.index + 1}: SIMULATED — ${amount} USDG -> ~${out} WETH`)
+ } else {
+ console.log(` slice ${r.index + 1}: ${r.status.toUpperCase()}${r.error ? ` (${r.error})` : ''}`)
+ }
+}
diff --git a/robinhood/hoodkit/src/strategy/index.ts b/robinhood/hoodkit/src/strategy/index.ts
index c2223e5e2..ad39005a0 100644
--- a/robinhood/hoodkit/src/strategy/index.ts
+++ b/robinhood/hoodkit/src/strategy/index.ts
@@ -158,6 +158,12 @@ export interface TwapConfig {
* send real transactions.
*/
dryRun?: boolean
+ /**
+ * Output recipient. Defaults to `client.account?.address`. Required when
+ * dry-running a TWAP on a read-only client (no account) — planning and
+ * simulating a swap for an address you're merely watching needs no keys.
+ */
+ recipient?: Address
/** Called before each slice; return `false` to skip it. */
onBeforeSlice?: (slice: TwapSlicePlan) => boolean | Promise<boolean>
/** Called after each slice with its result. */
@@ -245,7 +251,7 @@ export function createTwapExecutor(client: HoodClient, config: TwapConfig): Twap
}
const quote = await quoteSwap(client, { tokenIn: config.tokenIn, tokenOut: config.tokenOut, amountIn })
- const tx = buildSwapTx(client, quote, { slippageBps })
+ const tx = buildSwapTx(client, quote, { slippageBps, recipient: config.recipient })
if (dryRun) {
// Simulate via eth_call — no state change, no signature.
diff --git a/scripts/rh-lobby-click-e2e.mjs b/scripts/rh-lobby-click-e2e.mjs
new file mode 100644
index 000000000..65a955675
--- /dev/null
+++ b/scripts/rh-lobby-click-e2e.mjs
@@ -0,0 +1,52 @@
+// One-off evidence script for prompts/robinhood-chain/13-threews-play.md —
+// full user journey: /worlds lobby -> Robinhood Chain tab -> click a real
+// coin card -> lands on /play with the coin-flavored biome active.
+
+import { chromium } from 'playwright';
+
+const BASE = process.env.BASE_URL || 'http://localhost:8080';
+
+async function run() {
+ const browser = await chromium.launch({ headless: true });
+ const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
+ const errors = [];
+ page.on('pageerror', (err) => errors.push(err.message));
+ page.on('console', (msg) => { if (msg.type() === 'error') errors.push(msg.text()); });
+
+ await page.goto(`${BASE}/worlds`, { waitUntil: 'domcontentloaded', timeout: 30000 });
+ await page.waitForTimeout(1500);
+ await page.locator('.wl-tab[data-chain="robinhood-chain"]').click();
+ await page.waitForTimeout(1000);
+
+ const cardCount = await page.locator('#wl-worlds .wl-card').count();
+ console.log('Robinhood tab card count:', cardCount);
+
+ if (cardCount === 0) {
+ console.log('No live Robinhood world cards right now (launch backlog empty) — falling back to direct nav to prove the /play route + biome wiring.');
+ await page.goto(`${BASE}/play?coin=0x6b21b4567EfAd992B65f8a92457B45a74ed59486&name=LobbyE2E`, { waitUntil: 'domcontentloaded', timeout: 45000 });
+ } else {
+ const firstCard = page.locator('#wl-worlds .wl-card').first();
+ const rhBadge = await firstCard.locator('.wl-card-chain').count();
+ console.log('first card has RH badge:', rhBadge > 0);
+ await Promise.all([
+ page.waitForURL(/\/play\?/, { timeout: 15000 }).catch(() => null),
+ firstCard.click(),
+ ]);
+ console.log('landed on:', page.url());
+ }
+
+ await page.waitForTimeout(5000);
+ const biome = await page.evaluate(() => ({
+ id: window.__CC__?.env?.biome?.id || null,
+ label: window.__CC__?.env?.biome?.label || null,
+ mint: window.__CC__?.coin?.mint || null,
+ }));
+ console.log('active biome:', JSON.stringify(biome));
+ await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/bbd67923-b6d3-4593-92c8-9acb04d85900/scratchpad/rh-lobby-to-play.png' });
+
+ await browser.close();
+ console.log('\nconsole errors:', errors.length);
+ for (const e of errors.slice(0, 15)) console.log(' -', e);
+}
+
+run().catch((err) => { console.error('FATAL', err); process.exit(1); });
diff --git a/src/dashboard-next/components/palette.js b/src/dashboard-next/components/palette.js
index 762e26c92..e153b11ee 100644
--- a/src/dashboard-next/components/palette.js
+++ b/src/dashboard-next/components/palette.js
@@ -50,6 +50,11 @@ let avatarCache = null;
let avatarFetchInFlight = null;
let avatarDebounceTimer = 0;
let lastFocusedBeforeOpen = null;
+let isAdmin = false;
+
+// Resolved once per session — mirrors the sidebar's admin gating so
+// admin-only entries (Systems, GCP Spend) don't surface in search either.
+getMe().then((me) => { isAdmin = !!me?.is_admin; }).catch(() => {});
// ── Recent history ────────────────────────────────────────────────────────────
@@ -292,7 +297,7 @@ function activate(idx) {
// ── Item collation ────────────────────────────────────────────────────────────
function navItems() {
- return NAV.map((r) => ({
+ return NAV.filter((r) => !r.admin || isAdmin).map((r) => ({
id: `nav-${r.path}`,
label: r.label,
group: r.group,
diff --git a/src/dashboard-next/components/sidebar.js b/src/dashboard-next/components/sidebar.js
index ae069e776..28a924130 100644
--- a/src/dashboard-next/components/sidebar.js
+++ b/src/dashboard-next/components/sidebar.js
@@ -10,10 +10,10 @@ import { esc } from '../api.js';
const STORAGE_KEY = 'dn:rail:collapsed';
/** Build the sidebar HTML for the current pathname. */
-export function renderSidebar(pathname) {
+export function renderSidebar(pathname, isAdmin = false) {
const here = currentRoute(pathname)?.path;
const groups = GROUPS.map((group) => {
- const items = NAV.filter((r) => r.group === group);
+ const items = NAV.filter((r) => r.group === group && (!r.admin || isAdmin));
if (!items.length) return '';
const links = items
.map((r) => {
@@ -95,13 +95,13 @@ const MOBILE_NAV_ROUTES = [
'/dashboard/widgets',
'/dashboard/monetize',
];
-const SHEET_ROUTES = NAV.filter((r) => !MOBILE_NAV_ROUTES.includes(r.path));
+const sheetRoutes = (isAdmin) => NAV.filter((r) => !MOBILE_NAV_ROUTES.includes(r.path) && (!r.admin || isAdmin));
const MORE_ICON = '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><circle cx="4" cy="10" r="1.2" fill="currentColor" stroke="none"/><circle cx="10" cy="10" r="1.2" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r="1.2" fill="currentColor" stroke="none"/></svg>';
const SETTINGS_ICON = '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="2.5"/><path d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>';
const PALETTE_ICON = '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><circle cx="8.5" cy="8.5" r="5"/><path d="M15 15l2.5 2.5"/></svg>';
-export function renderMobileNav(pathname) {
+export function renderMobileNav(pathname, isAdmin = false) {
const here = currentRoute(pathname)?.path;
const slots = MOBILE_NAV_ROUTES.map((path) => {
const r = NAV.find((n) => n.path === path);
@@ -112,7 +112,7 @@ export function renderMobileNav(pathname) {
<span class="dn-rail-mobile-label">${esc(r.label)}</span>
</a>`;
}).join('');
- const moreActive = SHEET_ROUTES.some((r) => r.path === here) ? ' active' : '';
+ const moreActive = sheetRoutes(isAdmin).some((r) => r.path === here) ? ' active' : '';
const moreBtn = `<button type="button" class="dn-rail-mobile-slot${moreActive}" data-action="mobile-more" aria-haspopup="dialog" aria-expanded="false" aria-label="More navigation">
<span aria-hidden="true">${MORE_ICON}</span>
<span class="dn-rail-mobile-label">More</span>
@@ -120,19 +120,19 @@ export function renderMobileNav(pathname) {
return `<div class="dn-rail-scroll" role="tablist" aria-label="Main navigation">${slots}${moreBtn}</div>`;
}
-export function mountMobileNavBehavior(shellEl, pathname) {
+export function mountMobileNavBehavior(shellEl, pathname, isAdmin = false) {
if (window.innerWidth > 880) return;
const rail = shellEl.querySelector('.dn-rail');
if (!rail) return;
rail.innerHTML = `
<div class="dn-rail-head" style="display:none"></div>
- ${renderMobileNav(pathname)}
+ ${renderMobileNav(pathname, isAdmin)}
<div class="dn-rail-foot" style="display:none"></div>
`;
- rail.querySelector('[data-action="mobile-more"]')?.addEventListener('click', (e) => openSheet(e.currentTarget));
+ rail.querySelector('[data-action="mobile-more"]')?.addEventListener('click', (e) => openSheet(e.currentTarget, isAdmin));
}
-function openSheet(trigger) {
+function openSheet(trigger, isAdmin = false) {
const here = currentRoute(location.pathname)?.path;
const lastFocused = trigger || document.activeElement;
if (trigger) trigger.setAttribute('aria-expanded', 'true');
@@ -145,7 +145,7 @@ function openSheet(trigger) {
sheet.setAttribute('aria-label', 'More navigation');
sheet.innerHTML = `
<div class="dn-mobile-sheet-handle" aria-hidden="true"></div>
- ${SHEET_ROUTES.map((r) => `<a href="${esc(r.path)}" class="dn-mobile-sheet-item"${r.path === here ? ' aria-current="page"' : ''}>
+ ${sheetRoutes(isAdmin).map((r) => `<a href="${esc(r.path)}" class="dn-mobile-sheet-item"${r.path === here ? ' aria-current="page"' : ''}>
<span aria-hidden="true">${ICONS[r.icon] || ''}</span>
<span>${esc(r.label)}</span>
</a>`).join('')}
diff --git a/src/dashboard-next/nav.js b/src/dashboard-next/nav.js
index b9d5e6da1..297450180 100644
--- a/src/dashboard-next/nav.js
+++ b/src/dashboard-next/nav.js
@@ -8,6 +8,9 @@
// group — sidebar section ('Create' | 'Distribute' | 'Monetize' | 'Account')
// tags — extra keywords the command palette can match on
// external — if true, opens outside the dashboard (escape hatch to legacy)
+// admin — if true, hidden from the rail/palette/mobile-nav for non-admins
+// (the page itself still enforces this server-side; this flag
+// only controls whether the link is shown)
//
// Adding a new dashboard page = add one entry here. The sidebar and
// palette pick it up automatically; the per-page HTML and JS still need
@@ -64,8 +67,8 @@ export const NAV = [
{ path: '/radar', label: 'Coin Radar', icon: 'live', group: 'Explore', tags: ['intelligence', 'bundle', 'organic', 'rug', 'risk', 'score', 'pump.fun', 'launch', 'snipe', 'concentration'], external: true },
// ── Account ─────────────────────────────────────────────────────────
- { path: '/dashboard/systems', label: 'Systems', icon: 'pulse', group: 'Account', tags: ['health', 'status', 'monitoring', 'workers', 'crons', 'x402', 'pump', 'agents', 'seeding', 'all systems'] },
- { path: '/dashboard/spend', label: 'GCP Spend', icon: 'chart', group: 'Account', tags: ['gcp', 'credits', 'burn', 'cost', 'vertex', 'claude', 'imagen', 'forge', 'gpu', 'budget', 'runway', 'billing', 'cloud', 'spend', 'observability'] },
+ { path: '/dashboard/systems', label: 'Systems', icon: 'pulse', group: 'Account', tags: ['health', 'status', 'monitoring', 'workers', 'crons', 'x402', 'pump', 'agents', 'seeding', 'all systems'], admin: true },
+ { path: '/dashboard/spend', label: 'GCP Spend', icon: 'chart', group: 'Account', tags: ['gcp', 'credits', 'burn', 'cost', 'vertex', 'claude', 'imagen', 'forge', 'gpu', 'budget', 'runway', 'billing', 'cloud', 'spend', 'observability'], admin: true },
{ path: '/dashboard/account', label: 'Account', icon: 'user', group: 'Account', tags: ['wallets', 'sns', 'delegation', 'profile', 'action log', 'provider keys'] },
{ path: '/dashboard/referrals', label: 'Referrals', icon: 'gift', group: 'Account', tags: ['referral', 'invite', 'membership', 'card', 'refer a friend', 'share', 'rewards', 'position', 'score'] },
{ path: '/dashboard/wallet-grinder', label: 'Wallet Grinder', icon: 'sparkle', group: 'Account', tags: ['vanity', 'grind', 'keypair', 'wallet', 'solana', 'evm', 'ethereum', 'base', 'polygon', 'address', 'prefix', 'suffix'] },
diff --git a/src/dashboard-next/shell.js b/src/dashboard-next/shell.js
index 02c64fc4e..75b5f93cb 100644
--- a/src/dashboard-next/shell.js
+++ b/src/dashboard-next/shell.js
@@ -17,6 +17,7 @@ import { renderDrawer, mountDrawerBehavior } from './components/drawer.js';
import { mountPaletteBehavior } from './components/palette.js';
import { claimPendingReferral } from './referral-claim.js';
import { track, ANALYTICS_EVENTS } from '../analytics.js';
+import { getMe } from './api.js';
/**
* Build the shell, mount its behaviour, and resolve to the <main> slot
@@ -33,6 +34,12 @@ export async function mountShell() {
document.body.classList.add('dn-body');
+ // Resolved before the rail renders so admin-only entries (Systems, GCP
+ // Spend) never flash for non-admins. Cached by getMe(), so any page
+ // module's later requireUser() call reuses this same request.
+ const me = await getMe();
+ const isAdmin = !!me?.is_admin;
+
// Skip-link — hidden until focused, then jumps to main content. Lives
// outside the shell grid so it can absolutely-position over chrome.
if (!document.querySelector('.dn-skip')) {
@@ -48,7 +55,7 @@ export async function mountShell() {
shell.setAttribute('data-rail-collapsed', 'false');
shell.setAttribute('data-drawer-open', 'false');
shell.innerHTML = `
- ${renderSidebar(location.pathname)}
+ ${renderSidebar(location.pathname, isAdmin)}
${renderTopbar(location.pathname)}
<main class="dn-main" id="dn-main" tabindex="-1">
<div class="dn-main-inner" data-slot="page"></div>
@@ -64,7 +71,7 @@ export async function mountShell() {
});
mountSidebarBehavior(shell);
- mountMobileNavBehavior(shell, location.pathname);
+ mountMobileNavBehavior(shell, location.pathname, isAdmin);
mountTopbarBehavior(shell);
mountDrawerBehavior(shell);
mountPaletteBehavior();