EarnedAI

EVM Intelligence

OverviewDashboardProjectsScheduleSchedule QualityFinancial AnalyticsForecastingMonte CarloAI InsightsReports & Export
System Active

Real-time EVM Analytics

Portfolio Project — Built by Eric Mitchell

EarnedAI
AI-Powered Earned Value Management & Scheduling Intelligence Platform

A full-stack analytics platform that brings together earned value management (ANSI/EIA-748), critical path scheduling, Monte Carlo risk simulation, DCMA 14-Point schedule quality auditing, and AI-driven insights — purpose-built for project controls professionals managing complex, high-value programs in construction, defense, and infrastructure.

Next.js 16React 19TypeScriptTailwind CSSSQLiteNextAuthDockerClaude AI
01

What It Does

EarnedAI is a comprehensive project performance intelligence platform that enables project managers, program managers, and portfolio stakeholders to monitor, analyze, and forecast project health across cost, schedule, and risk dimensions.

For Project Managers

  • Track EVM metrics in real-time
  • Identify schedule slippage early
  • Monitor cost performance trends
  • Receive AI-driven alerts

For Program Directors

  • Portfolio-level KPI aggregation
  • Cross-project risk comparison
  • Budget vs actual tracking
  • Variance-at-completion forecasts

For Stakeholders

  • Executive dashboard overview
  • Monte Carlo confidence intervals
  • Schedule quality scoring
  • Data-driven decision support
02

Core Features & Engines

Earned Value Management

ANSI/EIA-748 Compliant

Full EVM calculations including PV, EV, AC, variances (CV, SV), performance indices (CPI, SPI), and forecasts (EAC, ETC, VAC). Supports Earned Schedule analysis with time-based SPI(t) and SV(t) metrics.

Critical Path Analysis

Forward & Backward Pass CPM

Custom-built CPM engine performs forward and backward pass calculations with cycle detection, identifying critical and near-critical paths (float < 10 days) across complex task dependency networks.

Monte Carlo Simulation

Stochastic Risk Modeling

Runs thousands of probabilistic simulations using PERT and triangular distributions to generate cost and schedule confidence intervals (P10, P50, P90), criticality indices, and sensitivity analysis.

DCMA 14-Point Assessment

Schedule Quality Auditing

Implements all 14 DCMA schedule quality checks — from missing logic and hard constraints to BEI and critical path integrity — producing a composite quality score with remediation guidance.

AI-Powered Insights & Narrative Reports

Rules Engine + Claude AI Integration

Rule-based AI engine surfaces cost overruns, schedule risks, and trend anomalies with severity scoring and recommendations. Claude Sonnet generates executive-level narrative reports (500-800 words) synthesizing EVM data, risks, forecasts, and WBS issues into actionable prose.

Primavera P6 Integration

XER File Import & Mapping

Custom XER parser handles Primavera P6's tab-delimited export format, mapping activities, relationships, resources, and calendars into the application's type-safe data model for immediate analysis.

03

Application Pages

01

Executive Dashboard

/

Portfolio KPIs, S-curves, cash flow, cost breakdown, risk score, and performance gauges in a single view.

02

Project Portfolio

/projects

All projects as interactive cards with health indicators, key metrics, and risk status at a glance.

03

Schedule View

/schedule

Gantt-style timeline with critical path highlighting, earned schedule metrics, and task dependency visualization.

04

Schedule Quality

/schedule-quality

DCMA 14-Point pass/fail dashboard with remediation guidance and composite quality scoring.

05

Financial Analytics

/analytics

Variance waterfall charts, WBS-level analysis, cost breakdown, and performance indices radar.

06

Forecasting

/forecasting

AI-driven EAC/ETC projections, trend analysis, scenario comparison, and completion date ranges.

07

Monte Carlo

/monte-carlo

Histogram distributions, confidence intervals, criticality index, and sensitivity analysis.

08

AI Insights

/ai-insights

Narrative insights with severity levels, recommendations, impact scoring, and category filtering.

09

Reports & Export

/reports

AI-generated narrative reports via Claude, CSV data exports (metrics, tasks, WBS, insights), and copy/download functionality.

10

Login

/login

Secure authentication with NextAuth v5, JWT sessions, role-based access, and demo account for evaluation.

04

Architecture

EarnedAI is a monolithic Next.js full-stack application with clean separation between the presentation layer, state management, API routes, computation engines, and data layer. All proprietary calculation logic executes server-side, with the client handling visualization and interaction.

Presentation
React 19 ComponentsRecharts VisualizationsTailwind CSS StylingResponsive Grid LayoutsOnboarding Tour
Auth & Security
NextAuth v5 (JWT)Role-Based AccessRate Limiting MiddlewareSecurity HeadersCSRF Protection
State Management
React Context APIMemoized Metric CachesProject Selection StateClient-Side Routing
API Layer
Next.js API RoutesRESTful EndpointsCSV Export APIAI Report GenerationXER Import
Computation
EVM EngineCPM EngineMonte Carlo SimDCMA AuditorAI EngineClaude Integration
Data & Deploy
SQLite (WAL Mode)XER ParserP6 MapperDocker Multi-StageVitest Suite
05

Tech Stack

Frontend

Next.js 16
React 19
TypeScript
Tailwind CSS 4
Recharts 3

Backend

Node.js
Next.js API Routes
RESTful Architecture
NextAuth v5 (JWT)

Computation

EVM Engine
CPM Engine
Monte Carlo Simulation
AI Rules Engine
DCMA 14-Point Auditor
Claude AI (Narrative Reports)

Data & Infrastructure

SQLite (better-sqlite3)
Primavera P6 XER Parser
Docker + Docker Compose
Vitest (Unit Tests)
06

By the Numbers

10
Application Pages
6
Computation Engines
7
API Endpoints
40+
TypeScript Interfaces
15+
React Components
4
Chart Types
14
DCMA Quality Checks
3
Unit Test Suites
07

Engineering Decisions

Custom Calculation Engines Over Libraries

Built the EVM, CPM, and Monte Carlo engines from scratch rather than using third-party libraries — demonstrating deep domain knowledge and ensuring full control over correctness, performance, and extensibility.

Server-Side Computation with Client-Side Visualization

Heavy calculations (EVM, CPM, Monte Carlo simulations) run on the server via API routes, keeping proprietary logic secure while letting the client focus on responsive, interactive visualization with Recharts.

Memoized Context Over State Library

Used React Context with useMemo caching instead of Redux or Zustand — appropriate complexity for the application's scope while still preventing unnecessary re-computation of expensive metrics.

Full TypeScript with Strict Mode

Every component, engine, API route, and utility is fully typed with 40+ interfaces — catching errors at compile time and making the codebase self-documenting for other developers.

XER Parser for Industry Compatibility

Built a custom Primavera P6 XER parser to bridge the gap between industry-standard scheduling tools and modern web analytics — handling the proprietary tab-delimited format with proper type mapping.

SQLite with WAL for Zero-Config Persistence

Chose SQLite with Write-Ahead Logging over PostgreSQL/Supabase — providing ACID-compliant persistent storage with no external dependencies, transaction support, and auto-seeding of sample data on first run.

JWT Auth with Rate Limiting Middleware

Implemented NextAuth v5 with JWT sessions and a custom token-bucket rate limiter (100 req/min per IP) — securing the application without requiring a separate auth service while protecting API endpoints from abuse.

Docker Multi-Stage Build for Production

Configured a three-stage Docker build (deps, builder, runner) on Alpine — compiling native SQLite bindings in the build stage and producing a minimal production image with persistent volume mounting for the database.

EarnedAI V2 — Designed & developed by Eric Mitchell

Use the sidebar navigation to explore the live application.