A floating wallet button with the OneNess ring logo and the LIVE synced promo feed inside β public to any origin, dependency-free, shadow-DOM isolated. Copy the snippet for your stack below; they all mount the same widget and stay in sync with every user's wallet.
| data-base | Base URL of the OneNess deployment. Default: this origin. Self-hosters point it anywhere. |
| data-pos | Corner: br (default) Β· bl Β· tl Β· tr |
| data-mode | link = buttons open vault pages in a new tab (default) Β· embed = pages open inside the panel's iframe |
| JS API | OneNessWidget.open() Β· close() Β· refresh() Β· setBase(url) |
Sync guarantee: the panel reads GET /api/promo/feed β one public, CORS-open, no-store feed. Paid banner rotation is wall-clock-derived, so every user of every surface sees the same banner during the same 6-second slot; promo changes reach every embedded widget and the Chrome/Edge extension within one poll (β€60 s).
` }, { name: 'Python β Django', lang: 'python', group: 'Python', text: b => `{# templates/base.html β OneNess widget on every page #} ` }, { name: 'Python β FastAPI', lang: 'python', group: 'Python', text: b => `# OneNess widget β a whole embeddable page via FastAPI from fastapi import FastAPI from fastapi.responses import HTMLResponse app = FastAPI() @app.get("/", response_class=HTMLResponse) def home(): return f"""