WebBridge demo

A glitch in the checkout flow.

Glitch is a tiny game-store demo that hands off to a real banking app via WebViewJavascriptBridge. Browse, cart, and pay without ever leaving the demo.

Steam catalog · live mock Better Auth · admin plugin
checkout · bridge.js

webbridge.on("pay", handler)

bridge.pay({ amount: "59.99", order: "ord_8f3a" })

← bank.app: payment confirmed

redirect("/library/ord_8f3a")

bridge ready · 12ms
How it works

From catalog to bank app, in one tap.

The catalog runs in a normal browser. Checkout posts to WebViewJavascriptBridge, which the demo's native shell intercepts and forwards to the bundled banking app.

01

Browse the catalog

Sign in, scan the featured grid, and add a game or two to your cart.

02

Hand off to bridge

Checkout calls bridge.pay() with the order id and amount.

03

Confirm in the bank app

The native shell pushes a confirmation back; the order moves to your library.