import Link from 'next/link'; /** * Base URL used in the copy/paste curl examples below. * Set NEXT_PUBLIC_REGISTRY_URL to your deployment's origin; falls back to the * local dev server so the examples always point at a reachable host. */ const API_BASE = process.env.NEXT_PUBLIC_REGISTRY_URL || 'http://localhost:3000'; export default function Home() { return (
{/* Header */}

🌙 Lyra Registry

The NPM for Crypto AI Tools

Discover, evaluate, and integrate 280+ crypto & DeFi MCP tools

{/* Quick Stats */}
{/* API Endpoints */}

📡 API Endpoints

Method Endpoint Description
{/* Trust Score */}

⭐ Trust Score Algorithm

Every tool is scored using the SperaxOS trust algorithm. The score is based on:

{/* Quick Start */}

🚀 Quick Start

          {`# Search for DeFi tools
curl "${API_BASE}/api/search?q=defi&category=defi"

# Get trending tools this week
curl "${API_BASE}/api/trending?period=week&limit=10"

# Get tool by ID
curl "${API_BASE}/api/tools/[uuid]"

# Register a new tool
curl -X POST "${API_BASE}/api/tools" \\
  -H "Content-Type: application/json" \\
  -d '{"name": "my-tool", "description": "...", "category": "defi", "inputSchema": {}}'`}
        
{/* Footer */}
); } function StatCard({ title, value, icon }: { title: string; value: string; icon: string }) { return (
{icon}
{value}
{title}
); } function EndpointRow({ method, endpoint, description }: { method: string; endpoint: string; description: string }) { const methodColor = method === 'GET' ? '#22c55e' : method === 'POST' ? '#3b82f6' : '#f59e0b'; return ( {method} {endpoint} {description} ); } function ScoreItem({ weight, name, description, required }: { weight: number; name: string; description: string; required?: boolean }) { return (
{weight}
{name} {required && *}
{description}
); } function GradeBadge({ grade, description, color }: { grade: string; description: string; color: string }) { return (
{grade} {description}
); }