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.

26.1 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
	<style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
	<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1" />
	<title data-i18n="shopper.meta_title">Endpoint Shopper — three.ws</title>
	<meta name="description" content="AI agent that discovers paid x402 endpoints, chains them together, and synthesizes a final answer for any task."  data-i18n-attr="content:shopper.meta_description"/>
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
	<link rel="stylesheet" href="/fonts/fonts.css" />
	<style>
		:root {
			color-scheme: dark;
			--bg:        #050505;
			--surface-0: #0b0b0b;
			--surface-1: #111111;
			--surface-2: #181818;
			--surface-3: #1e1e1e;
			--hairline:  #1c1c1c;
			--hairline-strong: #2a2a2a;
			--text:      #f6f6f6;
			--text-2:    #a8a8a8;
			--text-3:    #6a6a6a;
			--text-4:    #4a4a4a;
			--accent:    #ffffff;
			--green:     #e8e8e8;
			--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
			--font-body:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
			--font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
		}
		* { box-sizing: border-box; }
		html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
		body { font-size: 15.5px; line-height: 1.55; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
		a { color: inherit; text-decoration: none; }
		button { font-family: inherit; cursor: pointer; }
		a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {
			outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px;
		}
		::selection { background: var(--text); color: var(--bg); }
		.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
		@media (max-width: 720px) { .wrap { padding-left: 20px; padding-right: 20px; } }

		/* ── NAV ─────────────────────────────────────────────────── */
		.nav {
			position: sticky; top: 0; z-index: 100;
			border-bottom: 1px solid var(--hairline);
			background: rgba(5,5,5,0.88);
			backdrop-filter: blur(20px) saturate(140%);
		}
		.nav-inner {
			display: flex; align-items: center; gap: 32px;
			padding: 16px 32px; max-width: 1440px; margin: 0 auto;
		}
		.brand {
			display: flex; align-items: center; gap: 10px;
			font-family: var(--font-display);
			font-weight: 600; letter-spacing: -0.025em; font-size: 16.5px;
			flex-shrink: 0;
		}
		.brand-mark {
			width: 18px; height: 18px;
			border: 1px solid var(--text); border-radius: 3px;
			position: relative;
		}
		.brand-mark::after {
			content: ""; position: absolute; inset: 4px;
			background: var(--text);
		}
		.nav-main { display: flex; gap: 2px; margin-left: 12px; flex: 1; }
		.nav-main a { padding: 7px 12px; font-size: 14px; font-weight: 450; color: var(--text-2); transition: color 0.12s; }
		.nav-main a:hover { color: var(--text); }
		.nav-main a.active { color: var(--text); }
		.nav-end { display: flex; align-items: center; gap: 4px; }
		.nav-end a { padding: 7px 12px; font-size: 14px; font-weight: 450; color: var(--text-2); }
		.nav-end a:hover { color: var(--text); }
		.nav-end .console {
			color: var(--text); font-weight: 500;
			border: 1px solid var(--hairline-strong);
			padding: 7px 16px; border-radius: 7px; margin-left: 6px;
			transition: border-color 0.15s, background 0.15s;
		}
		.nav-end .console:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
		/* Below 880px the links used to be display:none, which left the
		   Marketplace and Fact Checker routes unreachable from this page on a
		   phone. They stay in the bar and scroll horizontally instead. */
		@media (max-width: 880px) {
			.nav-inner { padding: 14px 20px; gap: 12px; }
			.nav-main {
				margin-left: 0; min-width: 0;
				overflow-x: auto; scrollbar-width: none;
				-webkit-overflow-scrolling: touch;
			}
			.nav-main::-webkit-scrollbar { display: none; }
			.nav-main a { padding: 7px 9px; white-space: nowrap; }
		}
		/* Under 560px the brand + Dashboard button leave the links about 76px of
		   track, so they scroll a few pixels at a time. Wrap them onto their own
		   full-width row: same links, readable width, still one tap away. */
		@media (max-width: 560px) {
			.nav-inner { gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
			.brand { font-size: 15px; }
			.nav-end { margin-left: auto; }
			.nav-end .console { margin-left: 0; padding: 7px 12px; }
			.nav-main {
				order: 3; flex: 0 0 100%;
				flex-wrap: wrap; overflow-x: visible; gap: 2px 4px;
			}
			.nav-main a { white-space: normal; }
		}

		/* ── BUTTONS ─────────────────────────────────────────────── */
		.btn {
			display: inline-flex; align-items: center; gap: 10px;
			padding: 13px 22px; border-radius: 8px;
			font-size: 14.5px; font-weight: 500;
			border: 1px solid var(--hairline-strong);
			background: transparent; color: var(--text);
			transition: border-color 0.15s, background 0.15s;
			cursor: pointer; font-family: inherit;
		}
		.btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
		.btn.primary {
			background: var(--text); color: var(--bg);
			border-color: var(--text); font-weight: 550;
		}
		.btn.primary:hover { background: #fff; }
		.btn:disabled {
			opacity: 0.45; cursor: not-allowed;
			pointer-events: none;
		}

		/* ── HERO ────────────────────────────────────────────────── */
		.hero {
			padding: 80px 0 60px;
			border-bottom: 1px solid var(--hairline);
		}
		.eyebrow {
			display: inline-flex; align-items: center; gap: 10px;
			font-family: var(--font-mono); font-size: 11.5px;
			text-transform: uppercase; letter-spacing: 0.18em;
			color: var(--text-3); margin-bottom: 28px;
		}
		.eyebrow::before {
			content: ""; width: 6px; height: 6px; border-radius: 50%;
			background: var(--green); box-shadow: 0 0 6px var(--green);
			animation: pulse 2.4s ease-in-out infinite;
		}
		@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
		h1.hero-h {
			font-family: var(--font-display);
			font-size: clamp(40px, 5.5vw, 80px);
			line-height: 0.93; letter-spacing: -0.042em;
			font-weight: 600; margin: 0 0 24px; color: var(--text);
		}
		h1.hero-h em { font-style: normal; color: var(--text-3); font-weight: 500; }
		.hero-sub {
			font-size: 18px; color: var(--text-2);
			max-width: 560px; margin: 0; line-height: 1.55; font-weight: 400;
		}

		/* ── MAIN LAYOUT ─────────────────────────────────────────── */
		.main { padding: 64px 0 120px; }
		.main-grid {
			display: grid;
			grid-template-columns: 1fr 1.1fr;
			gap: 48px;
			align-items: start;
		}
		@media (max-width: 960px) {
			.main-grid { grid-template-columns: 1fr; gap: 40px; }
		}

		/* ── TASK FORM ───────────────────────────────────────────── */
		.form-panel {
			position: sticky; top: 88px;
		}
		.panel-label {
			display: block;
			font-family: var(--font-mono); font-size: 11px;
			letter-spacing: 0.18em; text-transform: uppercase;
			color: var(--text-3); margin-bottom: 12px;
		}
		textarea.task-input {
			width: 100%;
			background: var(--surface-1);
			border: 1px solid var(--hairline-strong);
			border-radius: 10px;
			color: var(--text);
			font-family: var(--font-body);
			font-size: 15.5px;
			line-height: 1.5;
			padding: 16px;
			resize: vertical;
			min-height: 128px;
			transition: border-color 0.15s;
			outline: none;
		}
		textarea.task-input::placeholder { color: var(--text-4); }
		textarea.task-input:focus { border-color: var(--text-3); }

		/* Example chips */
		.chip-row {
			display: flex; flex-wrap: wrap; gap: 8px;
			margin: 12px 0 0;
		}
		.chip {
			display: inline-flex; align-items: center;
			padding: 6px 12px; border-radius: 20px;
			font-size: 12.5px; font-weight: 450;
			border: 1px solid var(--hairline-strong);
			color: var(--text-3);
			background: var(--surface-1);
			cursor: pointer;
			transition: border-color 0.12s, color 0.12s;
			white-space: nowrap;
		}
		.chip:hover { border-color: var(--text-3); color: var(--text-2); }

		/* Budget slider */
		.budget-row {
			display: flex; align-items: center; gap: 16px;
			margin: 20px 0;
		}
		.budget-label {
			font-size: 13.5px; color: var(--text-2); white-space: nowrap;
		}
		.budget-val {
			font-family: var(--font-mono); font-size: 13.5px;
			color: var(--text); font-weight: 500; min-width: 48px; text-align: right;
		}
		input[type="range"].slider {
			flex: 1; -webkit-appearance: none; appearance: none;
			height: 4px; border-radius: 2px;
			background: var(--surface-3);
			outline: none;
			cursor: pointer;
		}
		input[type="range"].slider::-webkit-slider-thumb {
			-webkit-appearance: none; appearance: none;
			width: 16px; height: 16px;
			border-radius: 50%;
			background: var(--text);
			cursor: pointer;
		}
		input[type="range"].slider::-moz-range-thumb {
			width: 16px; height: 16px;
			border-radius: 50%;
			background: var(--text);
			border: none;
			cursor: pointer;
		}

		.run-btn-row { margin-top: 20px; }
		.run-hint {
			margin: 10px 0 0; min-height: 0;
			font-size: 12.5px; line-height: 1.45;
			color: var(--text-3);
		}
		.run-hint.warn { color: #e6a820; }
		.run-hint:empty { display: none; }

		/* ── EXECUTION PANEL ─────────────────────────────────────── */
		.result-panel { min-height: 120px; }

		/* Skeleton loader */
		.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
		.skeleton-item {
			background: var(--surface-1);
			border: 1px solid var(--hairline);
			border-radius: 10px;
			height: 64px;
			position: relative; overflow: hidden;
		}
		.skeleton-item::after {
			content: "";
			position: absolute; inset: 0;
			background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
			animation: shimmer 1.5s infinite;
		}
		@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

		/* Timeline */
		.timeline { display: flex; flex-direction: column; gap: 12px; }
		.step-card {
			background: var(--surface-1);
			border: 1px solid var(--hairline);
			border-radius: 10px;
			padding: 14px 16px;
			display: flex; gap: 14px; align-items: flex-start;
			opacity: 0; transform: translateY(8px);
			animation: step-in 0.32s ease forwards;
		}
		@keyframes step-in { to { opacity: 1; transform: translateY(0); } }
		.step-icon {
			width: 32px; height: 32px; border-radius: 8px;
			background: var(--surface-3);
			border: 1px solid var(--hairline-strong);
			display: flex; align-items: center; justify-content: center;
			flex-shrink: 0; font-size: 15px;
		}
		.step-body { flex: 1; min-width: 0; }
		.step-meta {
			display: flex; align-items: baseline; gap: 10px;
			margin-bottom: 4px;
		}
		.step-num {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.15em; text-transform: uppercase;
			color: var(--text-4);
		}
		.step-action {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.15em; text-transform: uppercase;
			color: var(--text-3);
		}
		.step-cost {
			margin-left: auto; flex-shrink: 0;
			font-family: var(--font-mono); font-size: 11px;
			color: var(--text-4);
			padding: 2px 8px; border-radius: 4px;
			background: var(--surface-3);
			border: 1px solid var(--hairline);
		}
		.step-cost.nonzero { color: var(--text-2); background: rgba(255,255,255,0.04); }
		.step-desc {
			font-size: 14px; color: var(--text-2); line-height: 1.45;
		}
		.step-endpoint {
			margin-top: 4px;
			font-family: var(--font-mono); font-size: 11.5px;
			color: var(--text-4); word-break: break-all;
		}
		.step-output {
			margin-top: 8px;
			background: var(--surface-2);
			border: 1px solid var(--hairline);
			border-radius: 6px;
			padding: 10px 12px;
			font-family: var(--font-mono); font-size: 11.5px;
			color: var(--text-3);
			max-height: 160px; overflow-y: auto;
			white-space: pre-wrap; word-break: break-all;
		}

		/* Total cost row */
		.total-row {
			display: flex; align-items: center; justify-content: space-between;
			padding: 12px 16px;
			background: var(--surface-2);
			border: 1px solid var(--hairline);
			border-radius: 8px;
			margin-top: 4px;
		}
		.total-lbl {
			font-family: var(--font-mono); font-size: 11.5px;
			letter-spacing: 0.15em; text-transform: uppercase;
			color: var(--text-3);
		}
		.total-val {
			font-family: var(--font-mono); font-size: 14px;
			color: var(--text); font-weight: 500;
		}

		/* Answer card */
		.answer-card {
			margin-top: 16px;
			background: var(--surface-1);
			border: 1px solid var(--hairline-strong);
			border-radius: 12px;
			padding: 24px;
		}
		.answer-eyebrow {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.2em; text-transform: uppercase;
			color: var(--text-3); margin-bottom: 12px;
		}
		.answer-text {
			font-size: 17px; color: var(--text);
			line-height: 1.55; font-weight: 400;
		}

		/* Error state */
		.error-card {
			background: var(--surface-1);
			border: 1px solid #3a1a1a;
			border-radius: 10px;
			padding: 20px;
		}
		.error-card p {
			font-size: 14px; color: #e07070;
			margin: 0 0 14px;
		}

		/* Empty state */
		.empty-state {
			text-align: center;
			padding: 60px 24px;
			color: var(--text-4);
			font-size: 14px;
		}
		.empty-state svg { opacity: 0.3; margin-bottom: 16px; }
		.empty-tips {
			list-style: none; margin: 20px auto 0; padding: 0;
			max-width: 340px; text-align: left;
			display: flex; flex-direction: column; gap: 10px;
		}
		.empty-tips li {
			position: relative; padding-left: 20px;
			font-size: 12.5px; line-height: 1.5; color: var(--text-3);
		}
		.empty-tips li::before {
			content: ""; position: absolute; left: 4px; top: 8px;
			width: 5px; height: 5px; border-radius: 50%;
			background: var(--text-4);
		}
		.empty-tips strong { color: var(--text-2); font-weight: 500; }

		/* Ran, but the Bazaar had nothing to call */
		.barren-card {
			background: var(--surface-1);
			border: 1px solid var(--hairline-strong);
			border-radius: 12px;
			padding: 24px;
		}
		.barren-eyebrow {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.2em; text-transform: uppercase;
			color: var(--text-3); margin-bottom: 12px;
		}
		.barren-desc {
			margin: 0 0 16px; font-size: 15px;
			color: var(--text-2); line-height: 1.55;
		}
		.barren-tips {
			list-style: none; margin: 0 0 20px; padding: 0;
			display: flex; flex-direction: column; gap: 10px;
		}
		.barren-tips li {
			position: relative; padding-left: 20px;
			font-size: 13px; line-height: 1.5; color: var(--text-3);
		}
		.barren-tips li::before {
			content: ""; position: absolute; left: 4px; top: 8px;
			width: 5px; height: 5px; border-radius: 50%;
			background: var(--text-4);
		}
		.barren-tips a { text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
		.barren-tips a:hover { color: var(--text); }

		/* Inline payment card (402) */
		.pay-card {
			background: var(--surface-1);
			border: 1px solid rgba(255, 180, 0, 0.28);
			border-radius: 12px;
			overflow: hidden;
		}
		.pay-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--hairline); }
		.pay-eyebrow {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.2em; text-transform: uppercase;
			color: #e6a820; margin-bottom: 10px;
		}
		.pay-price {
			font-family: var(--font-display);
			font-size: 34px; font-weight: 600; letter-spacing: -0.03em;
			color: var(--text); line-height: 1.1;
		}
		.pay-price span {
			font-family: var(--font-mono); font-size: 13px;
			font-weight: 400; color: var(--text-3); letter-spacing: 0;
			margin-left: 6px;
		}
		.pay-desc {
			margin: 10px 0 0; font-size: 13.5px;
			color: var(--text-2); line-height: 1.5; max-width: 44ch;
		}
		.pay-body { padding: 20px 24px; }
		.pay-net-label {
			font-family: var(--font-mono); font-size: 10.5px;
			letter-spacing: 0.2em; text-transform: uppercase;
			color: var(--text-3); margin-bottom: 14px;
		}
		.pay-wallets {
			display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
			gap: 20px; align-items: start;
		}
		.pay-net { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
		.pay-net-name {
			font-size: 12px; color: var(--text-3);
			letter-spacing: 0.04em;
		}
		.wallet-btn {
			justify-content: space-between; width: 100%;
			padding: 11px 14px; font-size: 13.5px;
			background: var(--surface-2);
		}
		.wallet-btn span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
		.wallet-arrow { color: var(--text-4); transition: transform 0.15s, color 0.15s; }
		.wallet-btn:hover .wallet-arrow { transform: translateX(3px); color: var(--text-2); }
		.pay-status {
			margin: 16px 0 0; min-height: 0;
			font-size: 13px; line-height: 1.45; color: var(--text-2);
		}
		.pay-status:empty { display: none; }
		.pay-status-error { color: #e07070; }
		.pay-foot {
			padding: 14px 24px 18px;
			border-top: 1px solid var(--hairline);
		}
		.pay-cancel { padding: 8px 14px; font-size: 13px; }

		/* Settlement receipt above a paid run */
		.receipt-row {
			display: flex; align-items: center; justify-content: space-between;
			gap: 12px; flex-wrap: wrap;
			padding: 10px 16px; margin-bottom: 12px;
			background: var(--surface-2);
			border: 1px solid var(--hairline);
			border-radius: 8px;
		}
		.receipt-lbl {
			font-family: var(--font-mono); font-size: 11.5px;
			letter-spacing: 0.12em; text-transform: uppercase;
			color: var(--text-3);
		}
		.receipt-val {
			font-family: var(--font-mono); font-size: 12px;
			color: var(--text-2); word-break: break-all;
		}
		.receipt-val a { text-decoration: underline; text-underline-offset: 3px; }
		.receipt-val a:hover { color: var(--text); }

		/* 402 badge */
		.badge-402 {
			display: inline-flex; align-items: center; gap: 6px;
			padding: 3px 8px; border-radius: 4px;
			font-family: var(--font-mono); font-size: 10.5px;
			background: rgba(255, 180, 0, 0.08);
			border: 1px solid rgba(255, 180, 0, 0.25);
			color: #e6a820;
		}
	</style>

	<link rel="canonical" href="https://three.ws/shopper">
	<meta property="og:type" content="website">
	<meta property="og:site_name" content="three.ws">
	<meta property="og:title" content="Endpoint Shopper · three.ws" data-i18n-attr="content:shopper.meta_og_title">
	<meta property="og:description" content="Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer: paying per API call." data-i18n-attr="content:shopper.meta_og_description">
	<meta property="og:url" content="https://three.ws/shopper">
	<meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Endpoint+Shopper&amp;d=Describe+a+task+and+set+a+budget.+An+AI+agent+discovers+relevant+x402+endpoints+via+the+Bazaar%2C+chains+them+together%2C+and+synthesizes+a+final+answer%3A+paying&amp;p=%2Fshopper">
	<meta property="og:image:width" content="1200">
	<meta property="og:image:height" content="630">
	<meta name="twitter:card" content="summary_large_image">
	<meta name="twitter:title" content="Endpoint Shopper · three.ws" data-i18n-attr="content:shopper.meta_twitter_title">
	<meta name="twitter:description" content="Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer: paying per API call." data-i18n-attr="content:shopper.meta_twitter_description">
	<meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Endpoint+Shopper&amp;d=Describe+a+task+and+set+a+budget.+An+AI+agent+discovers+relevant+x402+endpoints+via+the+Bazaar%2C+chains+them+together%2C+and+synthesizes+a+final+answer%3A+paying&amp;p=%2Fshopper">
	<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Endpoint Shopper","description":"Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer: paying per API call.","url":"https://three.ws/shopper","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>

	<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Endpoint Shopper — three.ws">
	<meta name="twitter:site" content="@trythreews">
</head>
<body>

<!-- ── NAV ─────────────────────────────────────────────────── -->
<nav class="nav">
	<div class="nav-inner">
		<a class="brand" href="/" data-i18n-html="shopper.three_ws">
			<span class="brand-mark"></span>
			three.ws
		</a>
		<div class="nav-main">
			<a href="/" data-i18n="shopper.explore">Explore</a>
			<a href="/shopper" class="active" data-i18n="shopper.endpoint_shopper">Endpoint Shopper</a>
			<a href="/marketplace" data-i18n="shopper.marketplace">Marketplace</a>
			<a href="/fact-checker" data-i18n="shopper.fact_checker">Fact Checker</a>
		</div>
		<div class="nav-end">
			<a href="/app-next" class="console" data-i18n="shopper.dashboard">Dashboard</a>
		</div>
	</div>
</nav>

<!-- ── HERO ─────────────────────────────────────────────────── -->
<div class="hero">
	<div class="wrap">
		<div class="eyebrow">Agent orchestration</div>
		<h1 class="hero-h" data-i18n-html="shopper.endpoint_shopper_ai_that_chains_paid_apis">Endpoint Shopper<br /><em>AI that chains paid APIs</em></h1>
		<p class="hero-sub" data-i18n="shopper.describe_a_task_set_a_budget_the">Describe a task, set a budget. The agent discovers relevant x402 endpoints in the Bazaar, pays for each call, and synthesizes a final answer.</p>
	</div>
</div>

<!-- ── MAIN ──────────────────────────────────────────────────── -->
<div class="main">
	<div class="wrap">
		<div class="main-grid">

			<!-- Left: form -->
			<div class="form-panel">
				<label class="panel-label" for="task-input">Task</label>
				<textarea
					id="task-input"
					class="task-input"
					placeholder="Describe what you want to know or do…"
					rows="5"
				></textarea>

				<div class="chip-row" id="chip-row" role="group" aria-label="Example tasks">
					<button type="button" class="chip" data-task="What is Ethereum's current price?" data-i18n="shopper.eth_price">ETH price</button>
					<button type="button" class="chip" data-task="Check reputation of agent with address 0x1234" data-i18n="shopper.agent_reputation">Agent reputation</button>
					<button type="button" class="chip" data-task="Search for available x402 endpoints for weather data" data-i18n="shopper.find_weather_apis">Find weather APIs</button>
					<button type="button" class="chip" data-task="List the top paid AI model endpoints in the Bazaar" data-i18n="shopper.ai_model_endpoints">AI model endpoints</button>
					<button type="button" class="chip" data-task="What pump.fun tokens are trending right now?" data-i18n="shopper.pump_fun_trends">Pump.fun trends</button>
				</div>

				<div class="budget-row">
					<label class="budget-label" for="budget-slider" data-i18n="shopper.max_budget">Max budget</label>
					<input
						id="budget-slider"
						type="range"
						class="slider"
						min="0.10"
						max="2.00"
						step="0.05"
						value="0.50"
					/>
					<span class="budget-val" id="budget-display">$0.50</span>
				</div>

				<div class="run-btn-row">
					<button id="run-btn" class="btn primary" type="button" aria-describedby="run-hint">
						<svg width="14" height="14" fill="none" viewBox="0 0 14 14"><path d="M3 2l9 5-9 5V2z" fill="currentColor"/></svg>
						Run Task
					</button>
					<p id="run-hint" class="run-hint" role="status" aria-live="polite"></p>
				</div>
			</div>

			<!-- Right: results -->
			<div class="result-panel" id="result-panel" role="region" aria-label="Execution trace" aria-live="polite">
				<div class="empty-state" id="empty-state">
					<svg width="40" height="40" fill="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="18" stroke="currentColor" stroke-width="1.5"/><path d="M14 20h12M20 14v12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
					<div>Enter a task and click <strong data-i18n="shopper.run_task">Run Task</strong> to begin</div>
					<ul class="empty-tips">
						<li data-i18n-html="shopper.set_a_max_budget_the_agent_never">Set a <strong>max budget</strong>. The agent never spends past it on downstream calls.</li>
						<li data-i18n="shopper.running_costs_usdc_you_ll_pay_once">Running costs USDC: you'll pay once with a Base or Solana wallet when prompted.</li>
						<li data-i18n="shopper.try_an_example_chip_above_to_see">Try an example chip above to see the discover → plan → call → synthesize flow.</li>
					</ul>
				</div>
			</div>

		</div>
	</div>
</div>

<script type="module" src="/src/shopper-app.js"></script>
	<script src="/brand.js" defer></script>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>