> ## Documentation Index
> Fetch the complete documentation index at: https://docs.p2p.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Widget Overview

> Widget overview covering DeFi protocol aggregation, platform integration, and core widget functionality

export const WidgetHeaderLinks = () => <CardGroup cols={2}>
    <Card title="Widget Demo" icon="play" href="https://demo.widget.p2p.org" horizontal />
    <Card title="Live Example" icon="link" href="https://widget.p2p.org/" horizontal />
  </CardGroup>;

<WidgetHeaderLinks />

## What is P2P.org Widget?

P2P.org Widget is a **DeFi aggregation solution** designed to aggregate decentralized protocols into a unified interface for end users, with flexible integration options for platforms, wallets, and web applications.

### For End Users

* **Complexity**: Finding reliable DeFi platforms is time-consuming and risky
* **Fragmentation**: Managing positions across multiple platforms is difficult
* **Trust**: Determining which protocols suit best for your purposes

### For Platforms & Wallets

* **Development Costs**: Building DeFi functionality from scratch is expensive
* **Time to Market**: Implementing multiple protocol integrations takes months
* **Maintenance**: Keeping up with protocol updates and security requires ongoing effort

## Our Solution

```mermaid theme={null}
graph LR
    A[User] --> B[Widget Interface]
    B --> C[Verified Protocols]
    C --> D[Morpho Lending]
    C --> E[Lido Staking]
    C --> F[Other Protocols]

    G[Your Platform/Wallet] --> H[iframe Integration]
    H --> B
```

### For Your Users

The widget provides a **single, simple interface** where users can:

* Deposit supported tokens and stablecoins, including USDC, ETH, SOL, TON, and more, to access decentralized protocols
* Access only **pre-vetted, reliable protocols**
* Access to all options in one place
* View consolidated profit/loss across all options

### For Your Platform

The widget offers **plug-and-play DeFi functionality**:

* **iframe integration** – embed in minutes, not months
* **Immediate access** to multiple protocols and networks
* **Fully configurable** – enable all features or limit to specific tokens/networks

## Supported Networks

| Network      | Type   | Protocols Available                |
| ------------ | ------ | ---------------------------------- |
| **Ethereum** | EVM L1 | Morpho, Lido Veda, Resolv, Lombard |
| **Base**     | EVM L2 | Morpho                             |
| **TON**      | L1     | P2P.org & TonWhales                |
| **Solana**   | L1     | P2P Staking                        |

<Note>
  [View the current live protocols](https://widget.p2p.org/) and their availability
</Note>

## Core Features

### Multiple Protocol Options

* **Lending**: Provide tokens to be liable for rewards (via protocols like Morpho)
* **Staking**: Participate in network validation and be liable for rewards from the network
* **Restaking**: Enhanced staking with additional rewards from the network or protocol (e.g., ETH via Lido)

### Smart Options Selection

* Multiple options available per protocol
* **Automatic highlighting** of highest-yield options
* Real-time APY updates
* Clear reward information

### Unified Overview

* All options visible in one place
* Consolidated profit/loss tracking
* Reward claiming for protocol-specific tokens (e.g., Morpho tokens)
* User transaction history

## How It Works

```mermaid theme={null}
sequenceDiagram
    participant U as User
    participant W as Widget
    participant P as Protocol Smart Contract

    U->>W: Connects wallet
    W->>U: Shows available options & APYs
    U->>W: Selects option and amount
    W->>U: Shows transaction preview
    U->>P: Signs transaction
    P->>U: Position created
    W->>U: Updates portfolio view
```

1. **User connects wallet** through your platform
2. **Widget displays available options** with current APYs
3. **User selects option** and confirms transaction
4. **Transaction executes** directly with protocol smart contracts
5. **Tracked** in unified interface

***

<Note>
  [Contact our team](https://support.p2p.org) to discuss your specific integration needs and get access to a demo environment.
</Note>


## Related topics

- [Quick Start](/docs/widget-quick-start.md)
- [Integration Options](/docs/widget-platform-integration.md)
