dograh/ui/AGENTS.md
Abhishek a172db8022
feat: add end_call tool (#118)
* feat: add end_call tool

* chore: remove run_llm=True from properties
2026-01-14 16:40:40 +05:30

1.9 KiB

UI - Frontend Application

Next.js 15 frontend for the Dograh voice AI platform.

Project Structure

ui/
├── src/
│   ├── app/          # Next.js App Router pages
│   ├── components/   # React components
│   ├── lib/          # Utilities and configurations
│   ├── client/       # Auto-generated API client
│   ├── context/      # React context providers
│   ├── hooks/        # Custom React hooks
│   ├── constants/    # Application constants
│   └── types/        # TypeScript type definitions
├── public/           # Static assets
└── package.json

Where to Find Things

Looking for... Go to...
Pages/routes src/app/ - Next.js App Router (file-based routing)
Reusable components src/components/ - organized by feature
Base UI primitives src/components/ui/ - shadcn/ui components
Workflow builder src/components/flow/ - React Flow based
API calls src/client/ - auto-generated from OpenAPI spec
Auth utilities src/lib/auth/
Helper functions src/lib/utils.ts
Global state src/context/ - React context providers

Tech Stack

  • Next.js 15 with App Router, React 19, TypeScript
  • Tailwind CSS with shadcn/ui components
  • Zustand for state management
  • @xyflow/react for workflow builder
  • LiveKit for WebRTC voice

API Client

The src/client/ directory is auto-generated from the backend OpenAPI spec. Whenever you add a new api route in backend, and wish to use it in the UI, generate the client using below command.

npm run generate-client

Development

npm install
npm run dev    # Runs on port 3000