https://github.com/lifinance/widget
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://github.com/lifinance/widget
bridge bridge-aggregation cross-chain cross-chain-applications cross-chain-bridge cross-chain-swap dapp defi ethereum integration lifi react solana ui viem wagmi web3 widget
Last synced: 22 days ago
JSON representation
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
- Host: GitHub
- URL: https://github.com/lifinance/widget
- Owner: lifinance
- License: apache-2.0
- Created: 2022-01-19T13:40:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T15:19:40.000Z (about 2 months ago)
- Last Synced: 2025-04-11T15:52:52.549Z (about 2 months ago)
- Topics: bridge, bridge-aggregation, cross-chain, cross-chain-applications, cross-chain-bridge, cross-chain-swap, dapp, defi, ethereum, integration, lifi, react, solana, ui, viem, wagmi, web3, widget
- Language: TypeScript
- Homepage: https://li.fi/widget
- Size: 37.3 MB
- Stars: 149
- Watchers: 8
- Forks: 97
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](/LICENSE.md)
[](https://www.npmjs.com/package/@lifi/widget)
[](https://www.npmjs.com/package/@lifi/widget)
[](https://crowdin.com/project/lifi-widget)
[](https://twitter.com/lifiprotocol)LI.FI Widget

[**LI.FI Widget**](https://docs.li.fi/integrate-li.fi-widget/li.fi-widget-overview) is a set of prebuilt UI components that will help you integrate a secure cross-chain bridging and swapping experience that can be styled to match your web app design perfectly and helps drive your multi-chain strategy and attract new users from everywhere.
[**LI.FI Widget**](https://docs.li.fi/integrate-li.fi-widget/li.fi-widget-overview) features include:
- All ecosystems, chains, bridges, exchanges, and solvers that [LI.FI](https://docs.li.fi/list-chains-bridges-dexs-solvers) supports
- Embeddable variants - compact, wide, and drawer
- Options to allow or deny certain chains, tokens, bridges, and exchanges
- Pre-configured themes and lots of customization options with dark mode support so you can match the look and feel of your web app
- Wallet management UI with the option to opt-out and use your own ([Wagmi](https://wagmi.sh/), [Bigmi](https://github.com/lifinance/bigmi) and [Wallet Standard](https://github.com/wallet-standard/wallet-standard) support)
- Supports widely adopted industry standards, including [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792), [ERC-2612](https://eips.ethereum.org/EIPS/eip-2612), [EIP-712](https://eips.ethereum.org/EIPS/eip-712), [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963), and [Permit2](https://github.com/Uniswap/permit2)
- View of transactions in progress and transaction history
- Curated wallet lists and wallet bookmarks
- Route settings for advanced users (stored locally)
- Complete UI translations to match your customer’s preferred language
- Compatibility tested with React, Next.js, Vue, Nuxt.js, Svelte, Remix, Gatsby, Vite, RainbowKit, Privy, Dynamic## Installation
### LI.FI Widget
LI.FI Widget is available as an [npm package](https://www.npmjs.com/package/@lifi/widget).
**pnpm:**
```sh
pnpm add @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
```**npm:**
```sh
npm install @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
```**yarn:**
```sh
yarn add @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
```- [Wagmi](https://wagmi.sh/) is type safe, extensible, and modular library for building Ethereum apps.
- [Bigmi](https://github.com/lifinance/bigmi) is modular TypeScript library that provides reactive primitives for building Bitcoin applications.
- [@solana/wallet-adapter-react](https://github.com/anza-xyz/wallet-adapter) is modular TypeScript wallet adapters and components for Solana applications.
- [TanStack Query](https://tanstack.com/query/v5) is an async state manager that handles requests, caching, and more.### LI.FI Wallet Management
LI.FI Wallet Management is available as an [npm package](https://www.npmjs.com/package/@lifi/wallet-management).
**pnpm:**
```sh
pnpm add @lifi/wallet-management
```**npm:**
```sh
npm install @lifi/wallet-management
```**yarn:**
```sh
yarn add @lifi/wallet-management
```## Getting started with LI.FI Widget
Here is an example of a basic app using LI.FI Widget:
```tsx
import { LiFiWidget, WidgetConfig } from '@lifi/widget';const widgetConfig: WidgetConfig = {
theme: {
container: {
border: '1px solid rgb(234, 234, 234)',
borderRadius: '16px',
},
},
};export const WidgetPage = () => {
return (
);
};
```## Examples
Visit our [playground](https://playground.li.fi) to see how you can customize your [LI.FI Widget](https://www.npmjs.com/package/@lifi/widget) experience. Additionally, see [examples](/examples) folder in this repository.
## Documentation
Please visit [LI.FI Widget Documentation](https://docs.li.fi/integrate-li.fi-widget/li.fi-widget-overview).
## Contributing Translations
We appreciate your interest in helping translate our project!
If you'd like to contribute translations, please visit our Crowdin project page at [Crowdin LI.FI Widget](https://crowdin.com/project/lifi-widget). Register on Crowdin and you can start translating the project into your preferred language. Your contributions will help make our project accessible to a wider audience around the world.
Thank you for your support!
## Changelog
The [changelog](/CHANGELOG.md) is regularly updated to reflect what's changed in each new release.
## License
This project is licensed under the terms of the
[Apache-2.0](/LICENSE.md).