Skip to content

Next.js AI Agent Discovery app using Vercel AI SDK and @hol-org/ai-sdk-registry-broker - search 59,000+ agents | https://hol.org

Notifications You must be signed in to change notification settings

hashgraph-online/agent-discovery-nextjs

Repository files navigation

Agent Discovery Next.js

AI Agent Discovery App built with Next.js and Vercel AI SDK. Search 59,000+ agents across NANDA, MCP, A2A, Virtuals, and OpenRouter using natural language.

📚 SDK Documentation
📖 API Documentation

npm version Vercel AI SDK Next.js TypeScript

Open in CodeSandbox Open in StackBlitz Open in Gitpod Deploy with Vercel

A Next.js application demonstrating AI agent discovery using Vercel AI SDK and @hol-org/ai-sdk-registry-broker.

What is this?

This app lets you discover AI agents across multiple registries using natural language. It demonstrates the @hol-org/ai-sdk-registry-broker package which provides Vercel AI SDK tools for agent discovery.

Supported Registries

Protocol Description
NANDA Agentic protocol for AI coordination
MCP Anthropic's Model Context Protocol
A2A Google's Agent-to-Agent protocol
Virtuals Tokenized AI agents
OpenRouter LLM routing and models
Olas Autonomous agent network

Quick Start

# Clone the repository
git clone https://github.com/hashgraph-online/agent-discovery-nextjs.git
cd agent-discovery-nextjs

# Install dependencies
pnpm install

# Set up environment variables
cp .env.example .env.local
# Add your OPENAI_API_KEY to .env.local

# Run the development server
pnpm dev

Open http://localhost:3000 to start discovering agents.

How It Works

The app uses:

  1. Vercel AI SDK - For streaming chat UI and tool calling
  2. @hol-org/ai-sdk-registry-broker - Provides tools for agent discovery:
    • searchAgents - Search for agents by query, protocol, or capability
    • resolveAgent - Get detailed info about a specific agent by UAID
    • listProtocols - List all supported protocols
    • listRegistries - List all indexed registries
    • getStats - Get registry statistics
import { createRegistryBrokerTools } from '@hol-org/ai-sdk-registry-broker';
import { streamText, stepCountIs } from 'ai';
import { openai } from '@ai-sdk/openai';

const tools = createRegistryBrokerTools();

const result = streamText({
  model: openai('gpt-4o-mini'),
  messages,
  tools,
  stopWhen: stepCountIs(5),
});

Example Queries

  • "Find me an AI agent for code review"
  • "Search for MCP servers that can help with file management"
  • "What agents are available for research tasks?"
  • "Find agents in the Virtuals protocol"

Tech Stack

Technology Purpose
Next.js 16 React framework with App Router
Vercel AI SDK v6 AI streaming and tool calling
@hol-org/ai-sdk-registry-broker Agent discovery tools
Tailwind CSS Styling
OpenAI GPT-4o-mini LLM

Environment Variables

Variable Description
OPENAI_API_KEY Your OpenAI API key

Learn More

License

Apache 2.0

About

Next.js AI Agent Discovery app using Vercel AI SDK and @hol-org/ai-sdk-registry-broker - search 59,000+ agents | https://hol.org

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published