πŸš€

Built-in Features Playground

Every feature below is production-ready and fully functional. Use them as-is, customize for your needs, or learn from the implementation. This is what you get out of the box.

Next.js 15 + React 19.NET 9 + SignalROpenRouter AIPostgreSQL + DockerTypeScript + TailwindProduction Ready

Ready to Build?

Clone this entire repository and start building immediately

Clone & Start
πŸ’¬

Real-Time Chat with SignalR

What you get: Instant messaging that scales to thousands of users. Built with Microsoft SignalR for WebSocket-based real-time communication with PostgreSQL persistence and automatic reconnection handling.

WebSocket Connections
Auto-Reconnection
PostgreSQL Persistence

πŸš€ Try it live! Messages appear instantly for all connected users - open multiple tabs to test real-time sync

πŸ’¬

Live Chat Demo

Disconnectedβ€’0 onlineβ€’Real-time SignalR
Anonymous
πŸ’¬

Start the conversation

Your first message will appear here

πŸ”§ Implementation Details

Backend:
  • β€’ SignalR Hub for real-time messaging
  • β€’ MediatR for command/query separation
  • β€’ Entity Framework for data persistence
Frontend:
  • β€’ React hooks for connection management
  • β€’ Auto-generated TypeScript types
  • β€’ Optimistic UI updates
πŸ“Š

Live Analytics Dashboard

What you get: Real-time system metrics and user analytics with background job processing. Track server performance, user behavior, and custom metrics with Hangfire background services and SignalR live updates.

System Metrics
User Analytics
Background Jobs

πŸ“ˆ Live data updates! Metrics refresh automatically using Hangfire background jobs + SignalR broadcasting

Connecting to metrics...

πŸ”§ Implementation Details

Data Collection:
  • β€’ Hangfire background jobs for metrics
  • β€’ Custom visit tracking middleware
  • β€’ System performance monitoring
Real-time Updates:
  • β€’ SignalR for live dashboard updates
  • β€’ React Query for cache management
  • β€’ Responsive chart components
πŸ€–

OpenRouter AI Analytics Assistant

Powered by OpenRouter's 200+ AI models with custom function calling. Switch between GPT-4, Claude, Gemini, and more while the AI intelligently reads your real data.

Live AI with Real Database Access

πŸš€ Why OpenRouter is Pure Magic

πŸ”„
Model Switching
GPT-4, Claude, Gemini, Llama - all in one API
πŸ› οΈ
Custom Function Calls
AI calls your C# methods directly
πŸ“Š
Live Data Access
AI reads your PostgreSQL in real-time

Smart Database Queries

AI automatically calls C# functions to fetch live analytics from PostgreSQL

200+ AI Models

Switch between OpenAI, Anthropic, Google, Meta models with zero code changes

⚑

Custom Tool Registration

Add new AI capabilities by simply decorating C# methods with [OpenRouterTool]

πŸ”—

Function Calling Made Easy

AI intelligently chooses when to call your functions based on user questions

πŸ”§ Add This to Your Project

Implement your own OpenRouter AI tools in just 2 steps

πŸ”§ Step 1: Adding custom AI tools is this easy:
[OpenRouterTool("Get analytics data")]
public async Task<AnalyticsData> GetVisitStats() {
Β Β return await _db.Visits.GetTodayStats();
}
The AI automatically calls this when users ask about analytics!
then
⚑ Step 2: Register in OpenRouterToolsController.cs:
var tools = new VisitAnalyticsTools(_context);
client.RegisterTool<string, Task<AnalyticsData>>(
Β Β tools.GetVisitStats
);
Now OpenRouter can call your method across 200+ AI models!

Email + OTP Authentication

Modern passwordless authentication with JWT tokens

Sign in with email

We'll send you a secure code to verify your identity

By continuing, you agree to our terms of service

Passwordless Authentication

Secure email-based OTP system with no passwords to remember

JWT Token Security

Stateless authentication with automatic token expiry

Rate Limited OTP

Built-in rate limiting prevents abuse and spam

Email Integration

Powered by Resend for reliable email delivery

πŸš€

Ready to Build Amazing Things?

Clone this repository and start building your next AI-powered application. Everything you just saw is yours to use and customize.

Open Source β€’ Production Ready β€’ AI-Powered β€’ No Lock-in