> 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="/files/DzjzQi76KNPYhOqdkVCf" alt=""><figcaption></figcaption></figure>
