A centralized operational intelligence layer for modern organizations connecting employees, departments, tasks, documents, workflows, and evidence-based AI insights.
- What work needs attention right now?
- Live operational dashboard with overdue flags, due-soon tracking, and algorithmic/LLM task prioritization.
- Which tasks, approvals, or workflows are delayed?
- Multi-tier approval queue with reviewer feedback, self-approval prevention policies, and bottleneck analysis.
- What information can be extracted from enterprise documents?
- Automated server-side text parsing (PDF, TXT, MD, DOCX) and Gemini structured extraction of decisions, deadlines, operational risks, and 1-click task creation.
- Which actions can be automated or delegated?
- Deterministic server-side workflow engine supporting manual, status-change, or document-driven triggers with idempotency protection.
- What decisions should managers prioritize based on available evidence?
- Evidence-grounded operational insights linking verified PostgreSQL record IDs to quantifiable bottlenecks and confidence scores.
- Framework: React 18 with TypeScript strict mode
- Bundler & Tooling: Vite 6
- Routing: React Router DOM v7
- Styling & Design System: Tailwind CSS v3 with corporate navy (
#0b132b,#1c2541), slate, and dark glassmorphism - State Management: TanStack Query v5 + Context API
- Visualizations: Recharts
- Icons: Lucide React
- Runtime: Node.js 20+ LTS with Express.js & TypeScript
- AI Integration: Official
@google/genaiSDK - Validation: Strict Zod schemas across all HTTP parameters and Gemini outputs
- Security: Helmet headers, restrictive CORS, rate-limiting, request-id tracing, centralized error handling
- File Processing: Multer +
pdf-parse
- Engine: Supabase PostgreSQL 15
- Data Isolation: Row Level Security (RLS) on all 19 organization tables
- Storage: Private Supabase Storage bucket (
enterprise-documents) - Functions: Atomic approval transactions (
decide_approval), recursive dependency cycle detection (check_task_dependency_cycle), and organization initialization.
The application includes pre-configured enterprise demonstration accounts for immediate evaluation:
| Persona | Name | Role | Access Scope |
|---|---|---|---|
| Executive Admin | Elena Vance | admin |
Organization settings, member permissions, security audit logs |
| Operations Manager | Marcus Brody | manager |
Workflow builder, task assignment, department oversight |
| Senior Engineer | Sarah Lin | employee |
Deliverables, document analysis, task acceptance |
| VP Operations | David Sterling | executive |
High-level KPI trends, multi-region budget approvals |
Evaluator Tip: In the top navigation bar, use the Persona Switcher dropdown to toggle between roles without re-authenticating.
- Node.js 20+ LTS
- npm 10+
# Clone the repository
git clone <repo-url>
cd "Enterprise -AI"
# Install all workspace dependencies
npm installCopy .env.example to .env:
cp .env.example .envKey variables:
PORT=3000
APP_BASE_URL=http://localhost:5173
CORS_ORIGINS=http://localhost:5173
# Google Gemini (Required for live Gemini LLM calls)
GEMINI_API_KEY=your_gemini_api_key_here
GEMINI_MODEL=gemini-2.5-flash
# Supabase (Optional for local testing; demo data operates out of the box)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key# Terminal 1: Launch Backend API (Port 3000)
npm run dev:backend
# Terminal 2: Launch Frontend App (Port 5173)
npm run dev:frontendVisit http://localhost:5173 in your browser.
Run the comprehensive unit, integration, and security test suites:
# Run all tests across backend and frontend
npm test
# Run backend tests individually
npm run test --workspace=backend
# Run frontend tests individually
npm run test --workspace=frontendEnterprise -AI/
├── package.json # Monorepo workspaces
├── tsconfig.base.json # Base TypeScript strict config
├── .env.example # Environment variables specification
├── docker-compose.yml # Container orchestration
├── backend/
│ ├── src/
│ │ ├── config/ # Zod validated env config
│ │ ├── controllers/ # Task, Document, Assistant, Workflow, Approval controllers
│ │ ├── middleware/ # Auth, RLS, Rate Limit, Error Handling
│ │ ├── repositories/ # Enterprise data store & DB abstraction
│ │ ├── routes/ # REST API endpoints under /api/v1
│ │ ├── schemas/ # Zod validation schemas
│ │ ├── services/ # Gemini SDK service & workflow runner
│ │ ├── tests/ # Vitest API integration tests
│ │ └── server.ts # Express server entrypoint
│ └── Dockerfile
├── frontend/
│ ├── src/
│ │ ├── components/ # UI primitives & application shell (Sidebar, TopNav)
│ │ ├── pages/ # Dashboard, Tasks, Docs, Nexus AI, Workflows, Approvals
│ │ ├── lib/ # HTTP API client & Auth context
│ │ ├── types/ # Shared TypeScript interfaces
│ │ └── App.tsx # Routes configuration
│ └── Dockerfile
├── supabase/
│ ├── migrations/ # 0001 (Schema) to 0005 (Storage policies)
│ └── seed.sql # Enterprise seed dataset (Apex Global Technologies)
└── docs/
├── ARCHITECTURE.md # System design & sequence flows
├── SECURITY.md # OWASP mitigations & prompt injection defense
├── DATABASE.md # Schema dictionary & migration guide
├── API.md # Complete REST API reference
└── DEPLOYMENT.md # Production Docker deployment guide
Proprietary Enterprise Software. Developed for NexusFlow AI.