Introducing a new way to review your PRs.

Read the announcement

getnao / nao

👾 nao is the #1 open source agentic BI. (1) Create context with nao-core cli, (2) deploy nao chat interface for everyone

View on GitHub

23 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Nao knowledge base

Orientation

Nao is a monorepo for an AI-assisted analytics product. The backend coordinates agents, data access, story delivery, identity, integrations, and MCP; the frontend provides the chat, story, settings, onboarding, and repository-context experiences.

Critical durable state is managed through backend services and queries for organizations, projects, conversations, stories, credentials, and repository context. The frontend is route-driven and consumes backend APIs to render and update that state.

Agent execution connects conversational requests to model providers, tools, semantic and SQL data operations, and persisted artifacts. Stories turn analysis into shareable, embeddable visual experiences.

flowchart LR
  U[User or AI client] --> FE[Frontend application]
  U --> MCP[MCP server]
  FE --> API[Backend routes and services]
  MCP --> API
  API --> AG[Agent runtime]
  AG --> MP[Model providers]
  AG --> TOOLS[Agent tools and skills]
  TOOLS --> DATA[Warehouse and semantic layer]
  API --> DB[Application persistence]
  API --> ST[Story services]
  ST --> FE
  API --> AUTH[Authentication and governance]
  API --> CTX[Context explorer]
  CTX --> REPO[Connected repositories]
  API --> INT[Automation and messaging integrations]

Glossary

  • Story — a persisted analytical presentation composed of visual and content blocks that can be edited, delivered, shared, or embedded.
  • Context hub — the repository-backed workspace for browsing, editing, reviewing, and applying context changes.
  • Skill — reusable agent instruction or capability loaded into an agent run or exposed through external interfaces.
  • MCP — Model Context Protocol surface used by external AI clients to discover and invoke Nao capabilities.
  • Semantic layer — governed definitions and query behavior used to turn analytical requests into warehouse results.

Codebase-wide invariants

  • Backend product behavior is organized behind services, queries, and route handlers under apps/backend/src/services/**, apps/backend/src/queries/**, and apps/backend/src/trpc/**.
  • Frontend product views are route-driven; route composition lives under apps/frontend/src/routes/** and reusable UI behavior under apps/frontend/src/components/**.
  • Agent capabilities are explicitly assembled from profiles, providers, tools, and policy files under apps/backend/src/agents/**.
  • Project-scoped access decisions must flow through project queries and sharing services, evidenced by apps/…/project.queries.ts and apps/…/project-sharing.service.ts.
  • Repository-backed context operations are mediated by apps/…/context-explorer.service.ts rather than direct frontend repository access.

Routing table