Skip to content

syedmukheeth/SAMIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAMIndex Logo

SAMIndex

The Neural Brain for Your Source Code.

Engineered for Contextual Intelligence — Built for Scale.

Live Demo GitHub Stars GitHub Forks License Version


🌌 Why SAMIndex? (The Vision)

"Most search engines find files. SAMIndex understands logic."

I built SAMIndex because I was tired of "Keyword Blindness." As codebases grow, finding where something is becomes easier than understanding why it is. SAMIndex was created to bridge the Context Gap between raw code and developer intent.

What it solves:

  • Keyword Blindness: Replaces traditional grep searches with Neural Understanding. You don't search for "auth middleware"; you ask "How does the system handle JWT rotation?".
  • Indexing Latency: Traditional API-based indexing is slow and hits rate limits. Our Turbo Indexing strategy uses ZIP-stream processing to bypass GitHub limits, indexing massive repos in seconds.
  • Provider Lock-in: Engineered with a Dual-AI Engine that seamlessly switches between Google Gemini and NVIDIA NIM (Llama 3.1) based on your availability and performance needs.

🌟 What makes SAMIndex different?

Principle Implementation
Neural Understanding Uses LLMs (Gemini/NVIDIA) to build a semantic brain of your code
Turbo Indexing ZIP-based scanning to bypass GitHub API rate limits by 90%
Event-Driven Pipeline BullMQ + Redis for resilient, asynchronous background indexing
Digital Obsidian UI Premium glassmorphism design system with sub-100ms interaction latency
Workspace Isolation Deep-search within specific repos or perform global neural queries
Identity-First Security Passport.js Google OAuth + JWT rotation for senior-grade security

✨ Feature Showcase

🧠 Neural Intelligence

  • Semantic Code Search: Ask questions in natural language.
  • Dual-AI Engine: Gemini 1.5 Flash + NVIDIA NIM support.
  • Auto-Summarization: Intelligent README analysis for repo value props.
  • Contextual Brain: Understands cross-file dependencies and logic.

⚡ Turbo Infrastructure

  • ZIP-Stream Indexing: High-speed snapshot processing.
  • Asynchronous Workflows: BullMQ handles heavy indexing in the background.
  • Real-time Progress: Socket.IO updates during "Neural Establishment."
  • Cache-First Search: Redis-backed query optimization.

🛡️ Security & Scalability

  • Google OAuth: Enterprise-grade authentication.
  • JWT Rotation: Secure session management.
  • Rate Limiting: Protection against API abuse.
  • Sanitized Persistence: NoSQL injection protection.

🎨 UX & Aesthetic

  • Digital Obsidian UI: Custom glassmorphism design system.
  • Framer Motion: Smooth micro-animations and transitions.
  • Three.js Visuals: Interactive background meshes.
  • Responsive Parity: Premium experience on Mobile, Tablet, and Desktop.

🏗️ System Design & Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                         CLIENT LAYER                                │
│   React 19 + Vite  │  Framer Motion  │  Lucide Icons                │
└────────────────────────────┬────────────────────────────────────────┘
                             │ HTTPS / WSS
┌────────────────────────────▼────────────────────────────────────────┐
│                       EXPRESS BACKEND                               │
│              REST API + Socket.IO Control Plane                     │
└──────────┬──────────────────────────────────────────┬──────────────┘
           │                                          │
┌──────────▼──────────┐                   ┌──────────▼──────────────┐
│   BullMQ Worker     │                   │   Neural Engine         │
│  (Indexing Service) │                   │  (Gemini / NVIDIA)      │
└──────────┬──────────┘                   └──────────┬──────────────┘
           │                                          │
┌──────────▼──────────────────────────────────────────▼──────────────┐
│                       DATA LAYER                                    │
│  ┌─────────────┐  ┌─────────────┐  ┌──────────────────────────┐   │
│  │  MongoDB 9  │  │  Redis 7    │  │  GitHub API / ZIP        │   │
│  │  (Neural    │  │  (Queue,    │  │  (Source Layer)          │   │
│  │   Brain)    │  │   Cache)    │  │                          │   │
│  └─────────────┘  └─────────────┘  └──────────────────────────┘   │
└─────────────────────────────────────────────────────────────────────┘

🗂️ File Structure

SAMIndex/
├── 📁 frontend/                    # React + Vite (Digital Obsidian)
│   └── src/
│       ├── 📁 assets/              # Premium branding & logos
│       ├── 📁 components/          # Glassmorphism UI components
│       │   ├── Layout.jsx          # App shell with backdrop blur
│       │   ├── Search/             # Neural search interface
│       │   └── Indexing/           # Progress bars & scan states
│       ├── 📁 hooks/               # Custom intelligence hooks
│       ├── 📁 pages/               # Dashboard, Repository, Settings
│       ├── 📁 services/            # API & WebSocket connectors
│       ├── index.css               # Global Design Tokens
│       └── App.jsx                 # Root router
│
├── 📁 backend/                     # Node.js + Express API
│   └── src/
│       ├── 📁 modules/             # Domain-Driven Design
│       │   ├── auth/               # Google OAuth & JWT
│       │   ├── repository/         # CRUD & Indexing logic
│       │   ├── search/             # Neural query processing
│       │   └── ai/                 # Gemini & NVIDIA NIM adapters
│       ├── 📁 middleware/          # Security & Validation
│       ├── 📁 queues/              # BullMQ configuration
│       ├── 📁 workers/             # Background processing logic
│       ├── 📁 models/              # Mongoose (Neural Schema)
│       └── server.js               # Entry point
│
├── 📁 assets/                      # Global static assets
├── 📄 DEPLOYMENT.md                # Deployment guide
├── 📄 .env.example                 # Config template
└── 📄 vercel.json                  # Frontend hosting config

🛠️ Tech Stack

Frontend

Technology Purpose
React UI Framework
Vite Modern Build Tool
Tailwind Atomic Styling
Framer Motion Premium Animations
Three.js 3D Visual Mesh
Lucide Icon Suite

Backend

Technology Purpose
Node.js JS Runtime
Express API Framework
MongoDB Neural Persistence
Redis Queue & Caching
BullMQ Background Processing
Passport Authentication

Neural & Infra

Technology Purpose
Gemini Neural Core
NVIDIA Alternative Neural Engine
Vercel Edge Hosting
Render Backend Compute

🚀 Getting Started

Prerequisites

node >= 18.0.0
npm  >= 9.0.0
MongoDB (Atlas or Local)
Redis (Upstash or Local)

Local Development

1. Clone & Install

git clone https://github.com/syedmukheeth/SAMIndex.git
cd SAMIndex

# Install Backend
cd backend && npm install

# Install Frontend
cd ../frontend && npm install

2. Configure Environment

Create a .env in the backend folder:

PORT=5000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
GITHUB_TOKEN=your_github_token
GEMINI_API_KEY=your_key # Detects nvapi- prefix for NVIDIA NIM
REDIS_HOST=your_host
REDIS_PORT=your_port
REDIS_PASSWORD=your_password

3. Launch

# In backend/
npm run dev

# In frontend/
npm run dev

🔐 Security Standards

  • JWT Rotation: Prevents session hijacking.
  • Helmet.js: Hardened HTTP headers.
  • Rate Limiting: Prevents brute-force indexing.
  • NoSQL Sanitization: Protection against MongoDB injection.
  • Google OAuth: Secure identity provider.

👨‍💻 Developer

Built with 🖤 from India by

Syed Mukheeth

LinkedIn GitHub


If SAMIndex helped you understand your code better, please ⭐ the repo!

© 2026 SAMIndex — A Neural Code Intelligence Experiment

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors