Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: add sealed gift creation and claiming functionality
fudjiae61c6e477099
diff --git a/.gitignore b/.gitignoreindex 763af357d..aa3cca9ab 100644--- a/.gitignore+++ b/.gitignore@@ -368,3 +368,5 @@ public/_qa-probe-*.js# secrets that must never land in git.solana-mobile/build/*.keystore+main.zip+.x402-directory-credentials.jsondiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 84dc7ca21..53e162439 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,10 +17,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Detail pages for protocols, chains, and stablecoins — plus fees, DEX volumes, hacks, and trending** — Every DeFiLlama list now opens into a full detail page. A protocol page charts its whole TVL history with funding-round and event markers, breaks TVL down per chain, and shows its fees, revenue, and methodology. A chain page charts TVL, stablecoin supply, and DEX volume side by side with the top protocols on that chain. A stablecoin page charts circulating supply over time, shows the per-chain distribution, and flags how far off-peg it is in basis points. On top of the detail pages there are four new market surfaces: protocol fees and revenue ranked and charted, the DEX-volume leaderboard with market share, a searchable database of every major DeFi hack ($16.7B stolen all-time), and a trending page of the most-searched coins, categories, and NFTs on CoinGecko. Everything is real, key-free data, and the yields, DeFi, chains, and stablecoin tables now link straight into the new detail pages. (`/fees`) `[feature]`- **Documentation accuracy pass: every tutorial verified against the shipped platform** — We cross-referenced all 300+ docs and specs against the actual codebase and fixed everything that had drifted. The embed snippet in ten tutorials now uses the real two-line form that works on any site, four tutorials that demonstrated retired or never-shipped APIs were rewritten against the live component, the troubleshooting guide now reflects the current Cloud Run production stack with the correct session and storage details, and the manifest, quick-start, and API references now list exactly the providers, attributes, and endpoints that exist today. Every code sample in the affected docs runs as written. (`/docs/tutorials/embed-in-30-seconds`) `[docs, fix]`- **Eight new market-intelligence APIs join the x402 catalog** — Agents can now pay fractions of a cent for answers, not just data: a one-call DeFi radar (TVL movers, top fee earners, top DEX volumes), a yield scanner with per-pool risk flags across 15,000+ live pools, a stablecoin peg monitor with depeg alerts, an exploit-history check for any protocol, a top-coins momentum heatmap with market-breadth stats, a multi-chain gas oracle covering Ethereum, Base, and Solana in one call, a market-mood index that blends Fear & Greed with live sentiment from 192 news feeds, and a per-ticker news pulse measuring coverage velocity. Prices run $0.001–$0.005 USDC per call, settled instantly via x402 on Solana or Base, and every endpoint refuses payment when its live data source is down — you are never charged for a missing answer. (`/docs/x402-endpoints`) `[feature]`+- **Fortune's Folly — a Wheel of Fortune landed in the /play plaza** — Walk up to the wheel in the Mainland plaza and spin: one free spin every 12 hours, or pay $3 in $THREE for another shot — split 50% to the holder-rewards pool and 50% to the treasury, verified on-chain before any prize is granted. Twenty equal-odds wedges hand out wood, stone, coal, or cash, and a won prize is never lost to a full pack. Requires a little in-world progress first (average skill level 3) to keep it a bonus for players, not a bot target. (`/play`) `[feature]`- **Market data no longer rides on a single source** — The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank. (`/coins`) `[improvement, infra]`- **Meet your agent: the site now hands every visitor a living agent — and a command line to drive it** — three.ws now works the way it always promised: through your agent. Land on any page and within seconds a named 3D companion introduces itself — yours to keep, and one click turns it into a real agent on your account. The ⌘K search palette grew into a real command line: type “forge a bronze dragon statue” and a real 3D model is generated right inside the panel, “digest” reads you the day's crypto news as clustered stories, “price btc” quotes live market data, and “ask …” gets a streamed answer from the site agent — all free, no account needed, and your companion waves when the work lands. Market pages (/markets, /coins) now navigate without reloading, so your agent walks with you instead of blinking out on every click; the market surfaces also adopted the sitewide typeface for one consistent look. (`/docs/agent-shell`) `[feature, improvement]`- **Premium: one monthly pass instead of paying per call** — Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time. (`/docs/premium`) `[feature]`- **Richer coin pages, plus new exchange, category, and DeFi-yields detail pages** — Every coin page now shows far more of what the data already offers: a 1h-to-1y price-performance matrix, a circulating-vs-max supply bar with the market-cap/FDV ratio, all-time high and low with the drawdown and recovery multiple, the community bullish/bearish sentiment split, GitHub and social activity, and a full exchange-listings table with spread, order-book depth, and a trust rating for each venue. Exchanges and crypto categories, which used to only send you off-site or filter a table, now have their own detail pages — an exchange page with a trust badge, wash-volume-adjusted volume, a volume-history chart, and its markets, and a category page with the sector's rank, stats, and full coin list. And a brand-new DeFi Yields explorer covers roughly 15,000 live pools across every chain and protocol, filterable and sortable, each with its own APY and TVL history chart. All of it is real, key-free data. (`/yields`) `[feature, improvement]`+- **Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet** — Fund a fresh Solana wallet — optionally vanity-ground with a custom prefix or suffix — wrap it in a sealed link, and send it to someone. A bearer link carries the claim key in the URL itself for simple sharing, or seal it to a specific recipient's key so only they can ever open it. Claiming happens entirely in the recipient's browser at their own link — three.ws never sees the plaintext key at any point. Track what you've sent and reclaim anything that expires unclaimed from the same page. (`/vanity-wallet`) `[feature]`+- **The datapoint fabric: 480,000+ standalone paid endpoints** — Every individual market datapoint three.ws aggregates is now its own standalone paid endpoint — one URL, one value, one micro-payment of $0.0005 USDC over x402. Bitcoin's spot price, Lido's TVL, one yield pool's APY, USDT's peg deviation in basis points, BTC dominance, the standard gas tier — each of roughly 484,000 combinations of ~17,500 coins, ~15,500 yield pools, ~6,000 protocols, plus chains, stablecoins, exchanges, and the global market gauges, across 68 metrics, is individually addressable and individually buyable by any agent with a wallet. A free catalog at /api/x402/d lists every family and metric with prices and can page through each family's entire live id space, so a crawler can walk the whole endpoint universe. Asking for a datapoint that doesn't exist never triggers a payment request, and a failed fetch never charges the buyer. (`/docs/market-data-api`) `[feature]`- **The Market Data API: every market feed, now buyable per call** — All the live data behind the /markets pages — coin prices and profiles, price history, sector rankings, exchanges, derivatives, the global snapshot with Fear & Greed, ETH gas, trending assets, DeFi TVL by protocol and chain, 15,000 yield pools, stablecoin pegs, protocol fees and revenue, DEX volumes, and the full exploit database — is now a 17-endpoint paid API that agents can discover and buy autonomously. Each call costs $0.001 USDC over x402 on Solana or Base (the one-call market-pulse bundle is $0.005), with no API key or account needed, and a failed fetch never charges the buyer. The browser pages stay free for people; the paid endpoints are listed in the public x402 discovery catalog, and the free index at /api/x402/market documents everything with runnable examples. (`/docs/market-data-api`) `[feature]`- **The news page becomes Your Briefing** — /markets/news is redesigned as a daily briefing: a breaking-news ticker for stories under 45 minutes old, a collapsible Today's AI Briefing card built from the digest engine, a Featured tab covering the major outlets, a Trending tab ranking the day's most-covered narratives, a Top-stories hero with a compact headline rail, and a star on every story that saves it to a personal Saved tab. Article preview images were also overhauled — thumbnails blocked by publishers now load through a same-origin proxy, and stories whose feed ships no image pull the publisher's own social preview automatically, so cards no longer show blank tiles. (`/markets/news`) `[feature, improvement]`- **three.ws plants its flag across the x402 ecosystem** — Every agent-facing discovery surface now advertises the full 70+ paid-service catalog instead of a stale one-endpoint stub: the ERC-8004 registration card, the A2A agent card, and the AI-plugin manifest are regenerated from the live service catalog on every build, so they can never drift again. Registration with external x402 directories has begun — the first services are already listed on 402index.io — and a new distribution playbook documents exactly how x402scan, the Coinbase Bazaar, and agentic.market index and rank providers, so the platform can climb those leaderboards deliberately. (`/docs/x402-distribution`) `[improvement, docs]`@@ -1903,7 +1906,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Docs · x402 Protocol** (`/docs/x402`) — How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.- **Marketplace** (`/marketplace`) — Buy access to agents, skills, and avatars from other creators.- **Pump.fun Stream** (`/pumpfun`) — Mint and trade pump.fun agent tokens on Solana. Live feed of every launch.-- **Solana Vanity Wallet** (`/vanity-wallet`) — Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.+- **Solana Vanity Wallet** (`/vanity-wallet`) — Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.- **On-chain agents on Solana and EVM** — Unified deployment stack — agents register on Ethereum, Base, Polygon, and Solana with passport pages, reputation, and attestations. `[feature]`- **Pump.fun launch and trading stack** — Token creation, bonding-curve swaps, KOL trade tracking, automated wallet monitoring, and a vanity address grinder for custom Solana prefixes. `[feature]`- **Solana Agent SDK** — Actions for token transfers, SPL swaps, balance queries, and stake attestations, with transaction builders and fee estimation. `[sdk]`diff --git a/CLAUDE.md b/CLAUDE.mdindex f25e7d600..388b0c9ab 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -144,7 +144,7 @@ $THREE holders follow the public changelog (three.ws/changelog, RSS, JSON, Teleg- **New page?** Nothing extra — the `added` date in `data/pages.json` feeds the changelog automatically.- **Everything else users would notice** (feature, improvement, fix, SDK release, security work): append an entry to `data/changelog.json` — date, holder-readable title + summary (plain language, no commit jargon), tags from: feature, improvement, fix, sdk, infra, docs, security. Optional `link` must be a live page path.- `npm run build:pages` regenerates CHANGELOG.md, public/changelog.json, and public/changelog.xml — it also validates your entry and fails the build on a malformed one.-- After the change is deployed, `npm run changelog:push` posts new entries to the holders' Telegram channel (needs `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHANGELOG_CHAT_ID`; use `--dry-run` to preview), and `npm run changelog:push:x` tweets them from @trythreews (needs `X_API_KEY`/`X_API_SECRET`/`X_ACCESS_TOKEN`/`X_ACCESS_SECRET`; same `--dry-run` flag). X is the primary holder channel. Skip silently if creds are absent locally.+- After the change is deployed, `npm run changelog:push` posts new entries to the holders' Telegram channel (needs `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHANGELOG_CHAT_ID`; use `--dry-run` to preview), and `npm run changelog:push:x` posts them from @trythreews as replies chained under the pinned updates thread — one anchor post on the profile, each release a reply to the previous one (needs `X_API_KEY`/`X_API_SECRET`/`X_ACCESS_TOKEN`/`X_ACCESS_SECRET`; same `--dry-run` flag; thread ids live in `data/changelog-x-state.json`, commit it after a push). X is the primary holder channel. Skip silently if creds are absent locally.- Internal-only chores (CI, lockfiles, refactors with no visible effect) do NOT get entries.## Documentation: every feature ships with its docsdiff --git a/STRUCTURE.md b/STRUCTURE.mdindex 461f84316..05e134159 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -47,7 +47,9 @@ bottom.| `/play` character & avatar customization (avatar creator, selfie→3D, wardrobe boutique) | Lobby creator flow [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js) `_openCreate()`, selfie SDK wrapper [src/avatar-creator.js](src/avatar-creator.js), shop [src/game/cosmetics-shop.js](src/game/cosmetics-shop.js), wardrobe [src/game/cosmetics-wardrobe.js](src/game/cosmetics-wardrobe.js), boutique NPCs [src/game/npc/npc-catalog.js](src/game/npc/npc-catalog.js) (`npc-tailor`, `npc-fitting-room`), boutique spawn points [src/game/world-zones.js](src/game/world-zones.js) (`type: 'boutique'`) | In-repo | W03 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Before dropping into `/play`, design an avatar from scratch or a selfie (real Avaturn SDK), upload a `.glb`, or sculpt in the full Avatar Studio — no sign-in required. Once in the world, the cosmetics shop/wardrobe (real x402-settled catalog, server-persisted equip) now has a physical home: walk up to Roux · Tailor to browse/buy, or Nell's Fitting Room to equip anything you own. Doc: [docs/character-studio.md](docs/character-studio.md#character-customization-in-play-world-online). || `/play` combat & weapons (server-authoritative, danger zones, wanted, tombstones) | Client: [src/game/combat-system.js](src/game/combat-system.js) `→ /play` (vitals HUD wiring, danger-zone ground, tombstone loot, hit feedback, the `window.twsCombat` bridge into W08's `MobSystem`), HUD [src/game/hud/world-hud.js](src/game/hud/world-hud.js). Server: [multiplayer/src/combat-handlers.js](multiplayer/src/combat-handlers.js) (mob AI, attack/loot intents, death + respawn), pure math [multiplayer/src/combat.js](multiplayer/src/combat.js), weapon/mob/loot tables [multiplayer/src/items.js](multiplayer/src/items.js), zone geometry [multiplayer/src/world-features.js](multiplayer/src/world-features.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W07 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Equip a sword/bat/pistol/bow from the hotbar and press `X` (or tap the touch Attack button) to fight — but only inside one of three named danger zones (Southern Wilds, Northern Wilds, Eastern Marches); town stays lawful by construction. PvE mobs chase and swing back through the same server-side damage path a player's attack uses; a kill (mob or PvP) spills a lootable tombstone, PvP raises the attacker's wanted/heat stars (visible on `WorldHud` and a downed peer's nameplate), and death drops carried cash/pack before an automatic respawn in town. || `/play` NPCs & world life (traffic, vendors, quest-givers, mobs) | Manager [src/game/npc/world-life.js](src/game/npc/world-life.js), nav graph [src/game/npc/nav-graph.js](src/game/npc/nav-graph.js), ambient crowd/traffic [src/game/npc/ambient-life.js](src/game/npc/ambient-life.js), quest-giver NPCs [src/game/npc/quest-npcs.js](src/game/npc/quest-npcs.js), quest-zone waypoints [src/game/npc/quest-markers.js](src/game/npc/quest-markers.js), Jobs Board UI [src/game/quests-ui.js](src/game/quests-ui.js), W07-gated mobs [src/game/npc/mobs.js](src/game/npc/mobs.js). Server: quest engine [multiplayer/src/quests.js](multiplayer/src/quests.js), quest zones [multiplayer/src/quest-zones.js](multiplayer/src/quest-zones.js), handlers in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W08 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). A deterministic nav graph drives client-side ambient pedestrians + ring-road traffic that read identically for every player without a single packet — real gameplay stays server-authoritative. Five quest-giver NPCs (Dockmaster Reyes, Warden Okoro, Cook Mara, Foreman Dell, The Fixer) front the jobs board the quest engine (W05) already ran server-side but no client ever reached; pressing E opens the real board, accepting a job drops a waypoint at its objective (goto zones auto-complete by walking there, interact zones get their own "press E"), and finishing pays real cash server-side. Hostile mobs are live: W07's `CombatSystem` ([src/game/combat-system.js](src/game/combat-system.js)) installs the `window.twsCombat` contract this module's mobs were built against, so `MobSystem` renders real server-authoritative PvE hostiles with zero changes here. |+| `/play` Wheel of Fortune (Fortune's Folly — free/paid $THREE spins) | Client: [src/game/wheel-station.js](src/game/wheel-station.js) (the plaza landmark, proximity prompt, `E` to spin — lazy-imports the actual UI on first interact), spin UI [src/game/spin-wheel-ui.js](src/game/spin-wheel-ui.js) (20-segment wheel, free/paid flow, wallet signing). Server: [multiplayer/src/spin-wheel.js](multiplayer/src/spin-wheel.js) (paytable, RNG, level/cooldown/pack gates, handlers), split-payment settlement [multiplayer/src/game-token.js](multiplayer/src/game-token.js) (`buildSpinPayment`/`verifySpinPayment` — the same primitives the $THREE boutique uses), wheel location [multiplayer/src/world-features.js](multiplayer/src/world-features.js) `WHEEL`, persisted cooldown field in [multiplayer/src/economy.js](multiplayer/src/economy.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W09 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Walk up to the wheel in the plaza and press `E`: one free spin every 12h (a real persisted cooldown — survives a disconnect, unlike the ephemeral per-action cooldowns everything else on this row's neighbors use), or pay $3 in `$THREE` — split 50% to the holder-rewards pool / 50% to the treasury, verified on-chain before any prize is granted, mirroring the boutique's proven settlement pattern exactly. Gated behind an average skill level of 3 (a light anti-farm floor, not a grind) and never lets a won prize get lost to a full pack — room for at least one possible item prize is checked before a spin is even offered, paid or free. All 20 wedges are equal-odds by design, matching the client's fixed-angle wheel rendering exactly (see the header note in `spin-wheel.js` on why that must never drift). Tests: [tests/spin-wheel.test.js](tests/spin-wheel.test.js). || `/play` friends & presence (drawer, cross-world DMs) | Client: [src/game/friends-panel.js](src/game/friends-panel.js) (shared with `/walk`), mounted in [src/game/coincommunities.js](src/game/coincommunities.js) `_openFriends()`/`_closeFriends()`, HUD button + unread badge in [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js), account-level state/polling in [src/friends.js](src/friends.js). Server: signed ticket verify + `socialHub` registration in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js), hub in [multiplayer/src/social-hub.js](multiplayer/src/social-hub.js) | In-repo | W09 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Press `J` or the HUD `Friends` button to open a right-docked drawer showing your account's friend graph — live online/offline presence per coin world, requests, and DM threads — the same graph and threads `/walk` and the standalone `/friends` page already share. `community-net.js` now carries a signed presence ticket into every `walk_world` join and forwards the server's `social` push onto its own event bus, which is what actually makes a `/play` player visible to friends and able to receive a live DM — previously `/play` joined anonymously to the social graph even when signed in, so every player showed offline and DMs were dropped. Tests: [tests/play-friends-presence.test.js](tests/play-friends-presence.test.js). |+| Sealed wallet gift drops (send/claim) | Client: [src/pages/sealed-drops.js](src/pages/sealed-drops.js) — create + "My drops" sections mounted into [public/vanity-wallet.html](public/vanity-wallet.html) (`#drop-create`/`#drop-mine`, below the vanity grinder — vanity pattern fields are shared), claim flow on its own page [pages/drop.html](pages/drop.html) `→ /drop/:id` (24-hex-char id, routed in [vite.config.js](vite.config.js) dev middleware + [vercel.json](vercel.json)). Crypto: [src/solana/vanity/sealed-envelope.js](src/solana/vanity/sealed-envelope.js) (ECIES seal/open, X25519 keygen — all client-side, three.ws never sees a plaintext key), [src/solana/vanity/drop-protocol.js](src/solana/vanity/drop-protocol.js) (claim-token derivation). Server: [api/vanity/drops.js](api/vanity/drops.js) (create/claim/reveal/reclaim, on-chain funding), OG card [api/og/sealed-drop.js](api/og/sealed-drop.js) | In-repo | Fund a fresh wallet — optionally vanity-ground with the same prefix/suffix grinder above — wrap it in a sealed link, and send it. Two seal modes: a **bearer link** (the claim key rides in the URL fragment, anyone with the full link claims once) or **sealed to a recipient's X25519 key** (only they can ever open it, even with the link). The create fee settles via x402; the gift amount funds on-chain into a fresh wallet server-side. Claiming decrypts entirely in the browser and offers the recovered seed phrase/secret key for import — the server only ever sees the sealed ciphertext. "My drops" (browser-local, by a random sender tag) lists what you've sent so expired-unclaimed gifts can be reclaimed. || Premium vanity inventory (sell pre-ground addresses) | [public/vanity/premium/](public/vanity/premium/index.html) `→ /vanity/premium`, batch grinder [workers/vanity-grinder/](workers/vanity-grinder), store [api/_lib/vanity-inventory-store.js](api/_lib/vanity-inventory-store.js), sell [api/x402/vanity-premium.js](api/x402/vanity-premium.js), replenish [api/cron/vanity-inventory-replenish.js](api/cron/vanity-inventory-replenish.js) | In-repo · GCP spot CPU | Long (4–5+ char) brandable Solana addresses ground ahead of time on cheap spot CPU, sealed at rest (AES-256-GCM or GCP-KMS envelope, [api/_lib/vanity-vault.js](api/_lib/vanity-vault.js)), and sold from stock via x402 — priced by rarity ($1–$50) on `vanity-premium`, or by fixed 4–5 char tiers ($2.50/$10) directly through [`/api/x402/vanity`](docs/vanity.md#tier-1--live-grinder) (instant delivery, `source:"inventory"`) and the [pump-launch vanity upsell](docs/pump-launcher.md) — delivered exactly once, ciphertext destroyed on delivery. An hourly cron watches stock and fires a fresh grind batch (Cloud Run Job) when low. Free `vanity_premium` MCP browse tool. Runbook: [docs/ops/gcp-credits.md](docs/ops/gcp-credits.md) || Embed examples | [examples/](examples) | In-repo | `embed-test.html`, `web-component.html`, `two-agents.html`, `minimal.html`, [agent-native-3d/](examples/agent-native-3d) (below) || Agent-native 3D + embeddable distribution | MCP tool [api/_mcp/tools/agents.js](api/_mcp/tools/agents.js) (`attach_avatar_to_agent`); shared oEmbed provider [api/agent-oembed.js](api/agent-oembed.js) `→ /api/oembed` + builder [api/_lib/embed.js](api/_lib/embed.js) (`forgeEmbedTarget`, shared by `get_embed_code` in [api/_mcp/tools/embed.js](api/_mcp/tools/embed.js)); Forge share page oEmbed discovery [api/forge-share.js](api/forge-share.js) `→ /forge/share/:id`; distribution snippet builders [src/forge-embed-snippets.js](src/forge-embed-snippets.js) + panel [src/forge-embed-panel.js](src/forge-embed-panel.js); autonomous demo [examples/agent-native-3d/](examples/agent-native-3d) | In-repo | Closes the loop: create → own → discover/remix → **use everywhere**. `attach_avatar_to_agent` gives a registered agent identity a persistent body (chains into `register_agent` for on-chain identity + `anchor_provenance` for a signed authenticity credential). Any Forge creation now unfurls via real oEmbed (paste `/forge/share/:id` into Notion/Discord/Slack) with the same `type:rich` iframe payload `get_embed_code` returns via MCP. The Forge "Embed this model" panel hands out five real distribution flavours from one GLB — iframe, `<model-viewer>`, `<agent-3d>`, a `@three-ws/page-agent` talking guide, and a `@three-ws/walk` companion — all built from one shared, pure snippet module so every surface stays byte-identical. `examples/agent-native-3d/run.mjs` drives the full agent-native chain live against `/api/mcp-studio` (mesh_forge → rig_mesh → create_agent_persona → persona_say → get_agent_persona → every distribution snippet) with zero mocks and a documented, logged fallback if the shared free-tier generation lane is rate-limited at run time. Spec: [specs/EMBED_SPEC.md](specs/EMBED_SPEC.md#share-routes-on-chain-agents). Docs: [docs/mcp.md#attach_avatar_to_agent](docs/mcp.md#attach_avatar_to_agent). Roadmap prompt 10 (closes the roadmap campaign). |diff --git a/data/changelog.json b/data/changelog.jsonindex cf665c5db..01516cc0b 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -10,6 +10,24 @@],"link": "/docs/market-data-api"},+ {+ "date": "2026-07-11",+ "title": "Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet",+ "summary": "Fund a fresh Solana wallet — optionally vanity-ground with a custom prefix or suffix — wrap it in a sealed link, and send it to someone. A bearer link carries the claim key in the URL itself for simple sharing, or seal it to a specific recipient's key so only they can ever open it. Claiming happens entirely in the recipient's browser at their own link — three.ws never sees the plaintext key at any point. Track what you've sent and reclaim anything that expires unclaimed from the same page.",+ "tags": [+ "feature"+ ],+ "link": "/vanity-wallet"+ },+ {+ "date": "2026-07-11",+ "title": "Fortune's Folly — a Wheel of Fortune landed in the /play plaza",+ "summary": "Walk up to the wheel in the Mainland plaza and spin: one free spin every 12 hours, or pay $3 in $THREE for another shot — split 50% to the holder-rewards pool and 50% to the treasury, verified on-chain before any prize is granted. Twenty equal-odds wedges hand out wood, stone, coal, or cash, and a won prize is never lost to a full pack. Requires a little in-world progress first (average skill level 3) to keep it a bonus for players, not a bot target.",+ "tags": [+ "feature"+ ],+ "link": "/play"+ },{"date": "2026-07-11","title": "The Market Data API: every market feed, now buyable per call",@@ -13150,4 +13168,4 @@"link": "/docs/agent-shell"}]-}+}\ No newline at end of filediff --git a/data/pages.json b/data/pages.jsonindex c7c1068e4..7251d9a36 100644--- a/data/pages.json+++ b/data/pages.json@@ -1101,7 +1101,7 @@{"path": "/vanity-wallet","title": "Solana Vanity Wallet",- "description": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.",+ "description": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.","priority": 0.6,"changefreq": "monthly","added": "2026-04-29"diff --git a/data/x402-directory-registrations.json b/data/x402-directory-registrations.jsonindex 9569784db..1d624fc9f 100644--- a/data/x402-directory-registrations.json+++ b/data/x402-directory-registrations.json@@ -9,13 +9,13 @@"https://three.ws/api/x402/agent-reputation": {"ok": false,"status": 422,- "at": "2026-07-11T21:25:18.935Z",+ "at": "2026-07-11T23:27:45.558Z","response": "{\"error\":\"x402 verification failed\",\"detail\":\"Endpoint returned 402 but no valid x402 challenge was detected.\",\"probe\":{\"httpStatus\":402,\"headersPresent\":{\"WWW-Authenticate\":false,\"PAYMENT-REQUIRED\":false},\"bodySnippet\":null,\"detectedProtocols\":[]}}"},"https://three.ws/api/x402/agent-bouncer": {"ok": false,"status": 422,- "at": "2026-07-11T21:25:19.848Z",+ "at": "2026-07-11T23:27:46.623Z","response": "{\"error\":\"x402 verification failed\",\"detail\":\"Endpoint returned 402 but no valid x402 challenge was detected.\",\"probe\":{\"httpStatus\":402,\"headersPresent\":{\"WWW-Authenticate\":false,\"PAYMENT-REQUIRED\":false},\"bodySnippet\":null,\"detectedProtocols\":[]}}"},"https://three.ws/api/x402/onchain-identity-verify": {@@ -47,6 +47,72 @@"status": 201,"at": "2026-07-11T21:25:29.065Z","response": "{\"message\":\"Service registered and live\",\"service\":{\"id\":\"1b32e918-ec64-44dd-a952-060ac7eca156\",\"name\":\"three.ws mint-to-mesh-batch\",\"description\":\"Mint to Mesh (Batch) — resolve 1–10 Solana SPL mints to themed glTF (GLB) cubes in a single paid call instead of paying for N round-trips.\",\"url\":\"https"+ },+ "https://three.ws/api/x402/skill-marketplace": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T22:26:09.415Z",+ "response": "{\"message\":\"Service registered and live\",\"service\":{\"id\":\"5807380c-32f3-4ba2-b145-8a645a6f699a\",\"name\":\"three.ws skill-marketplace\",\"description\":\"Skill Marketplace — list active skill listings with prices across all three.ws agents.\",\"url\":\"https://three.ws/api/x402/skill-marketplace\",\"protocol\":\"x"+ },+ "https://three.ws/api/x402/symbol-availability": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T22:26:10.317Z",+ "response": "{\"message\":\"Service registered and live\",\"service\":{\"id\":\"941f6d5c-7280-442a-947d-03e2fb9d8ae0\",\"name\":\"three.ws symbol-availability\",\"description\":\"Symbol Availability — pre-launch ticker collision check against three.ws's pump.fun mint index.\",\"url\":\"https://three.ws/api/x402/symbol-availability\","+ },+ "https://three.ws/api/x402/vanity": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T22:26:11.418Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"c23b9668-84f3-4d37-85fd-f29d8272e012\",\"name\":\"three.ws vanity\",\"description\":\"Vanity Grinder — put your brand on-chain: get a Solana address that starts with your ticker/prefix and/or ends w"+ },+ "https://three.ws/api/x402/vanity-verifiable": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T22:26:12.434Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"c9b81d7c-bb98-43aa-8e42-35ef923e23f5\",\"name\":\"three.ws vanity-verifiable\",\"description\":\"Provably-Fair Vanity Grinder — generate a brand-new Solana keypair whose Base58 address starts with a"+ },+ "https://three.ws/api/x402/permit2-paid-demo": {+ "ok": false,+ "status": 422,+ "at": "2026-07-11T23:27:48.131Z",+ "response": "{\"error\":\"x402 verification failed\",\"detail\":\"Endpoint returned 402 but no valid x402 challenge was detected.\",\"probe\":{\"httpStatus\":402,\"headersPresent\":{\"WWW-Authenticate\":false,\"PAYMENT-REQUIRED\":true},\"bodySnippet\":null,\"detectedProtocols\":[]}}"+ },+ "https://three.ws/api/x402/remix-asset": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T22:26:14.868Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"32b3b796-ede3-4b26-a52b-510947191979\",\"name\":\"three.ws remix-asset\",\"description\":\"Remix a published 3D model by describing a change; a creator-set royalty of the fee routes on-chain to the "+ },+ "https://three.ws/api/x402/token-intel": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T23:27:49.172Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"b579dfc6-089f-4024-83ea-36bd2cad7a04\",\"name\":\"three.ws token-intel\",\"description\":\"three.ws Token Oracle — pay $0.01 USDC per call for live market intel on ANY token by contract address: pri"+ },+ "https://three.ws/api/x402/defi-radar": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T23:27:50.417Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"e1e4680d-0cec-462d-b2ba-572fdd526c35\",\"name\":\"three.ws defi-radar\",\"description\":\"three.ws DeFi Radar — one $0.005 USDC call returns the whole DeFi market at a glance: total TVL with the big"+ },+ "https://three.ws/api/x402/yield-scan": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T23:27:51.493Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"b7755009-3000-427a-95f6-20ac2d11cfeb\",\"name\":\"three.ws yield-scan\",\"description\":\"three.ws Yield Scanner — $0.005 USDC per call filters 15,000+ live DeFi yield pools by chain, TVL floor, and"+ },+ "https://three.ws/api/x402/stablecoin-health": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T23:27:52.570Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"f3f46143-8b09-4cee-8d1f-f4e49bfcd1a7\",\"name\":\"three.ws stablecoin-health\",\"description\":\"three.ws Stablecoin Peg Monitor — $0.005 USDC per call returns live peg deviation, supply, and 24 h /"+ },+ "https://three.ws/api/x402/hack-check": {+ "ok": true,+ "status": 201,+ "at": "2026-07-11T23:27:53.639Z",+ "response": "{\"message\":\"Service registered and pending review. Verify your domain for instant approval.\",\"service\":{\"id\":\"9c23ed88-b281-417f-96a3-df358d5bf44a\",\"name\":\"three.ws hack-check\",\"description\":\"three.ws Exploit History Check — $0.002 USDC per call searches the full DeFi exploit database for a protocol"}}}diff --git a/docs/x402-distribution.md b/docs/x402-distribution.mdindex dd32947c6..5cbadaa3b 100644--- a/docs/x402-distribution.md+++ b/docs/x402-distribution.md@@ -76,7 +76,20 @@ search results after 30 days without a settle**.not-yet-deployed route burns a slot), and records results in[`data/x402-directory-registrations.json`](../data/x402-directory-registrations.json).Re-run hourly until it reports 0 remaining, and after every deploy that adds- endpoints. `--dry-run` previews.+ endpoints. `--dry-run` previews. The hourly cron+ [`api/cron/x402-directory-registrar.js`](../api/cron/x402-directory-registrar.js)+ supersedes manual runs: it re-upserts a rotating window of 8 catalog entries+ per tick (registration is an upsert by URL), so new endpoints auto-register+ and description drift self-heals.+- **Domain verification (ranks ALL our listings first):** three.ws is claimed —+ the challenge hash is served at `/.well-known/402index-verify.txt` (in+ `public/.well-known/`). After a deploy makes it live, complete with+ `curl -X POST https://402index.io/api/v1/claim/verify -H 'Content-Type: application/json' -d '{"domain": "three.ws"}'`.+ The claim's `verification_token` (the ongoing credential for editing+ listings) is in the gitignored `.x402-directory-credentials.json` at the+ repo root — never commit it. Claims expire 72 h after issuance if unverified+ (re-claim with `POST /api/v1/claim {"domain":"three.ws"}` and update the+ hash file).### x402-list.comdiff --git a/pages/drop.html b/pages/drop.htmlnew file mode 100644index 000000000..7b939dc21--- /dev/null+++ b/pages/drop.html@@ -0,0 +1,164 @@+<!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">+ <title>Claim your sealed gift · three.ws</title>+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <meta name="description" content="Claim a sealed wallet gift. Opened entirely in your browser — three.ws never sees the key.">+ <meta name="robots" content="noindex">+ <link rel="icon" href="/favicon.ico">+ <link rel="stylesheet" href="/footer.css">+ <link rel="stylesheet" href="/nav.css">+ <link rel="stylesheet" href="/fonts/fonts.css" />+ <script defer src="/footer-newsletter.js"></script>+ <style>+ * { box-sizing: border-box; }+ :root {+ --fg: #f0f0f0; --muted: #888; --dim: #666; --border: rgba(255,255,255,0.08);+ --card-bg: #0e0e10; --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;+ --radius: 12px;+ }+ body { font: 15px/1.5 'Inter', system-ui, -apple-system, sans-serif; background: #000; color: var(--fg); margin: 0; min-height: 100vh; display: flex; flex-direction: column; }+ a { color: inherit; }+ .skip-link { position: absolute; left: -999px; }+ .skip-link:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .4rem .8rem; border-radius: 6px; z-index: 100; }+ main { flex: 1; max-width: 480px; width: 100%; margin: 0 auto; padding: 3rem 1rem 4rem; }++ #dc-stage { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); padding: 1.4rem; }++ /* The gift reveal card, themed per drop.theme */+ .gift { text-align: center; padding: 1rem .5rem 1.4rem; }+ .gift-glyph { font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; }+ .gift-from { font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }+ .gift-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }+ .gift-amount span { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-left: .2rem; }+ .gift-msg { margin: .8rem 0 .4rem; font-style: italic; color: #ddd; font-size: .95rem; }+ .gift-addr { font-size: .74rem; color: var(--dim); margin-top: .4rem; }+ .gift-badge { display: inline-block; margin-top: .9rem; font-size: .74rem; color: #86efac; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); border-radius: 999px; padding: .3rem .8rem; }+ .theme-birthday .gift-glyph, .theme-congrats .gift-glyph { animation: pop .5s ease; }+ @keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }++ label.fl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); margin: .9rem 0 .3rem; }+ input.t { width: 100%; font: inherit; background: #161616; color: var(--fg); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: .6rem .8rem; }+ .mono { font-family: ui-monospace, monospace; word-break: break-all; }+ .note { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }++ button.primary, a.primary { appearance: none; font: inherit; font-weight: 700; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: #fff; color: #000; border: 1px solid #fff; padding: .55rem 1.1rem; transition: transform .1s, background .15s; }+ button.primary:hover, a.primary:hover { transform: translateY(-1px); background: #e8e8e8; }+ button.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }+ button.ghost, a.ghost { appearance: none; font: inherit; font-weight: 700; border-radius: 8px; cursor: pointer; text-decoration: none; background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,.12); padding: .5rem .9rem; transition: border-color .15s; }+ button.ghost:hover, a.ghost:hover { border-color: rgba(255,255,255,.3); }+ button.small, a.small { font-size: .78rem; padding: .4rem .7rem; }+ button.big { font-size: 1rem; padding: .8rem 1.4rem; width: 100%; }+ .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }++ .okbox, .warnbox, .errbox { margin-top: .9rem; padding: .7rem .9rem; border-radius: 8px; font-size: .85rem; }+ .okbox { border: 1px solid rgba(74,222,128,.4); background: rgba(74,222,128,.08); color: #86efac; }+ .warnbox { border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.08); color: #fcd34d; }+ .errbox { border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fca5a5; }+ .okbox.show, .warnbox.show, .errbox.show { display: block; }++ .keybox { background: #0a0a0a; border: 1px solid rgba(255,176,32,.35); border-radius: 8px; padding: .8rem; margin-top: .8rem; }+ .keybox code { display: block; word-break: break-all; font-family: ui-monospace, monospace; font-size: .78rem; color: #fcd34d; background: #111; padding: .5rem; border-radius: 6px; margin: .4rem 0; }++ .statebox { text-align: center; padding: 1.6rem 1rem; }+ .se-glyph { font-size: 2.4rem; margin-bottom: .5rem; }+ .statebox h3 { font-family: var(--font-display); margin: 0 0 .5rem; font-size: 1.15rem; }+ .statebox p { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; }+ .statebox.claimed .se-glyph { color: #4ade80; }+ .statebox.expired .se-glyph, .statebox.reclaimed .se-glyph { color: #888; }+ .statebox.error .se-glyph { color: #f87171; }++ .skel-gift { padding: 1.6rem .5rem; text-align: center; }+ .skel-line { height: 14px; border-radius: 6px; background: #161616; margin: 0 auto .6rem; position: relative; overflow: hidden; }+ .skel-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent); animation: sweep 1.3s infinite; }+ .skel-line.w40 { width: 40%; height: 34px; } .skel-line.w70 { width: 70%; } .skel-line.w70.big { height: 30px; } .skel-line.w50 { width: 50%; }+ @keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }++ .spin { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; border-radius: 50%; display: inline-block; animation: rot .7s linear infinite; vertical-align: -2px; }+ button.ghost .spin { border-color: rgba(255,255,255,.2); border-top-color: #fff; }+ @keyframes rot { to { transform: rotate(360deg); } }++ #drop-toast.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(120%); background: #1a1a1a; border: 1px solid var(--border); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-size: .85rem; transition: transform .3s ease; z-index: 50; max-width: 90vw; }+ #drop-toast.toast.show { transform: translateX(-50%) translateY(0); }+ </style>++ <meta name="theme-color" content="#000000">+ <script src="/model-viewer-meshopt.js"></script>+</head>+<body>+ <a href="#main-content" class="skip-link">Skip to main content</a>+ <header>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>++ <main id="main-content">+ <div id="drop-claim">+ <div id="dc-stage"></div>+ </div>+ </main>++ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-cta">+ <div class="h-footer-newsletter">+ <h3>Stay in the loop</h3>+ <p>Get updates on new features, agent tooling, and protocol changes.</p>+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>+ <input type="email" class="h-footer-newsletter-input" name="email" placeholder="Enter your email" aria-label="Email address" autocomplete="email" required />+ <button type="submit" class="h-footer-newsletter-btn" aria-label="Subscribe">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2 8h11m0 0L9 4m4 4l-4 4"/></svg>+ </button>+ </form>+ <p class="h-footer-newsletter-msg" data-newsletter-msg aria-live="polite"></p>+ </div>+ <div class="h-footer-resources">+ <h3>Resources</h3>+ <p>Read the docs, join the community, and get help.</p>+ <a class="h-footer-community-btn" href="/docs" target="_blank" rel="noopener">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ Docs+ </a>+ </div>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />+ <span class="wordmark-dot" aria-hidden="true" style="width:8px;height:8px;border-radius:50%;background:#fff;display:inline-block"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Product</h4>+ <a href="/vanity-wallet">Vanity wallet</a>+ <a href="/create">Create</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Developers</h4>+ <a href="/docs">Docs</a>+ </div>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-legal-links">+ <a href="/legal/privacy">Privacy Policy</a>+ <a href="/legal/tos">Terms of Use</a>+ </div>+ </div>+ </footer>++ <script type="module" src="/src/pages/sealed-drops.js"></script>+ <script src="/brand.js" defer></script>+ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body>+</html>diff --git a/public/.well-known/402index-verify.txt b/public/.well-known/402index-verify.txtnew file mode 100644index 000000000..a0d30b655--- /dev/null+++ b/public/.well-known/402index-verify.txt@@ -0,0 +1 @@+4629c2400e60d3b658b3dea6ced62ab002255c7a58d43a7d3b08935895d831a5\ No newline at end of filediff --git a/public/changelog.json b/public/changelog.jsonindex ad6617df0..f4a1a1e49 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-11T22:01:34.847Z",+ "generated_at": "2026-07-11T22:52:12.691Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -117,6 +117,16 @@"feature"]},+ {+ "date": "2026-07-11",+ "type": "update",+ "title": "Fortune's Folly — a Wheel of Fortune landed in the /play plaza",+ "summary": "Walk up to the wheel in the Mainland plaza and spin: one free spin every 12 hours, or pay $3 in $THREE for another shot — split 50% to the holder-rewards pool and 50% to the treasury, verified on-chain before any prize is granted. Twenty equal-odds wedges hand out wood, stone, coal, or cash, and a won prize is never lost to a full pack. Requires a little in-world progress first (average skill level 3) to keep it a bonus for players, not a bot target.",+ "link": "/play",+ "tags": [+ "feature"+ ]+ },{"date": "2026-07-11","type": "update",@@ -160,6 +170,26 @@"improvement"]},+ {+ "date": "2026-07-11",+ "type": "update",+ "title": "Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet",+ "summary": "Fund a fresh Solana wallet — optionally vanity-ground with a custom prefix or suffix — wrap it in a sealed link, and send it to someone. A bearer link carries the claim key in the URL itself for simple sharing, or seal it to a specific recipient's key so only they can ever open it. Claiming happens entirely in the recipient's browser at their own link — three.ws never sees the plaintext key at any point. Track what you've sent and reclaim anything that expires unclaimed from the same page.",+ "link": "/vanity-wallet",+ "tags": [+ "feature"+ ]+ },+ {+ "date": "2026-07-11",+ "type": "update",+ "title": "The datapoint fabric: 480,000+ standalone paid endpoints",+ "summary": "Every individual market datapoint three.ws aggregates is now its own standalone paid endpoint — one URL, one value, one micro-payment of $0.0005 USDC over x402. Bitcoin's spot price, Lido's TVL, one yield pool's APY, USDT's peg deviation in basis points, BTC dominance, the standard gas tier — each of roughly 484,000 combinations of ~17,500 coins, ~15,500 yield pools, ~6,000 protocols, plus chains, stablecoins, exchanges, and the global market gauges, across 68 metrics, is individually addressable and individually buyable by any agent with a wallet. A free catalog at /api/x402/d lists every family and metric with prices and can page through each family's entire live id space, so a crawler can walk the whole endpoint universe. Asking for a datapoint that doesn't exist never triggers a payment request, and a failed fetch never charges the buyer.",+ "link": "/docs/market-data-api",+ "tags": [+ "feature"+ ]+ },{"date": "2026-07-11","type": "update",@@ -17699,7 +17729,7 @@"date": "2026-04-29","type": "launch","title": "Solana Vanity Wallet",- "summary": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.",+ "summary": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.","link": "/vanity-wallet","tags": ["launch"diff --git a/public/changelog.xml b/public/changelog.xmlindex 8bb1e5349..7c4b3b563 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -94,6 +94,14 @@<category>feature</category><description>Agents can now pay fractions of a cent for answers, not just data: a one-call DeFi radar (TVL movers, top fee earners, top DEX volumes), a yield scanner with per-pool risk flags across 15,000+ live pools, a stablecoin peg monitor with depeg alerts, an exploit-history check for any protocol, a top-coins momentum heatmap with market-breadth stats, a multi-chain gas oracle covering Ethereum, Base, and Solana in one call, a market-mood index that blends Fear & Greed with live sentiment from 192 news feeds, and a per-ticker news pulse measuring coverage velocity. Prices run $0.001–$0.005 USDC per call, settled instantly via x402 on Solana or Base, and every endpoint refuses payment when its live data source is down — you are never charged for a missing answer.</description></item>+ <item>+ <title>Fortune's Folly — a Wheel of Fortune landed in the /play plaza</title>+ <link>https://three.ws/play</link>+ <guid isPermaLink="false">2026-07-11:Fortune's Folly — a Wheel of Fortune landed in the /play plaza</guid>+ <pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Walk up to the wheel in the Mainland plaza and spin: one free spin every 12 hours, or pay $3 in $THREE for another shot — split 50% to the holder-rewards pool and 50% to the treasury, verified on-chain before any prize is granted. Twenty equal-odds wedges hand out wood, stone, coal, or cash, and a won prize is never lost to a full pack. Requires a little in-world progress first (average skill level 3) to keep it a bonus for players, not a bot target.</description>+ </item><item><title>Market data no longer rides on a single source</title><link>https://three.ws/coins</link>@@ -126,6 +134,22 @@<category>feature</category><description>Every coin page now shows far more of what the data already offers: a 1h-to-1y price-performance matrix, a circulating-vs-max supply bar with the market-cap/FDV ratio, all-time high and low with the drawdown and recovery multiple, the community bullish/bearish sentiment split, GitHub and social activity, and a full exchange-listings table with spread, order-book depth, and a trust rating for each venue. Exchanges and crypto categories, which used to only send you off-site or filter a table, now have their own detail pages — an exchange page with a trust badge, wash-volume-adjusted volume, a volume-history chart, and its markets, and a category page with the sector's rank, stats, and full coin list. And a brand-new DeFi Yields explorer covers roughly 15,000 live pools across every chain and protocol, filterable and sortable, each with its own APY and TVL history chart. All of it is real, key-free data.</description></item>+ <item>+ <title>Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet</title>+ <link>https://three.ws/vanity-wallet</link>+ <guid isPermaLink="false">2026-07-11:Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet</guid>+ <pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Fund a fresh Solana wallet — optionally vanity-ground with a custom prefix or suffix — wrap it in a sealed link, and send it to someone. A bearer link carries the claim key in the URL itself for simple sharing, or seal it to a specific recipient's key so only they can ever open it. Claiming happens entirely in the recipient's browser at their own link — three.ws never sees the plaintext key at any point. Track what you've sent and reclaim anything that expires unclaimed from the same page.</description>+ </item>+ <item>+ <title>The datapoint fabric: 480,000+ standalone paid endpoints</title>+ <link>https://three.ws/docs/market-data-api</link>+ <guid isPermaLink="false">2026-07-11:The datapoint fabric: 480,000+ standalone paid endpoints</guid>+ <pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Every individual market datapoint three.ws aggregates is now its own standalone paid endpoint — one URL, one value, one micro-payment of $0.0005 USDC over x402. Bitcoin's spot price, Lido's TVL, one yield pool's APY, USDT's peg deviation in basis points, BTC dominance, the standard gas tier — each of roughly 484,000 combinations of ~17,500 coins, ~15,500 yield pools, ~6,000 protocols, plus chains, stablecoins, exchanges, and the global market gauges, across 68 metrics, is individually addressable and individually buyable by any agent with a wallet. A free catalog at /api/x402/d lists every family and metric with prices and can page through each family's entire live id space, so a crawler can walk the whole endpoint universe. Asking for a datapoint that doesn't exist never triggers a payment request, and a failed fetch never charges the buyer.</description>+ </item><item><title>The Market Data API: every market feed, now buyable per call</title><link>https://three.ws/docs/market-data-api</link>@@ -13652,7 +13676,7 @@<guid isPermaLink="false">2026-04-29:Solana Vanity Wallet</guid><pubDate>Wed, 29 Apr 2026 12:00:00 GMT</pubDate><category>launch</category>- <description>Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.</description>+ <description>Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.</description></item><item><title>On-chain agents on Solana and EVM</title>diff --git a/public/features.json b/public/features.jsonindex 2c994d191..c8fc457b0 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-11T22:01:34.834Z",+ "generated_at": "2026-07-11T22:52:12.677Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -1349,7 +1349,7 @@{"path": "/vanity-wallet","title": "Solana Vanity Wallet",- "description": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.",+ "description": "Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.","added": "2026-04-29","auth": null,"indexable": true,diff --git a/public/llms-full.txt b/public/llms-full.txtindex a52f323e6..de5aeea70 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -823,7 +823,7 @@ A marketplace of how agents trade: ownable, forkable, leaderboard-ranked trade sURL: https://three.ws/vanity-wallet-Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.+Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.### Fact Checkdiff --git a/public/llms.txt b/public/llms.txtindex 7f0affe7b..e17841982 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -152,7 +152,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.- [Pump Dashboard](https://three.ws/pump-dashboard): Pump.fun trading desk: watchlists, scanner, quotes, portfolio, and live charts.- [Strategy Lab](https://three.ws/strategy-lab): Build DCA and subscription strategies that trade on-chain on your behalf.- [Strategy Objects](https://three.ws/strategies): A marketplace of how agents trade: ownable, forkable, leaderboard-ranked trade strategies your agent can equip and run on-chain within your spend policy.-- [Solana Vanity Wallet](https://three.ws/vanity-wallet): Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.+- [Solana Vanity Wallet](https://three.ws/vanity-wallet): Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.- [Fact Check](https://three.ws/fact-check): Sourced fact-checking with cryptographic attestations — a published, checkable accuracy benchmark plus a live free-check box. 3 free checks/day per IP, then $0.10 USDC via x402.- [Verify a Vanity Receipt](https://three.ws/vanity/verify): Independently verify a three.ws provably-fair vanity wallet receipt — entirely in your browser. Prove the key was generated fresh under a committed seed and the operator never kept a copy.- [Proof-of-Grind Gallery](https://three.ws/vanity/gallery): A public gallery and leaderboard of the rarest Solana vanity addresses ground on three.ws — each provably-fair, verified, and shareable. Appraise any address to see its honest rarity tier and grind cost.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex aed42fc07..204591662 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&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&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&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&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">@@ -1067,7 +1048,7 @@<a href="/vanity-wallet"><span class="sm-title">Solana Vanity Wallet</span><span class="sm-path">/vanity-wallet</span>- <span class="sm-desc">Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.</span>+ <span class="sm-desc">Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores. Also send sealed wallet gifts: fund a fresh (optionally vanity-ground) wallet and wrap it in an end-to-end sealed claim link only the recipient can open.</span></a></li><li>diff --git a/public/vanity-wallet.html b/public/vanity-wallet.htmlindex 04c93d525..5f4e32e46 100644--- a/public/vanity-wallet.html+++ b/public/vanity-wallet.html@@ -11,6 +11,7 @@<link rel="stylesheet" href="/nav.css"><link rel="stylesheet" href="/fonts/fonts.css" /><script defer src="/footer-newsletter.js"></script>+ <script src="/x402.js" type="module"></script><script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js" integrity="sha384-sr9b4Ux0WhAUGclJ0ym0FSY2zSOMmNSn0bP/SA0e6bNCrpn/5W3QL8mm+LdlQMKw" crossorigin="anonymous"></script><style>* { box-sizing: border-box; }@@ -159,6 +160,66 @@.tier-free { background: rgba(74,222,128,0.12); color: #4ade80; }.tier-paid { background: linear-gradient(90deg,rgba(255,213,79,0.15),rgba(255,138,101,0.15)); color: #fbbf24; border: 1px solid rgba(255,213,79,0.2); }+ /* ── Sealed gift drops (shared visual language with /vanity/bounties) ── */+ .section-divider { margin: 2.6rem 0 1.6rem; padding-top: 2rem; border-top: 1px solid var(--border); }+ .section-divider h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .25rem; letter-spacing: -0.01em; }+ .section-divider p.lede { font-size: .85rem; margin-bottom: 1.1rem; }+ label.fl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #666; margin: .9rem 0 .3rem; }+ input.t, textarea.t, select.t { width: 100%; font: inherit; background: #1a1a1a; color: var(--fg); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: .6rem .8rem; }+ textarea.t { min-height: 70px; resize: vertical; }+ .gift-row { display: flex; gap: .7rem; flex-wrap: wrap; }+ .gift-row > div { flex: 1; min-width: 140px; }+ .chk { display: flex; align-items: flex-start; gap: .5rem; margin-top: .7rem; font-size: .82rem; color: #ccc; cursor: pointer; }+ .chk input { margin-top: 2px; }+ .mono { font-family: ui-monospace, monospace; word-break: break-all; }+ .errbox, .okbox, .warnbox { display: none; margin-top: .9rem; padding: .7rem .9rem; border-radius: 8px; font-size: .85rem; }+ .errbox.show { display: block; border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fca5a5; }+ .okbox.show { display: block; border: 1px solid rgba(74,222,128,.4); background: rgba(74,222,128,.08); color: #86efac; }+ .warnbox.show { display: block; border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.08); color: #fcd34d; }+ /* Same warning visuals as .warnbox, but visibility is driven purely by the+ inline style="display:none" sealed-drops.js toggles directly — unlike+ .errbox/.okbox/.warnbox above (which need a .show class added), this one+ has no hidden-by-default class rule to fight the JS's own toggle. */+ .keynote { padding: .7rem .9rem; border-radius: 8px; font-size: .85rem; border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.08); color: #fcd34d; margin-top: .6rem; }+ .keybox { background: #0a0a0a; border: 1px solid rgba(255,176,32,.35); border-radius: 8px; padding: .8rem; margin-top: .8rem; }+ .keybox code { display: block; word-break: break-all; font-family: ui-monospace, monospace; font-size: .78rem; color: #fcd34d; background: #111; padding: .5rem; border-radius: 6px; margin: .4rem 0; }+ .kv { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; }+ .kv:last-child { border-bottom: none; } .kv .k { color: #666; } .kv .v { font-weight: 700; font-family: ui-monospace, monospace; }+ .qrwrap { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: .9rem; }+ .qrbox { background: #fff; padding: .6rem; border-radius: 8px; line-height: 0; }+ .qrbox svg { width: 160px; height: 160px; display: block; }+ .qrcap { font-size: .72rem; color: #666; }+ details > summary { cursor: pointer; font-size: .82rem; color: #999; }+ details p.note { font-size: .78rem; color: #666; margin: .5rem 0 0; }+ #drop-toast.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(120%); background: #1a1a1a; border: 1px solid var(--border); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-size: .85rem; transition: transform .3s ease; z-index: 50; max-width: 90vw; }+ #drop-toast.toast.show { transform: translateX(-50%) translateY(0); }+ .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: rot .7s linear infinite; vertical-align: -2px; }+ @keyframes rot { to { transform: rotate(360deg); } }+ .empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); }+ .empty .glyph { font-size: 2.2rem; margin-bottom: .5rem; opacity: .5; }+ .empty h3 { font-family: var(--font-display); margin: .2rem 0 .4rem; color: #ccc; font-size: 1rem; }+ .minerow { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }+ .minerow:last-child { border-bottom: none; }+ .mr-amt { font-weight: 700; font-family: var(--font-display); }+ .mr-meta { font-size: .74rem; color: #666; margin-top: .2rem; }+ .mr-meta .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: .3rem; }+ .mr-meta .dot.open { background: #4ade80; } .mr-meta .dot.claimed { background: #38bdf8; } .mr-meta .dot.reclaimed { background: #666; } .mr-meta .dot.expired { background: #f87171; }+ .mr-actions { display: flex; gap: .4rem; flex-shrink: 0; }+ .skel { position: relative; overflow: hidden; background: #161616; border-radius: 8px; }+ .skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent); animation: sweep 1.3s infinite; }+ @keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }+ /* sealed-drops.js renders bare .primary/.ghost buttons (not .btn-prefixed+ like the grinder above) — matching /vanity/bounties' own button pattern+ so the two sibling pages read as one design language. */+ button.primary, button.ghost, a.primary, a.ghost { appearance: none; font: inherit; font-weight: 700; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: transform .1s, background .15s, border-color .15s; }+ button.primary, a.primary { background: #fff; color: #000; border: 1px solid #fff; padding: .55rem 1.1rem; }+ button.primary:hover, a.primary:hover { transform: translateY(-1px); background: #e8e8e8; }+ button.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }+ button.ghost, a.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,.12); padding: .5rem .9rem; }+ button.ghost:hover, a.ghost:hover { border-color: rgba(255,255,255,.3); }+ button.small, a.small { font-size: .78rem; padding: .4rem .7rem; }+ button.big, a.big { font-size: 1rem; padding: .8rem 1.4rem; width: 100%; justify-content: center; }+/* ── Site nav ── */.skip-link {position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;@@ -302,6 +363,107 @@<div id="error" hidden class="error"></div><div id="result" hidden></div></div>++ <div class="section-divider" id="drop-create">+ <h2>🎁 Send a sealed gift</h2>+ <p class="lede">+ Fund a fresh wallet — optionally vanity-ground with the pattern above — and wrap it in an end-to-end sealed link.+ Only the recipient can ever open it; three.ws never sees the key.+ </p>+ <div class="card">+ <div class="gift-row">+ <div>+ <label class="fl" for="dc-asset">Asset</label>+ <select class="t" id="dc-asset">+ <option value="SOL">SOL</option>+ <option value="USDC">USDC</option>+ <option value="THREE">$THREE</option>+ </select>+ </div>+ <div>+ <label class="fl" for="dc-amount">Amount</label>+ <input class="t" id="dc-amount" type="text" inputmode="decimal" placeholder="e.g. 0.1" autocomplete="off" />+ </div>+ </div>++ <label class="fl">Vanity pattern (optional)</label>+ <p class="note" style="font-size:.78rem;color:#666;margin:0 0 .4rem">Reuses the prefix/suffix above — leave blank to skip grinding and fund instantly.</p>+ <div class="gift-row">+ <div>+ <input class="t mono" id="dc-prefix" type="text" maxlength="6" placeholder="Starts with" autocomplete="off" spellcheck="false" />+ </div>+ <div>+ <input class="t mono" id="dc-suffix" type="text" maxlength="6" placeholder="Ends with" autocomplete="off" spellcheck="false" />+ </div>+ </div>++ <label class="fl">Key export format</label>+ <select class="t" id="dc-format">+ <option value="mnemonic">Seed phrase (mnemonic)</option>+ <option value="base58">Secret key (Base58)</option>+ </select>++ <label class="fl">How should this be sealed?</label>+ <label class="chk"><input type="radio" name="dc-seal" value="claim-time" checked /><span><strong>Bearer link</strong> — anyone with the full link can claim it once. Simplest to share.</span></label>+ <label class="chk"><input type="radio" name="dc-seal" value="direct" /><span><strong>Sealed to a key</strong> — only the holder of a specific X25519 private key can open it, even with the link.</span></label>+ <p class="note" id="dc-bearer-note" style="font-size:.78rem;color:#666;margin:.5rem 0 0">The claim link itself carries the key — send it privately, the same way you'd send cash.</p>++ <div id="dc-direct-wrap" style="display:none">+ <label class="fl" for="dc-recipient">Recipient's X25519 public key</label>+ <input class="t mono" id="dc-recipient" type="text" placeholder="Paste a public key, or generate a fresh pair" autocomplete="off" />+ <div class="actions" style="margin-top:.5rem"><button class="ghost small" id="dc-genkey" type="button">Generate a key pair for them</button></div>+ <div id="dc-genkey-note" class="keynote" style="display:none"></div>+ </div>++ <label class="fl" for="dc-message">Message (optional)</label>+ <textarea class="t" id="dc-message" maxlength="200" placeholder="Happy birthday!"></textarea>++ <div class="gift-row">+ <div>+ <label class="fl" for="dc-theme">Theme</label>+ <select class="t" id="dc-theme">+ <option value="default">🎁 Default</option>+ <option value="birthday">🎂 Birthday</option>+ <option value="congrats">🎉 Congrats</option>+ <option value="thanks">🙏 Thanks</option>+ <option value="welcome">👋 Welcome</option>+ <option value="tip">⚡ Tip</option>+ </select>+ </div>+ <div>+ <label class="fl" for="dc-sender">Your name (optional)</label>+ <input class="t" id="dc-sender" type="text" maxlength="40" placeholder="Shown to the recipient" autocomplete="off" />+ </div>+ </div>++ <div class="gift-row">+ <div>+ <label class="fl" for="dc-expiry">Expires in (hours)</label>+ <input class="t" id="dc-expiry" type="number" min="1" max="2160" value="168" />+ </div>+ <div>+ <label class="fl" for="dc-reclaim">Reclaim address (optional)</label>+ <input class="t mono" id="dc-reclaim" type="text" placeholder="Defaults to your connected wallet" autocomplete="off" />+ </div>+ </div>++ <div class="actions">+ <button class="primary" id="dc-submit" type="button">Create sealed gift</button>+ </div>+ <p class="note" id="dc-hint" style="font-size:.8rem;color:#666;margin-top:.6rem">Loading pricing…</p>+ <div class="errbox" id="dc-err"></div>+ <div id="dc-result" hidden></div>+ </div>+ </div>++ <div class="section-divider" id="drop-mine">+ <a id="mine"></a>+ <h2>My sealed drops</h2>+ <p class="lede">Gifts you've sent from this browser — reclaim any that expire unclaimed.</p>+ <div class="card">+ <div id="dm-list"></div>+ </div>+ </div></main><footer class="h-footer-horizon">@@ -897,6 +1059,7 @@});}</script>+ <script type="module" src="/src/pages/sealed-drops.js"></script><script src="/brand.js" defer></script><div id="footer-container"></div><script src="/footer.js"></script>diff --git a/scripts/changelog-x.mjs b/scripts/changelog-x.mjsindex 9215011a0..f91248361 100644--- a/scripts/changelog-x.mjs+++ b/scripts/changelog-x.mjs@@ -1,11 +1,19 @@#!/usr/bin/env node-// Push new changelog entries to the @trythreews X (Twitter) account.+// Push new changelog entries to the @trythreews X (Twitter) account as one+// continuous thread.+//+// Instead of bloating the profile feed with a standalone tweet per release,+// the account keeps a single anchor post ("everything we ship lands in this+// thread") and every changelog entry is posted as a reply chained to the+// previous entry. The profile shows one post; followers who open it see the+// full running release history. Pin the anchor for maximum effect.//// Reads the generated feed (public/changelog.json — run `npm run build:pages`// first if it's stale), diffs it against data/changelog-x-state.json, and-// posts each unposted entry as a tweet via twitter-api-v2. Successfully-// posted entries are recorded in the state file — commit it so pushes stay-// idempotent across machines and agents.+// posts each unposted entry as the next reply in the chain via twitter-api-v2.+// The state file records posted entries AND the thread ids (anchor + last+// reply) — commit it so the chain continues correctly across machines and+// agents.//// Env (reads .env.local → .env → environment) — OAuth 1.0a user context for// the @trythreews account, from a developer.x.com app with Read+Write access:@@ -15,14 +23,20 @@// X_ACCESS_SECRET user access token secret for @trythreews//// Usage:-// node scripts/changelog-x.mjs # push unposted entries from the last 2 days+// node scripts/changelog-x.mjs # chain unposted entries from the last 2 days// node scripts/changelog-x.mjs --since=2026-06-01-// node scripts/changelog-x.mjs --all # push every unposted entry (full backfill)-// node scripts/changelog-x.mjs --dry-run # print what would be tweeted, send nothing-// node scripts/changelog-x.mjs --limit=3 # cap tweets per run (default 5)+// node scripts/changelog-x.mjs --all # every unposted entry (full backfill)+// node scripts/changelog-x.mjs --dry-run # print the would-be chain, send nothing+// node scripts/changelog-x.mjs --limit=3 # cap posts per run (default 5)+// node scripts/changelog-x.mjs --anchor=1234567 # adopt an existing tweet as the thread anchor+// node scripts/changelog-x.mjs --standalone # one-off: post unchained (big announcements)+//+// First real (non-dry) run with no recorded thread posts the anchor tweet+// automatically, then chains entries under it. The anchor counts against the+// same rate budget as one entry.//// The X free API tier allows ~17 posts per 24h per user — keep --limit small-// and run the backfill over several days, or post a single digest instead.+// and run the backfill over several days.import { readFileSync, writeFileSync } from 'node:fs';import { resolve, dirname } from 'node:path';@@ -33,6 +47,12 @@ const root = resolve(here, '..');const feedFile = resolve(root, 'public/changelog.json');const stateFile = resolve(root, 'data/changelog-x-state.json');+const ANCHOR_TEXT = [+ 'everything we ship at three.ws lands in this thread. one reply per release, straight from the changelog.',+ '',+ 'full log: https://three.ws/changelog',+].join('\n');+function loadEnvFile(path) {let raw;try {@@ -60,9 +80,11 @@ const opt = (name) => {const dryRun = flag('dry-run');const pushAll = flag('all');+const standalone = flag('standalone');const includeLaunches = flag('include-launches');const since = opt('since');const limit = Number(opt('limit') || 5);+const anchorOverride = opt('anchor');const creds = {appKey: process.env.X_API_KEY,@@ -83,13 +105,26 @@ try {process.exit(1);}-let state = { posted: [] };+let state = { posted: [], thread: null };try {- state = JSON.parse(readFileSync(stateFile, 'utf8'));+ state = { thread: null, ...JSON.parse(readFileSync(stateFile, 'utf8')) };} catch {// First run — state file gets created below.}const posted = new Set(state.posted);+// thread = { anchor: '<tweet id of the pinned anchor post>', last: '<tweet id the next entry replies to>' }+let thread = state.thread;++if (anchorOverride) {+ if (thread && thread.anchor !== anchorOverride) {+ console.log(`Rebasing thread: anchor ${thread.anchor} → ${anchorOverride} (new entries chain under the new anchor).`);+ }+ thread = { anchor: anchorOverride, last: anchorOverride, ...(thread && thread.anchor === anchorOverride ? thread : {}) };+}++const saveState = () => {+ writeFileSync(stateFile, JSON.stringify({ posted: [...posted], thread }, null, '\t') + '\n');+};const entryKey = (e) => `${e.date}:${e.title}`;@@ -105,6 +140,7 @@ const pending = feed.entries.slice(0, limit);if (pending.length === 0) {+ if (anchorOverride && !dryRun) saveState();console.log(`Nothing new to post (cutoff ${cutoff}, ${posted.size} already posted).`);process.exit(0);}@@ -141,12 +177,13 @@ function formatTweet(e) {return `${body}${suffix}`;}-async function postTweet(client, text) {- const { data } = await client.v2.tweet(text);+async function postTweet(client, text, replyToId) {+ const payload = replyToId ? { reply: { in_reply_to_tweet_id: replyToId } } : undefined;+ const { data } = await client.v2.tweet(text, payload);return data.id;}-console.log(`${pending.length} entr${pending.length === 1 ? 'y' : 'ies'} to post (cutoff ${cutoff})${dryRun ? ' — DRY RUN' : ''}:`);+console.log(`${pending.length} entr${pending.length === 1 ? 'y' : 'ies'} to post (cutoff ${cutoff})${dryRun ? ' — DRY RUN' : ''}${standalone ? ' — STANDALONE (unchained)' : ''}:`);let client = null;if (!dryRun) {@@ -154,31 +191,58 @@ if (!dryRun) {client = new TwitterApi(creds);}+// Space posts out — the free tier caps user writes at ~17/24h and+// burst-posting reads as bot spam to followers anyway.+const PACE_MS = 10000;++if (!standalone && !thread) {+ if (dryRun) {+ console.log(`\n--- thread anchor (would be posted first, then pinned by the owner) ---\n${ANCHOR_TEXT}`);+ } else {+ try {+ const id = await postTweet(client, ANCHOR_TEXT);+ thread = { anchor: id, last: id };+ saveState();+ console.log(`anchor https://x.com/trythreews/status/${id} — pin this post on the profile.`);+ await new Promise((r) => setTimeout(r, PACE_MS));+ } catch (err) {+ console.error(`FAILED to post the thread anchor: ${err.message}`);+ process.exit(1);+ }+ }+}+let sent = 0;+let dryPrev = thread ? thread.last : '<anchor>';for (const e of pending) {const text = formatTweet(e);if (dryRun) {- console.log(`\n--- ${entryKey(e)} (${weightedLength(text.replace(/https:\/\/\S+/g, 'x'.repeat(URL_WEIGHT)))} weighted chars) ---\n${text}`);+ const chainNote = standalone ? 'standalone' : `reply to ${dryPrev}`;+ console.log(`\n--- ${entryKey(e)} (${weightedLength(text.replace(/https:\/\/\S+/g, 'x'.repeat(URL_WEIGHT)))} weighted chars, ${chainNote}) ---\n${text}`);+ dryPrev = `<${entryKey(e)}>`;continue;}try {- const id = await postTweet(client, text);+ const replyTo = standalone ? null : thread.last;+ const id = await postTweet(client, text, replyTo);posted.add(entryKey(e));+ if (!standalone) thread = { ...thread, last: id };sent++;- console.log(`posted ${entryKey(e)} → https://x.com/trythreews/status/${id}`);- // Space posts out — the free tier caps user writes at ~17/24h and- // burst-posting reads as bot spam to followers anyway.- await new Promise((r) => setTimeout(r, 10000));+ // Persist after every post so a hard kill mid-run can't double-post+ // or fork the chain on the next run.+ saveState();+ console.log(`posted ${entryKey(e)} → https://x.com/trythreews/status/${id}${standalone ? '' : ` (in thread ${thread.anchor})`}`);+ await new Promise((r) => setTimeout(r, PACE_MS));} catch (err) {- // Persist what made it out so a retry doesn't double-post.- writeFileSync(stateFile, JSON.stringify({ posted: [...posted] }, null, '\t') + '\n');+ saveState();console.error(`FAILED ${entryKey(e)}: ${err.message}`);- console.error(`${sent} posted before the failure; state saved. Re-run to resume.`);+ console.error(`${sent} posted before the failure; state saved. Re-run to resume the chain.`);process.exit(1);}}if (!dryRun) {- writeFileSync(stateFile, JSON.stringify({ posted: [...posted] }, null, '\t') + '\n');+ saveState();console.log(`\nDone — ${sent} posted, state saved to data/changelog-x-state.json (commit it).`);+ if (thread) console.log(`Thread anchor: https://x.com/trythreews/status/${thread.anchor}`);}diff --git a/src/pages/sealed-drops.js b/src/pages/sealed-drops.jsindex b95076110..b0b1ea7c0 100644--- a/src/pages/sealed-drops.js+++ b/src/pages/sealed-drops.js@@ -15,22 +15,13 @@// derivation (drop-protocol), X25519 keygen. All money rails are real: x402 for// the create fee, on-chain funding + reclaim server-side.//-// STATUS (verified 2026-07-10): the backend this controller talks to is real-// and complete — api/vanity/drops.js (914 lines, create/claim/reveal/reclaim),-// the OG card generator at api/og/sealed-drop.js, and the crypto modules this-// file imports (src/solana/vanity/sealed-envelope.js,-// src/solana/vanity/drop-protocol.js) are all fully built. What's missing is-// every HTML page: no page anywhere has a `#drop-create`, `#drop-claim`, or-// `#drop-mine` element, so `boot()` below finds nothing to mount into.-// `/vanity-wallet` (public/vanity-wallet.html) is a same-named but unrelated-// existing page (Solana vanity ADDRESS grinding) — it does not contain a gift-// composer and was never meant to conflict with this feature; a dedicated-// entry point (and a `/drop/:id` claim page, routed the same way `/coin/:mint`-// rewrites to coin.html in vercel.json) still needs to be built. This needs-// careful, unhurried page-building — precise markup for ~30 element ids this-// file already expects (grep `$\\('dc-` here), a real private-key-handling UX-// review, and QR/share-card wiring — not a rushed pass, since a mistake here-// risks a user's actual funds/keys.+// Mounted (2026-07-11): the create + mine sections live inside+// public/vanity-wallet.html (a "Send a sealed gift" section below the vanity+// grinder — the prefix/suffix/format fields reuse that page's own grinding+// UI), and the claim flow is its own page at pages/drop.html, routed by+// vercel.json's `/drop/:id` → `/drop.html` rewrite (id = 24 lowercase hex+// chars, matching api/vanity/drops.js's id format). Backend+// (api/vanity/drops.js, api/og/sealed-drop.js) predates this and is unchanged.import bs58 from 'bs58';import {diff --git a/vercel.json b/vercel.jsonindex 4fe142b30..f47f91bee 100644--- a/vercel.json+++ b/vercel.json@@ -1064,6 +1064,10 @@"src": "/coin/([a-zA-Z0-9][a-zA-Z0-9_-]{0,99})/?","dest": "/coin.html"},+ {+ "src": "/drop/([0-9a-f]{24})/?",+ "dest": "/drop.html"+ },{"src": "/compose/?","dest": "/compose.html"diff --git a/vite.config.js b/vite.config.jsindex 5a9a8016d..a4577d852 100644--- a/vite.config.js+++ b/vite.config.js@@ -465,6 +465,7 @@ const appConfig = {'coin-intel': resolve(__dirname, 'pages/coin-intel.html'),coins: resolve(__dirname, 'pages/coins.html'),coin: resolve(__dirname, 'pages/coin.html'),+ drop: resolve(__dirname, 'pages/drop.html'),markets: resolve(__dirname, 'pages/markets.html'),'markets-news': resolve(__dirname, 'pages/markets-news.html'),'news-digest': resolve(__dirname, 'pages/news-digest.html'),@@ -1519,6 +1520,10 @@ support: resolve(__dirname, 'pages/support.html'),/^\/coin\/[a-zA-Z0-9][a-zA-Z0-9_-]{0,99}\/?$/.test(path))filePath = resolve(root, 'pages/coin.html');+ // /drop/:id → sealed wallet gift claim page (24 lowercase hex chars,+ // matching api/vanity/drops.js's id format)+ else if (!filePath && /^\/drop\/[0-9a-f]{24}\/?$/.test(path))+ filePath = resolve(root, 'pages/drop.html');// /exchange/:id → exchange detail page (CoinGecko exchange slug)else if (!filePath && /^\/exchange\/[a-z0-9_-]{1,60}\/?$/i.test(path))filePath = resolve(root, 'pages/exchange.html');