Tollbooth DPYC

@tollbooth-dpyc/web

@tollbooth-dpyc/web

Ship a front end on the day you ship the service, whether that is a single-page tool or a full operator console: sign-in, the wallet, the account page and the client that talks to your MCP all arrive working.

You write the part that makes your site yours.

View full details

What the package carries

Every operator front end in this collection is this package with its own features laid over the top.

The app shell gives you the frame and the navigation. Sign-in runs as a Nostr DM challenge backed by an in-browser session key, so a patron proves who they are with a key they keep. The wallet pages cover balances, top-ups, coupons and a usage summary, and they report funding from both sides of the ledger, patron and operator alike. Profile and avatar panels handle identity. A table shell with filtering, sorting and paging serves every data view a service needs, and the theme toggle, time-zone picker, error boundary, build-info and debug panels cover the housekeeping that otherwise gets written twice.

Its shared screens are internationalized, so every site built on it greets its patrons in English, French, Spanish, Hindi, Japanese or Chinese, and a site's own pages can join in.

Five hooks carry the state: session, top-up, theme, time zone and debug log. Underneath them, callTool and callToolWithContent are typed wrappers over the standard DPYC tools, so every front end in the fleet asks its operator the same questions in the same way, and makeMcpProxy hands you the Cloudflare Pages Function to sit in front of it.

Two pieces exist because a site would otherwise get them subtly wrong. Time zones convert with daylight saving handled properly rather than by offset arithmetic, and the debug log scrubs sensitive values before anything reaches a console a patron could open.

At a glance

🔓 Apache 2.0 top to bottom, every line of it
🌐 Interface text in English, Français, Español, हिन्दी, 日本語 and 中文
📦 Zero runtime dependencies. Peers are React 19, nostr-tools, lucide-react and the Model Context Protocol SDK
🎨 Ships theme.css design tokens, with Tailwind styled through CSS variables so a site can retheme in place
🤝 Implements the patron half of the DPYC Social Contract. The server half is the Python wheel
🔑 A patron signs in as an npub and goes straight to work
📜 Patent pending, US Prov. App. No. 64/045,999

Links

📦 npm: npm i @tollbooth-dpyc/web
GitHub GitHub: lonniev/tollbooth-web
👀 tollbooth-dpyc.com