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

9 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 toolbar: Back and Forward are greyed out when there's nowhere to go cc08c7a 1 week, 2 days ago History
README.md

Loading animations

Thirteen small looping animations, one for each thing a page load can be doing. The browser shows them inline in the tab strip and the status line (see src/chrome.html).

StateFileWhat it means
connectingconnectingnavigation started, no request on the wire yet
securesecuresecure handshake
waitingwaitingrequest sent, no response yet
receivingreceivingresponse body arriving
redirectingredirectingfollowing a redirect
challengechallengea bot check (proof of work)
pay-pendingpay-pendingx402 payment needed, waiting for the user's yes
pay-payingpay-payingpaying
pay-settledpay-settledpaid
summarizingsummarizingthe AI Reader is summarizing
slowslowstill waiting, for a long time
failedfailedthe load failed
offlineofflineno network

Format

Each is one SVG on a 16×16 grid, animated with SMIL as a seamless loop (first and last frame equal). Ink is currentColor; the accent, paid and failed colours are the CSS variables --throb-accent, --throb-ok and --throb-fail (with defaults), so an inline SVG follows the surrounding theme with no second file. The tab size is the design size: stroke 1.5 on the 16 grid, so 32 and 64 are the same drawing larger. Each is about 1 KB.

SMIL clocks start when the SVG is inserted into the document: to restart a state's animation, replace the element rather than re-setting its attributes. For prefers-reduced-motion, call pauseAnimations() on the <svg>; every state leaves a readable still.

Regenerating

python3 make_throbbers.py --svg-only   # SVGs only; needs nothing
python3 make_throbbers.py              # also APNG/GIF/preview.html; needs Pillow and Playwright's Chromium

The extra files the full run writes (apng/, gif/, preview.html, and the fixed-colour *-dark.svg / *-light.svg) are git-ignored; they are for use as <img> where an inline SVG isn't possible.

Where the drawings come from

Every shape is written out in make_throbbers.py from lines, circles and arcs. No image was traced, imported or copied, and none is modelled on another browser's throbber or on any company's mark; the subjects are generic (a padlock, a gear, an hourglass, a coin, a tick, a cross). They were drawn for this project and are under the project's Apache-2.0 licence.