Sponsored by Deepsite.site

Relay16 - Nostr Social Client with AI Integration

Created By
Mancasvel7 months ago
Relay16 is a modern Nostr social client that integrates AI-powered tools through MCP servers for enhanced social media experiences.
Content

Relay16 - Nostr Social Client with AI Integration

Relay16 is a modern Nostr social client that integrates AI-powered tools through DVMCP (Data Vending Machine Context Protocol) for enhanced social media experiences.

✅ Status: Ready to Run

The application has been successfully set up and is ready for development. All major dependencies have been installed and configuration issues have been resolved.

Features

🌐 Nostr Protocol Support

  • Multi-relay connections - Connect to multiple Nostr relays simultaneously
  • Real-time feed - Live updates from the Nostr network
  • Profile management - Create and edit your Nostr identity
  • Note publishing - Compose and publish notes with rich formatting
  • Social interactions - Like, reply, and repost notes

🤖 AI-Powered Features

  • Thread summarization - AI-powered summaries of long conversations
  • Writing assistance - Get AI suggestions for improving your posts
  • Content analysis - Sentiment analysis and topic extraction
  • Smart hashtag generation - AI-generated relevant hashtags

🔧 DVMCP Integration

  • Tool discovery - Automatically discover available AI tools
  • Provider management - Connect to multiple DVMCP providers
  • Request tracking - Monitor AI tool usage and results
  • Extensible architecture - Easy integration of new AI services

🎨 Modern UI/UX

  • Responsive design - Works on desktop and mobile devices
  • Dark/light themes - Automatic theme switching
  • Smooth animations - Framer Motion powered transitions
  • Component library - Built with HeroUI and shadcn/ui

Technology Stack

  • Frontend: React 18 + TypeScript
  • Styling: Tailwind CSS + HeroUI + shadcn/ui + tailwindcss-animate
  • Animations: Framer Motion
  • State Management: Zustand
  • Nostr Protocol: nostr-tools (SimplePool API)
  • AI Services: OpenRouter API
  • Storage: Local Storage with Zustand persistence
  • Build Tool: Vite

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

  1. Clone the repository:
git clone <repository-url>
cd relay16
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000

Recent Fixes Applied

Configuration

Nostr Setup

  1. Go to Settings → Identity
  2. Generate new keys or import existing private key
  3. Add Nostr relays in Settings → Relays

AI Services Setup

  1. Get an API key from OpenRouter
  2. Go to Settings → AI Services
  3. Enter your OpenRouter API key

Project Structure

src/
├── components/          # Reusable UI components
│   ├── Layout.tsx      # Main app layout
│   └── ui/             # shadcn/ui components
├── pages/              # Main application pages
│   ├── Feed.tsx        # Social feed ✅
│   ├── Profile.tsx     # User profiles (needs fixes)
│   ├── Compose.tsx     # Note composition ✅
│   ├── Tools.tsx       # AI tools interface (needs fixes)
│   └── Settings.tsx    # App settings (needs fixes)
├── hooks/              # Custom React hooks
│   ├── useNostr.ts     # Nostr protocol integration ✅
│   └── useDVMCP.ts     # DVMCP tool integration ✅
├── stores/             # Zustand state stores
│   ├── nostr.ts        # Nostr state management ✅
│   ├── dvmcp.ts        # DVMCP state management ✅
│   └── ai.ts           # AI services state ✅
├── services/           # External service integrations
│   └── ai.ts           # OpenRouter AI service ✅
├── types/              # TypeScript type definitions
│   ├── nostr.ts        # Nostr protocol types ✅
│   ├── dvmcp.ts        # DVMCP types ✅
│   └── ai.ts           # AI service types ✅
├── lib/                # Utility functions
│   └── utils.ts        # Common utilities ✅
└── App.tsx             # Main application component ✅

Development Status

✅ Completed & Working

  • Basic project setup and configuration
  • Dependency management and build system
  • Core TypeScript types and interfaces
  • Nostr protocol integration with SimplePool
  • AI service integration foundation
  • Basic UI components and layout
  • Feed and Compose pages

🔧 Needs Additional Work

  • Profile page (missing some hook methods)
  • Tools page (DVMCP store property mapping)
  • Settings page (some missing store properties)
  • Complete DVMCP provider integration
  • Advanced Nostr features (DMs, follows)

Available Scripts

  • npm run dev - Start development server ✅
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run lint - Run ESLint
  • npm run type-check - Run TypeScript type checking

Next Steps for Development

  1. Complete Missing Store Properties: Add missing properties to stores for Profile, Tools, and Settings pages
  2. Implement Real DVMCP Integration: Replace mock data with actual DVMCP provider discovery
  3. Add Advanced Nostr Features: Implement DMs, follows, and advanced relay management
  4. Enhance UI/UX: Add more polished animations and responsive design improvements

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Architecture Highlights

Nostr Integration

  • Uses SimplePool from nostr-tools for efficient multi-relay management
  • Proper key management with Uint8Array conversion for cryptographic operations
  • Event signing and publishing with finalizeEvent

State Management

  • Zustand for lightweight, TypeScript-friendly global state
  • Persistent storage for user data and preferences
  • Reactive updates across all components

AI Services

  • OpenRouter API integration for multiple AI model access
  • DVMCP protocol foundation for decentralized AI tool discovery
  • Modular service architecture for easy extension

Troubleshooting

Common Issues

  1. Port 3000 already in use: Change port in vite.config.ts or kill existing process
  2. Module resolution errors: Ensure all dependencies are installed with npm install
  3. TypeScript errors: Run npm run type-check to identify and fix type issues

Dependencies

All major dependencies are installed and configured:

  • React ecosystem (React, React-DOM, React Router)
  • UI libraries (HeroUI, Tailwind CSS, Framer Motion)
  • Nostr tools and cryptographic libraries
  • Development tools (Vite, TypeScript, ESLint)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments


Relay16 - Bridging social media and AI for the decentralized future.

🚀 Ready to develop! Start with npm run dev and navigate to http://localhost:3000

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server