"A forge for new solutions and agents."
Welcome to Nidavai.
The name is a fusion of Nidavellirโthe legendary neutron star forge from the Marvel Universe, home to the dwarves who crafted the cosmos's most powerful weaponsโand AI.
Like its mythical namesake, Nidavai is a place of creation. What started as a sophisticated digital library has evolved into a fully-fledged Agentic Foundry. It is a platform where we forge, host, and orchestrate specialized autonomous agents to tackle complex challenges, from software engineering to debate and travel planning.
The Library remains the heart of our system, preserved as a core "Gem" that provides knowledge and context to the agents that operate within the forge.
Our platform is organized into distinct functional areas ("Gems"):
| Agent | Type | Role & Capabilities |
|---|---|---|
| Wong (The Librarian) |
| The Guardian. He manages the Library Gem. He can search the archives, verify book identities via Google Books, find availability on LibGen, and summon (download) new knowledge into the forge. |
| The Coder |
| The Builder. A headless Python developer. Give it a blueprint (e.g., "Madelbrot Set Visualization"), and it will plan, write, and execute the code securely, forging the output in real-time. |
| The Debaters |
| The Philosophers. A 3-agent crew (Proposer, Opposer, Judge). They take any motion to the anvil, strike it with arguments, and hammer out a final verdict. |
| The Traveler |
| The Navigator. A 3-agent crew that plans comprehensive travel itineraries, balancing logistics, local secrets, and fiscal constraints. |
| The Evaluator |
| The Auditor. An autonomous browser agent that executes tasks (Browsing, Scraping, Searching) and self-reviews its work against user-defined success criteria. |
Nidavai operates on a modern Hybrid Cloud Architecture, delivering a seamless experience by splitting responsibilities between a high-performance frontend and a robust, agentic backend.
Architecture DiagramView Blueprint Source
graph TD User["User"] -->|"HTTPS"| Frontend["Frontend (Vercel)"] Frontend -->|"REST API & SSE"| Backend["Backend (Render)"] subgraph "Nidavai Forge (Backend)" Backend -->|"Query"| DB[("PostgreSQL")] Backend -->|"Orchestrate"| Agents["Agent Swarm"] Agents -->|"Guardian"| Librarian["Librarian Agent"] Agents -->|"Crew"| Crew["Coder / Debate / Travel"] Agents -->|"Auditor"| Evaluator["Evaluator Agent"] end subgraph "External Realms" Librarian -->|"Search"| GoogleBooks["Google Books API"] Librarian -->|"Summon"| LibGen["LibGen Mirrors"] Crew -->|"Intelligence"| OpenAI["OpenAI GPT-4o"] Evaluator -->|"Browse"| Web["Real Internet (Headless)"] end
Built with Next.js 16 (Turbopack), React 19, and Tailwind CSS v4. It serves as the portal to the forge, featuring:
Built with FastAPI (Python). It is the engine of the forge:
A guide to the blueprints in our repository:
: The central api layout. Initializes the FastAPI app, connects to the database, mounts agent routers, and manages the Librarian chat endpoint.backend.py
: The Local Ingestor. A Gradio-based tool meant to be run locally. It scans your physical folder, compares it with the cloud DB, and uploads/syncs new books to the forge.app.py
&utils.py
: Utility functions for data cleaning and Pydantic models for type safety.data_models.py
)/agents
: The implementation of "Wong". Contains tools for database search, Google Books lookup, and file downloading.librarian_agent.py
: The Coding Crew.coder/
: Wrapper to handle threading and streaming output.coder_agent.py
: The Debate Crew.debate/
: Defines Proposer, Opposer, and Judge personas.config/agents.yaml
: The Travel Crew.travel/
: Defines Strategist, Local Expert, and Budget Analyst.config/agents.yaml
We utilize state-of-the-art LLMs to power our forge, optimized for cost and performance:
As Nidavai continues to burn bright, we are planning the following expansions:
) manages physical files. We plan to move to full AWS S3 / Google Drive integration so the Agent running on Render can directly save files to the cloud.app.py