How varshukarthik/nexusguard works
NexusGuard is an enterprise intelligence platform: users sign in through the web app, submit questions or operational tasks, and receive agent-driven answers or proposed actions. The documented request path classifies intent, recalls tenant-scoped memory, resolves least-privilege tools, applies authorization before retrieval or execution, and gates mutations for human approval. Distinct product branches include document and repository ingestion, connectors, governance and audit, and administrative workspaces. The README documents the workflow; sampled source confirms selected frontend, authentication, RBAC, retrieval, embedding, and database details, while many routers and services were not sampled.
Main entry points: models.py Enterprise Database · api.ts Browser API Client · main.py FastAPI Application · router.py Intent and Agent Router
Components 26
Web Experience
- Web Application
frontend/src/App.tsx - Chat and Tasks
frontend/src/pages/Chat.tsx - Workspace Pages
frontend/src/pages/Approvals.tsx - Documents UI
frontend/src/pages/Documents.tsx - Connector UI
frontend/src/pages/Connectors.tsx - Browser API Client
frontend/src/lib/api.ts
API and Identity
- FastAPI Application
backend/app/main.py - Authentication Gateway
backend/app/core/security.py - Authentication Routes
backend/app/routers/auth.py - Workspace Routes
backend/app/routers/workspace.py - Document Routes
backend/app/routers/documents.py - Connector Routes
backend/app/routers/connectors.py
Agent Intelligence
- Intent and Agent Router
backend/app/services/router.py - Agent Fleet
backend/app/services/agents.py - Persistent Memory
backend/app/services/memory.py - Tool Execution
backend/app/services/tools.py - Permission-Aware Retrieval
backend/app/services/retrieval.py
Governance Controls
- RBAC Engine
backend/app/core/rbac.py - Human Approval Gate
backend/app/routers/workspace.py - Audit Trail
backend/app/services/audit.py
Enterprise Data
- Document Ingestion
backend/app/services/ingestion.py - Repository Ingestion
backend/app/services/repo_ingestion.py - Enterprise Connectors
backend/app/services/connectors/connector_service.py - Embedding Engine
backend/app/services/embeddings.py - Enterprise Database
backend/app/db/models.py
Other components
- Enterprise User
Connections 33
- Enterprise User → Web Application: uses
README.md - Web Application → Browser API Client: requests
frontend/src/App.tsx - Chat and Tasks → Browser API Client: streams requests
frontend/src/lib/api.ts - Workspace Pages → Browser API Client: submits decisions
README.md - Documents UI → Browser API Client: requests documents
frontend/src/pages/Documents.tsx - Connector UI → Browser API Client: manages connectors
frontend/src/pages/Connectors.tsx - Browser API Client → FastAPI Application: calls API
frontend/src/lib/api.ts - FastAPI Application → Authentication Routes: registers routes
backend/app/main.py - FastAPI Application → Workspace Routes: registers routes
backend/app/main.py - FastAPI Application → Document Routes: registers routes
backend/app/main.py - FastAPI Application → Connector Routes: registers routes
backend/app/main.py - Authentication Routes → Authentication Gateway: validates sessions
backend/app/routers/auth.py - Authentication Gateway → Enterprise Database: reads sessions
backend/app/core/security.py - Workspace Routes → Intent and Agent Router: routes requests
README.md - Intent and Agent Router → Agent Fleet: selects agent
README.md - Intent and Agent Router → Persistent Memory: recalls context
README.md - Intent and Agent Router → Tool Execution: resolves tools
README.md - Tool Execution → RBAC Engine: checks permissions
README.md - Permission-Aware Retrieval → RBAC Engine: authorizes reads
backend/app/services/retrieval.py - Tool Execution → Permission-Aware Retrieval: executes searches
README.md - Permission-Aware Retrieval → Embedding Engine: ranks vectors
backend/app/services/retrieval.py - Permission-Aware Retrieval → Enterprise Database: reads authorized data
backend/app/services/retrieval.py - Tool Execution → Human Approval Gate: queues mutations
README.md - Human Approval Gate → Enterprise Database: stores actions
README.md - Workspace Routes → Audit Trail: records events
README.md - Document Ingestion → Embedding Engine: creates vectors
backend/app/services/ingestion.py - Document Ingestion → Enterprise Database: stores documents
backend/app/services/ingestion.py - Repository Ingestion → Embedding Engine: creates vectors
backend/app/services/repo_ingestion.py - Repository Ingestion → Enterprise Database: stores repository chunks
backend/app/services/repo_ingestion.py - Document Routes → Document Ingestion: ingests documents
README.md - Connector Routes → Enterprise Connectors: manages sources
README.md - Enterprise Connectors → Enterprise Database: uses seeded records
README.md - Persistent Memory → Enterprise Database: local fallback
README.md