Add BroWidget

Customize and integrate the BroSwap and BroBridge widget for your dApp or website!

Overview

BroWidget makes it easy to integrate cross-chain functionality directly into your dApp or website — no complex setup required.

It supports two features:

  • 🌉 BroBridge: Supports bridging between Bitcoin (including Runes and BRC20), Stacks, and EVM chains

  • 🔄 BroSwap: Supports swapping within Bitcoin-based assets (BTC, Runes, and BRC20)

💻✨ See the widget in our interactive demo!

Integration

Integrate the widget by adding two script tags to your HTML:

  1. A configuration script

  2. The widget loader script

Examples

<script>
  window.__broWidgetConfig = { toToken: 'runes:0:897823:2026', branch: swap };
</script>
<script src="https://widget-demo.brotocol.xyz/v1.js"></script>

Token format: runes:CHAIN_ID:RUNE_ID:RUNE_NUMBER

Need Help?

For additional support, contact our team on Discord.

Last updated