Highlights
- Built a monorepo product with a Next.js PWA frontend, FastAPI analytics service, shared typed contracts, Postgres/pgvector business memory, and Docker Compose self-hosting support.
- Implemented owner workflows for CSV/Excel import previews, confirmed ledger history, recurring obligations, quick-add sales/purchases/expenses, document storage, action queues, forecasting, scenario planning, and cash-aware reorder recommendations.
- Designed AI analyst flows with prompt guardrails, retrieval-backed evidence snippets, confidence and recommendation fields, and runtime metadata for provider, mode, latency, and estimated cost.
- Shipped a recruiter-ready India-first pharmacy demo with sanitized fixtures, deterministic walkthrough prompts, local-open Ollama mode, BYO cloud mode, hybrid routing, and hosted deployment path documentation.
Key metrics
Media
Tech stack
Problem
Small business owners often make inventory, cash, supplier, and margin decisions without dedicated analytics teams or expensive operating software.
OwnerPilot is designed to close that gap with practical owner workflows instead of generic dashboards: import the records a business already has, surface operational risks, and explain what to do next with evidence and confidence traces.
Product scope
- India-first pharmacy and medical-store showcase with reusable SMB domain models for sales, purchases, products, expenses, recurring obligations, documents, actions, forecasts, and reorder plans.
- Dashboard surfaces revenue, margin, bills, inventory alerts, morning briefs, action queue, and quick-add entries for daily operations.
- Owner workflows include import preview and confirmation, recurring obligation tracking, document upload, AI investigation, action lifecycle management, forecasting, scenario planning, and cash-aware replenishment.
Architecture
The system uses a thin web shell plus thin API orchestration model around a Postgres-first business memory. The web app owns the owner-facing PWA experience, while the API centralizes ingestion, analytics, retrieval, forecasting, scheduler, and AI orchestration workflows.
- apps/web: Next.js App Router PWA with dashboard, imports, documents, Ask OwnerPilot, action center, planner, reorder plan, authentication, and workspace entry.
- apps/api: FastAPI service with Pydantic models for import jobs, document storage, investigations, briefings, forecasts, scenarios, quick-add ledger entries, actions, and scheduler runs.
- packages/contracts: shared schemas and structured response contracts to keep API/UI boundaries explicit.
- infra: Docker Compose stack with Postgres, pgvector, and Ollama for private self-hosted operation.
AI analyst workflow
- Investigation requests return structured summaries, confidence scores, evidence snippets, risks, recommendations, provider metadata, runtime mode, latency, and estimated cost.
- Retrieval-backed evidence is stored through the business document and pgvector memory path so recommendations can cite business context rather than acting like a free-form chatbot.
- Provider configuration supports local-open, BYO cloud, and hybrid modes so the project can demonstrate privacy-first local inference while still allowing hosted model fallbacks.
- Prompt guardrails and deterministic demo fixtures keep recruiter walkthroughs repeatable and safe to record.
Planning and action systems
- Cash-aware reorder planning blends stock, sales velocity, supplier costs, expiry risk, and recurring obligation pressure into replenishment recommendations.
- Forecast Lab exposes deterministic baseline forecasts and scenario outputs with assumptions and warnings instead of opaque chart-only results.
- Action Center tracks open, watching, snoozed, and resolved states so insights become operational tasks rather than static dashboard observations.
- Scheduler routes generate briefings, anomalies, due reminders, and action prompts that can evolve into daily owner workflows.
Engineering quality
- Monorepo structure separates UX composition, API orchestration, contracts, UI primitives, infra, and sanitized demo data.
- Public fixtures are sanitized and reproducible, with strict data safety rules against committing raw private business data.
- CI-oriented commands cover linting, type checking, web builds, API compile sanity, and formatting baselines across TypeScript and Python modules.
- Deployment docs cover both near-zero-cost hosted mode and private self-hosted Windows-first mode with Docker and Ollama.
Demo walkthrough
The showcase narrative starts with the dashboard, demonstrates import history, asks why profit dropped, reviews evidence and confidence, moves an action through the lifecycle, compares reorder horizons, and runs a forecast or scenario.
- Sample prompts: 'Why did profit drop this month?', 'What are my top selling products?', 'Which expense categories are spiking?', and 'What should I reorder next week?'
- Expected proof points: evidence-backed response, provider/mode/latency/cost metadata, visible action lifecycle, and deterministic forecast/scenario output.
Next steps
- Add API integration tests for import confirmation, recurring obligations, investigation, scheduler, and reorder workflows.
- Add Playwright smoke coverage for dashboard -> import -> ask -> action transitions.
- Expand import mapping presets, supplier lead-time settings, localization scaffolding, and model-routing observability.
- Capture a 90-second recruiter walkthrough and a 2-3 minute technical walkthrough for the project page media gallery.
Related projects
Event-Based Star Tracking for Spacecraft Attitude Estimation
Space Autonomy · 2026
A Speed-Aware EBS-EKF research prototype for event-camera star tracking that improves low-light spacecraft attitude estimation by making centroid correction depend on both brightness and image-plane speed.

Automated Goalie: Ping Pong Ball Trajectory Prediction System
Robotics · 2025
A closed-loop robot-learning prototype that detects a ping pong ball, estimates its 3D motion, predicts the landing point, and rotates a servo-driven blocker in real time on a Raspberry Pi-based hardware setup.

S&P 500 Deep Learning Forecasting System
Financial ML · 2025
A research-grade forecasting system that evaluates Temporal Fusion Transformers against LSTM and ARIMAX baselines for S&P 500 return prediction using mixed-frequency market and macroeconomic data, then extends TFT with regime-aware attention and interpretability diagnostics.

Vision-Guided Differentiable Physics for Robotic Manipulation
Robotics · 2025
A presentation-style robotics case study that connects RGB observations, robot state, temporal Transformer prediction, differentiable rollout losses, and Isaac Sim Franka data to learn multi-step manipulation behavior from visual context.