# Monorepo Map

### Apps

- `apps/web` - main Anan web app.
- `apps/admin` - internal admin console.

### Backend

- `convex/_core` - schema, auth, OAuth, security, and platform foundations.
- `convex/betterAuth` - Anan Better Auth component schema and runtime integration.
- `convex/shared_logic` - reusable domain capabilities for CRM, market, offers, projects, integrations, content, notifications, verifications, and OAuth.
- `convex/ai_zone` - assistant orchestration, channels, agents, and workflows.
- `convex/broker_zone` - broker-scoped backend adapters.
- `convex/red_zone` - developer-scoped backend adapters.
- `convex/admin_zone` - admin operations and internal views.
- `convex/public` - unauthenticated public entry flows.

### Packages

- `packages/auth` - Anan auth primitives and server helpers.
- `packages/auth-sdk` - SDK surface for OAuth/client authorization.
- `packages/authorization` - shared authorization contracts and React helpers.
- `packages/auth-client` - auth clients for web/admin usage.
- `packages/domain-contracts` - stable domain types and contracts.
- `packages/platform-core` - platform utilities, errors, classnames, and shared primitives.
- `packages/web-foundation` - common Next.js/web route and session helpers.
- `packages/ui` - shared UI components.
- `packages/testing` - test helpers and fixtures.
- `packages/*-logic` - domain logic packages for base, market, CRM, offers, workspace, and compliance.
- `packages/location-map` - location/map utilities.
- `packages/ag-ui` - structured agent UI primitives.