A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-browser.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-browser.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-browser.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 site icons (favicons) in tabs, address bar suggestions and the bookmarks panel 7249579 15 hours, 52 minutes ago History
room.html · 2.8 KB · 57 lines
1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8" />
5<meta name="viewport" content="width=device-width, initial-scale=1" />
6<title>Design Critique w/ Jordan — you're in</title>
7<style>
8 * { box-sizing:border-box; }
9 html,body { margin:0; min-height:100vh; background:#0d1117; color:#e8e8ea;
10 font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; }
11 .nav { display:flex; gap:4px; flex-wrap:wrap; padding:8px 14px; background:#0a0d12;
12 border-bottom:1px solid #21262d; position:sticky; top:0; font-size:13px; }
13 .nav a { text-decoration:none; color:#8a8a92; padding:5px 10px; border-radius:7px; }
14 .nav a:hover { background:#ffffff10; color:#e8e8ea; }
15 .center { min-height:calc(100vh - 46px); display:flex; align-items:center; justify-content:center; }
16 .room { max-width:660px; padding:48px; }
17 .badge { display:inline-flex; align-items:center; gap:8px; background:#10240f; color:#7ee787;
18 border:1px solid #1c4a1a; padding:5px 12px; border-radius:999px; font-size:13px; margin-bottom:22px; }
19 h1 { margin:0 0 6px; font-size:32px; letter-spacing:-.02em; }
20 .host { color:#8a8a92; margin:0 0 26px; }
21 .stage { aspect-ratio:16/9; background:linear-gradient(160deg,#161b22,#0f1319);
22 border:1px solid #21262d; border-radius:16px; display:flex; align-items:center; justify-content:center;
23 color:#4a4a52; font-size:15px; margin-bottom:24px; }
24 p { color:#b8b8c0; }
25 code { background:#161b22; border:1px solid #21262d; border-radius:6px; padding:2px 7px; font-size:13px; color:#7ee787; }
26 .meta { margin-top:22px; font-size:13px; color:#6a6a72; }
27</style>
28</head>
29<body>
30 <nav class="nav">
31 <a href="/">gallery</a>
32 <a href="/live">live · REAL</a>
33 <a href="/room">room · $0.05</a>
34 <a href="/article">article · $0.001</a>
35 <a href="/tip">tip</a>
36 <a href="/api/price">api</a>
37 <a href="/premium">premium · $0.50</a>
38 <a href="/unknown">unknown · ✕</a>
39 <a href="/free">free</a>
40 </nav>
41 <div class="center">
42 <div class="room">
43 <div class="badge">&#10003; Paid $0.05 USDC · you're in the room</div>
44 <h1>Design Critique w/ Jordan</h1>
45 <p class="host">30-minute room access · started just now</p>
46 <div class="stage">live room would render here</div>
47 <p>You never saw a checkout screen. This page returned <code>402 Payment Required</code>
48 with a machine-readable price; your browser read it, signed an EIP-3009 authorization,
49 retried with a <code>PAYMENT-SIGNATURE</code> header, and you walked straight in.</p>
50 <p>Open this same URL in a normal browser and you'll get the payment card instead — Apple Pay,
51 MetaMask, a QR to scan. That card is the fallback for browsers that can't pay for you. This
52 one can.</p>
53 <p class="meta">Demo: real x402 v2 on the wire, mock settlement (no chain, throwaway test key).</p>
54 </div>
55 </div>
56</body>
57</html>