Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NVX

AI Search Engine

Next.js TypeScript PostgreSQL Tailwind CSS Drizzle ORM Vercel


Search, DeepSearch, Model Council, Computer, Finance, Sports, News, and Projects — in one workspace.

Live Demo


Overview

NVX is a full-stack AI-powered answer engine inspired by Perplexity. It combines real-time web search with live citations, autonomous deep research agents, multi-model comparison, code execution, and curated content feeds across finance, sports, and news.

Features

Search Modes

Mode Description Availability
Search Fast answers with real-time web citations Free
DeepSearch Multi-step autonomous research with executive reports Pro
Model Council Run 2–4 models side-by-side with consensus analysis Pro+
Computer Agentic code execution, terminal, file generation Compute Pro

Sections

  • Finance — Live stock tickers, market data, financial news (S&P 500, NASDAQ, BTC, Gold, and more)
  • Sports — Match reports and scores across Premier League, UCL, LaLiga, Bundesliga, MLS, FIFA, NBA, ICC Cricket
  • News — Global news across World, Technology, Science, Economy
  • Projects — Build projects using NVX, Computer, or third-party AI agents
  • Models — Full catalog of 22 models with plan access matrix
  • Docs — Built-in documentation site

Models (22 Frontier Models)

Provider Models
NVX Sonar 1, Sonar 2, Sonar 2.1
Claude Fable 4.5, Sonnet 5, Opus 4.8, Opus 4.9, Opus 5, Fable 5, Fable 5.1
NVIDIA Nemotron 3.5 Lightning, Nemotron 3 Super, Nemotron 3 Ultra
OpenAI GPT 5.6 Luna, GPT 5.6 Terra, GPT 5.6 Sol
GLM GLM 5.3
Kimi Kimi V3, Kimi V3 Pro
Compute Falcon 1, Falcon Ultra

Subscription Plans

Category Plans
Personal Free → Pro ($20) → Pro+ ($40) → Max ($80)
Education Edu Pro ($8) → Edu Pro+ ($18)
Business Enterprise Pro ($40/seat) → Enterprise Max ($120/seat)
Computer Compute Pro ($30) → Pro+ ($60) → Max ($100) → Ultra ($200)

Tech Stack

  • Framework — Next.js 16 (App Router, Server Components)
  • Language — TypeScript 5.9
  • Database — PostgreSQL via Drizzle ORM
  • Auth — NextAuth.js with Google OAuth + Credentials
  • Styling — Tailwind CSS 4
  • Typography — Outfit (display), Newsreader (body), JetBrains Mono (code)
  • Streaming — Server-Sent Events (SSE) for real-time chat

Getting Started

Prerequisites

  • Node.js 18+
  • PostgreSQL 14+

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/nvx-ai-search-engine.git
cd nvx-ai-search-engine

# Install dependencies
npm install

# Create environment file
cp .env.example .env

Environment Variables

DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/app_db
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-secret-key

# Optional — for real Google OAuth
# GOOGLE_CLIENT_ID=your-client-id
# GOOGLE_CLIENT_SECRET=your-client-secret

Database Setup

# Create the database
psql -U postgres -c "CREATE DATABASE app_db;"

# Push schema (creates all tables)
npx drizzle-kit push

Run

# Development
npm run dev

# Production
npm run build
npm run start

Open http://localhost:3000

Project Structure

src/
├── app/
│   ├── api/
│   │   ├── auth/[...nextauth]/   # NextAuth handlers
│   │   ├── chat/                  # Streaming chat endpoint
│   │   ├── finance/               # Finance articles API
│   │   ├── sports/                # Sports articles API
│   │   ├── news/                  # News articles API
│   │   ├── projects/              # Projects CRUD
│   │   ├── threads/               # Thread management
│   │   ├── subscription/          # Plan management
│   │   └── export/                # Project ZIP export
│   ├── auth/signin/               # Sign-in page
│   ├── page.tsx                   # Main application
│   ├── layout.tsx                 # Root layout with fonts
│   └── globals.css                # Design system tokens
├── components/
│   ├── Sidebar.tsx                # Navigation sidebar
│   ├── SearchInput.tsx            # Query composer
│   ├── ChatView.tsx               # Streaming chat interface
│   ├── ThreadView.tsx             # Thread display
│   ├── FinanceView.tsx            # Finance section
│   ├── SportsView.tsx             # Sports section
│   ├── NewsView.tsx               # News section
│   ├── ProjectsView.tsx           # Projects section
│   ├── ModelsPage.tsx             # Models catalog
│   ├── DocsPage.tsx               # Documentation
│   ├── SubscriptionModal.tsx      # Plan upgrade
│   └── ...                        # Other components
├── db/
│   ├── schema.ts                  # Drizzle ORM schema
│   └── index.ts                   # Database connection
└── lib/
    ├── auth.ts                    # NextAuth configuration
    ├── models.ts                  # Model registry & plans
    ├── ai-engine.ts               # AI response generation
    └── seed.ts                    # Database seeding

API Endpoints

Method Endpoint Description
POST /api/chat Streaming chat with SSE
GET /api/threads List all threads
POST /api/threads Create new thread
GET /api/threads/:id Get thread with messages
POST /api/threads/:id/messages Send follow-up
GET /api/finance Finance articles
GET /api/sports Sports articles
GET /api/news News articles
GET /api/projects List projects
POST /api/projects Create project
GET /api/subscription Get subscription
POST /api/subscription Update plan
GET /api/export Download project ZIP

Deployment

Vercel

  1. Push code to GitHub
  2. Go to vercel.com → Import project
  3. Add environment variables (DATABASE_URL, NEXTAUTH_URL, NEXTAUTH_SECRET)
  4. Use a hosted PostgreSQL (Neon, Supabase, or Vercel Postgres)
  5. Run npx drizzle-kit push against the hosted database
  6. Deploy

License

MIT


About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages