> For the complete documentation index, see [llms.txt](https://docs.piperx.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.piperx.xyz/developer/swap-widget.md).

# Swap Widget

A lite version of PiperX Swap Aggregator that can be embedded into your own dApp. Complete your integration in one line.

### Code snippet

PiperX Swap Widget is designed to work anywhere the web runs.

```typescript
<iframe src="https://widget.piperx.xyz" width={600} height={600} frameBorder="0"></iframe>
```

<figure><img src="https://3861722199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCsAm8Yo8Gt4vdHmhcg9b%2Fuploads%2F2ZehkSqNUKwVnMnYNOoG%2FScreenshot%202025-09-03%20at%2010.38.30%E2%80%AFAM.png?alt=media&amp;token=ba995015-7f03-4d87-b783-f2542c67acc6" alt=""><figcaption></figcaption></figure>
