
DeFi Garden
io.github.alex0xhodlerv1.0.0更新於 Oct 3, 2026
Underwritten DeFi yield discovery & goal planning for AI agents on Base & EVM.
概覽
讓助理運用 DefiLlama 與 Hyperliquid 資料探索 DeFi 收益池並規劃目標儲蓄。
- 功能
- DeFi Garden 提供遠端 MCP 端點,用於 DeFi 收益探索與儲蓄規劃。功能涵蓋跨多條區塊鏈與多種協定類型的多鏈資金池瀏覽、包含 30 天平均 APY 與基礎收益及獎勵排放分離的深度資金池分析,以及 Hyperliquid 永續合約的資金費率收割計算器。信任規則會過濾異常 APY 尖峰與低流動性資金池,收益預測由確定性計算得出而非模型估算。
- 適用情境
- 適合助理需要比較 DeFi 收益、說明資金池機制,或圍繞經常性支出擬定目標儲蓄計畫時使用。也適用於 Hyperliquid 上的 delta 中性資金費率分析。不用於執行交易或管理資金。
- 執行需求
- 使用提供方主機上的遠端 streamable HTTP 端點;未宣告需要安裝套件、API 金鑰或環境變數。需要能連線至提供方及其上游資料來源的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DeFi Garden,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"defi-garden": {
"type": "http",
"url": "https://www.defi.garden/api/mcp"
}
}
}README
🌱 DeFi Garden
Calm, honest DeFi yield discovery and goal-based savings planning.
DeFi Garden is a static, zero-backend, zero-build-step web application built on the DefiLlama yields API, designed for cautious savers and DeFi operators who value trust, realistic projections, and mathematical transparency over speculative hype.
[Live Demo] [MIT License] [React 18 UMD]
🌟 The Two Core Faces of DeFi Garden
DeFi Garden serves two distinct workflows through an inline, zero-flash IA router (window.__APP_MODE in home.html):
1. 🪴 Garden Planner (Default Experience — / and plan.html)
- Goal-First Conversational Savings: Plan savings around real-life goals (subscriptions, gadgets, life milestones) rather than chasing abstract APY numbers.
- Yield-Funded Paradigm: "Buy it outright and the money's gone. Garden it and you keep the money AND get the thing."
- Blended Yield Rates: Calculates honest "forever numbers" — the capital required so ongoing live yield pays recurring bills automatically.
- Degen Honesty: Applies a mandatory ⅓ decay haircut to variable farm/reward emissions, ensuring users plan around realistic long-term carry.
2. 📊 Analytics & Yield Discovery (/?token=, /?chain=, /?pool=, /?app=1)
- Multi-Chain Pool Explorer: Real-time yield monitoring across 50+ blockchains (Ethereum, Arbitrum, Base, Hyperliquid, Solana, etc.) and all major protocol types (Lending, Staking, LP/DEX, Yield Farming).
- Deep Pool Breakdown (
PoolDetail.js): In-depth pool analytics, 30-day mean APY tracking, base vs. reward emission separation, and impermanent loss risk indicators. - Funding Harvest Module (
/hype-harvest.html//?module=hype-harvest): Delta-neutral cash-and-carry funding harvest calculator for Hyperliquid perps with live basis spread tracking and dual-oracle divergence tripwires.
🛡️ Trust Rails (The Core Moat)
Every metric rendered across DeFi Garden derives from live on-chain and API data through strict, non-negotiable trust rails:
APY_SANITY_LIMIT = 1000%: Anomalous, short-lived spikes can never enter a plan. In analytics, anomalous pools are demoted, flagged with⚠, and forced to high-risk classification.DEFAULT_MIN_TVL = $100K: Low-liquidity pools below the safety floor are filtered out to protect savers from illiquid exits and sudden deprecations.- Dual-Oracle Divergence Guard: Modules verify mark vs. oracle price divergence ($<15\text{ bps}$ tripwire) to alert on basis dislocation and squeeze risk.
- Deterministic Math Layer: LLMs may narrate or explain mechanisms, but numbers, projections, and compounded yields are calculated deterministically.
🎨 Design System — "Quiet"
DeFi Garden uses the "Quiet" design system — a restrained, clean-minimal, table-first interface designed for clarity and focus:
- Surface Tokens (
--ui-*):- Backgrounds:
--ui-bg(#F7F8FAlight /#161A20dark),--ui-surface(#FFFFFF/#1E242C),--ui-surface-muted,--ui-surface-sunken. - Separation: Single-pixel hairline borders (
--ui-border: #E4E7EE,--ui-border-strong: #CBD2DF). - Text: High-contrast hierarchy (
--ui-text: #10151F,--ui-text-secondary: #5A6478,--ui-text-muted: #8A93A6). - Accents: Fixed trust-blue palette (
--ui-accent: #3B82F6,--ui-accent-hover: #2563EB,--ui-accent-soft: #EFF5FF). - Radii: Clean geometric squircles (
--ui-radius-sm: 8px,--ui-radius-md: 12px,--ui-radius-lg: 16px,--ui-radius-pill: 999px).
- Backgrounds:
- No Heavy Shadows or Skeuomorphic Skeins: Depth is created through crisp hairline borders and subtle surface tone steps, not artificial dual-direction shadows or background gradients.
- Physical Press Physics: Interactive controls sink 1px on
:active(transform: translateY(1px)), respectingprefers-reduced-motion. - First-Class Bilingual Support (
translations.js): Complete English (en) and Korean (ko) localization synchronized across all user-facing strings.
🛠️ Architecture & Technology Stack
- Zero Build Step: Runs natively on vanilla web standards. React 18 UMD loaded via script tag; components written in pure
React.createElement(no JSX compilation step required). - Data Ingestion: Client-side integration with
https://yields.llama.fi/poolsand Hyperliquid Info API (https://api.hyperliquid.xyz/info). - State Management:
- Theme:
localStorage.getItem('theme')withdata-theme="light|dark"attribute on<html>. - Language: URL param
?lang=+localStorage.getItem('defi-garden-lang'). - Saved Plan:
localStorage.getItem('garden-plan').
- Theme:
- SEO & Machine Readability:
- Automated dynamic sitemaps (
generate-sitemap.js). - AI Context endpoints:
llms.txtandllms-full.txt(generate-llms.js). - Model Context Protocol (MCP) server integration (
mcp_server.js).
- Automated dynamic sitemaps (
📁 Repository Structure
🧪 Development & Testing
DeFi Garden requires no build pipeline. Serve locally with any static HTTP server:
Running Tests
📜 License
MIT License. See LICENSE for details.
來源:README.md,提交 349305c
工具
0版本歷史
1- v1.0.0最新Oct 3, 2026
