← Back to all products

Quote Comparison UI

$10

React frontend widget comparing swap quotes across DEX venues — embeddable or standalone.

📁 29 files
JSONMarkdownJavaScriptTypeScriptReact

📄 Product Preview

Try the interactive reader and demo tools below, or get the full product with all content unlocked.

📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample

📁 File Structure 29 files

quote-comparison-ui/ ├── LICENSE ├── README.md ├── examples/ │ └── embed.html ├── free-sample.zip ├── guide/ │ ├── 01_quote-comparison-ui.md │ ├── 02_overview.md │ ├── 03_quick-start.md │ └── 05_customization.md ├── index.html ├── package.json ├── postcss.config.js ├── security-notes.md ├── src/ │ ├── App.tsx │ ├── components/ │ │ ├── QuoteCard.tsx │ │ ├── QuoteChart.tsx │ │ ├── QuoteWidget.tsx │ │ ├── SwapButton.tsx │ │ └── TokenSelector.tsx │ ├── hooks/ │ │ ├── useQuotes.ts │ │ └── useTokenList.ts │ ├── lib/ │ │ ├── constants.ts │ │ ├── format.ts │ │ └── providers.ts │ ├── main.tsx │ └── styles/ │ └── globals.css ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts

📖 Documentation Preview README excerpt

Quote Comparison UI

React frontend widget that compares swap quotes across DEX venues — embeddable or standalone.

Price: $9.99 | Part of the [CryptoForge](https://cryptoforge.dev) DeFi Router store.

![Screenshot placeholder](https://via.placeholder.com/800x400?text=Quote+Comparison+UI)

Overview

Drop-in React widget that fetches and compares swap quotes from six major DEX aggregators in real-time:

ProviderGaslessChains
UniswapNoMainnet, Optimism, Polygon, Arbitrum, Base
SushiSwapNoMainnet, Optimism, Polygon, Arbitrum
1inchYesMainnet, Optimism, Polygon, Arbitrum, Base
0x / MatchaNoMainnet, Optimism, Polygon, Arbitrum, Base
ParaswapNoMainnet, Optimism, Polygon, Arbitrum, Base
CoW SwapYesMainnet, Gnosis

Features

  • Price comparison chart — Recharts bar chart comparing output amounts
  • Gas estimates — Per-provider gas cost in USD
  • Price impact — Slippage warning with color coding
  • Savings badge — Shows how much better the best quote is vs worst
  • One-click swap — Execute via wagmi useSendTransaction
  • Token selector — Searchable dropdown with token logos
  • Auto-refresh — Quotes refresh every 15 seconds
  • Dark theme — CryptoForge branded (Foundry Black, Forge Orange, Molten Gold)
  • Embeddable — Use as standalone page or embed in any React app

Quick Start


# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

Open [http://localhost:3100](http://localhost:3100) in your browser.

Installation (as npm package)


npm install @cryptoforge/quote-comparison-ui

Customization

Theme

Edit tailwind.config.js to change brand colors:

... continues with setup instructions, usage examples, and more.

📄 Code Sample .js preview

postcss.config.js export default { plugins: { tailwindcss: {}, autoprefixer: {}, }, };
Buy Now — $10 Back to Products