Skip to content
ย 
ย 

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ SENTRA AI

AI-Powered Supply Chain Risk Intelligence Platform

Built for Hackathon 2026 โ€” Where artificial intelligence meets procurement resilience.

Live Demo Backend API GitHub


๐Ÿ† Hackathon Project ยท Built in 6 Hours ยท Fully Deployed ยท AI-Ready


๐Ÿ“– The Problem We Solve

Every year, companies lose $184 billion in revenue due to supply chain disruptions. The average procurement team monitors dozens of global suppliers across multiple continents โ€” but their tools are reactive, not predictive. They find out about port congestion, financial stress, or geopolitical risks after the disruption has already hit.

SENTRA AI changes that.

We built an autonomous supply chain risk intelligence platform that:

  • Predicts disruptions 14โ€“60 days before they impact operations
  • Quantifies financial exposure in real time
  • Executes mitigation playbooks autonomously
  • Monitors 13 suppliers across 13 countries, 24/7

๐ŸŽฏ Vision

"A world where no procurement team is ever blindsided by a supply chain disruption again."

SENTRA AI is the Sentinel that never sleeps โ€” continuously scanning financial filings, port congestion data, geopolitical signals, weather events, and news feeds to surface risks before they become crises. When a risk is detected, SENTRA doesn't just alert you โ€” it generates a full crisis response plan and executes it at the click of a button.


๐Ÿš€ Live Demo

Service URL Status
๐ŸŒ Frontend sentra-ai-7fpw.onrender.com โœ… Live
โš™๏ธ Backend API sentra-ai-hy43.onrender.com/api/health โœ… Live ยท AI Ready
๐Ÿ“ฆ GitHub rumaisafatima/Sentra_AI โœ… Public

Demo Credentials:

Email Password Role
admin@sentra.ai Sentra@2024 Administrator
demo@sentra.ai Demo@1234 Analyst
rumaisa@sentra.ai MyPassword123 Procurement Manager
analyst@sentra.ai Analyst@2024 Supply Chain Analyst

๐Ÿ“ธ Platform Screenshots

๐Ÿ  Command Center

The central intelligence dashboard showing supply chain health, disruption costs avoided, pending approvals, inventory health, and global supplier risk monitoring.


๐Ÿข Supplier Intelligence Hub

Analyze supplier risk profiles, monitor risk trends, evaluate risk factors, and generate AI-powered supplier intelligence reports.


๐Ÿค– Sentinel Agent Console

Run AI-powered supplier scans to identify emerging threats, analyze disruption signals, and generate mitigation recommendations.


๐Ÿšจ Disruption Playbook

Automatically generated response plans with disruption timelines, financial exposure analysis, and AI-driven mitigation strategies.


๐Ÿ’ฌ Procurement Intelligence Chat

Ask natural language questions about suppliers, inventory, procurement spend, compliance, and supply chain risks.


๐Ÿ“Š Risk Timeline

Visualize overlapping disruption windows, conflict zones, supplier exposure, and future supply chain risk events.


โœ… Playbook Activated

Monitor autonomous mitigation execution, disruption resolution progress, financial savings, ROI, and full audit trails.


โœจ Features

๐Ÿ  Command Center

The nerve center of your supply chain. See everything at a glance.

  • Animated Supply Chain Health Score โ€” composite 0-100 index across 13 suppliers
  • $1.247M Savings Counter โ€” animated count-up of disruptions avoided year-to-date
  • Pending Approvals โ€” approve/reject AI agent actions in one click
  • Top 3 Risk Predictions โ€” critical suppliers with probability scores and financial exposure
  • Live Agent Activity Feed โ€” real-time stream of all 6 AI agents' actions

๐ŸŒ Global Risk Heat Map

The feature that stops judges in their tracks.

  • Full SVG world map with 13 animated country dots
  • Color-coded by risk level: ๐Ÿ”ด Critical ยท ๐ŸŸก High/Medium ยท ๐ŸŸข Low
  • Pulsing glow animations on critical-risk countries
  • Hover tooltips with supplier name, score, and risk level
  • Real geographic coordinates for all 13 countries

โšก What-If Scenario Simulator

Model disruption impact before it happens.

  • 5 toggleable disruption scenarios (Singapore port closure, Japan tariff, Bangladesh export ban, etc.)
  • Duration multiplier slider (0.5xโ€“3x)
  • Safety stock buffer slider (0โ€“60 days)
  • Live computed outputs: total financial exposure, SKUs at risk, inventory runout projection
  • Real-time Chart.js bar chart showing exposure breakdown per scenario

๐Ÿ”” Notification / Alert Drawer

  • Bell icon with live unread count badge
  • Slide-in panel with 10 pre-populated alerts (Critical, Agent Actions, Approvals)
  • Filter by category, click to mark read, Mark All Read

๐Ÿ” Global Search

  • Live dropdown searching 24 indexed items
  • Searches suppliers, active risks, SKUs, and pages
  • Keyword matching (search "karachi", "bosphorus", "hormuz" โ€” finds the right supplier)
  • Keyboard navigation (โ†‘โ†“ Enter Esc), highlighted match text

๐Ÿข Supplier Intelligence Hub

  • Full table of all 13 suppliers with search + risk-level filters
  • Click any row โ†’ animated detail panel with:
    • Risk score gauge (Chart.js doughnut)
    • 7-day risk trend chart (Chart.js line)
    • Risk factors with color-coded indicators
    • Certification expiry status
  • AI Analysis button โ€” real GPT-4o-mini powered risk brief with typewriter effect

๐Ÿค– Agent Console

Your AI procurement analyst, available 24/7.

  • Sentinel Agent scans any of 13 suppliers
  • Quick Scan (30-day) or Deep Scan (90-day) modes
  • 6-step animated progress with real-time status
  • Returns: risk score, confidence %, 3 risk drivers, intelligence summary, recommended action
  • 13 unique supplier-specific fallback profiles (works without backend)
  • Session audit log

๐Ÿ“‹ Disruption Playbook

From crisis detection to mitigation in one click.

  • Active disruption alert with pulsing animation
  • 6-milestone disruption timeline (Day 0 to Day 18) with urgency color coding
  • 3 alternative supplier cards with risk score bars, cost premiums, net savings
  • Cost vs Risk comparison chart (Chart.js) โ€” updates live as you switch selections
  • ROI calculation per mitigation option (e.g. "11.5x return on mitigation cost")
  • Pre-activation outcome panel showing exact financial impact
  • 5-step autonomous playbook execution animation with PO reference numbers and audit trail

๐Ÿ’ฌ Procurement Chat

Ask your supply chain anything in plain English.

  • Natural language interface โ€” no backend required for core functionality
  • Local intelligence engine with 13-supplier knowledge base
  • 10+ query categories: risk, inventory, spend, certifications, delivery, geography, actions
  • Responses include formatted tables, metric cards, risk badges, and direct action links
  • Suggestion chips, follow-up chips, recent topics sidebar

๐Ÿ“Š Risk Timeline / Gantt View

See when disruptions collide.

  • 14 risk events plotted across all suppliers
  • 4 zoom levels: 30 / 60 / 90 / 180 days
  • Automatic conflict detection โ€” finds overlapping high/critical risk windows
  • Filter by All / Critical / High / Medium / Low / Conflicts only
  • Hover tooltips, click-to-select detail panel
  • Conflict analysis panel listing simultaneous risks with combined exposure

๐Ÿ” Authentication System

  • Login with email/password validation and error handling
  • Register with live password strength meter (4 criteria, animated)
  • Role-based accounts (Administrator, Analyst, Procurement Manager, etc.)
  • "Keep me signed in" (localStorage) vs session-only (sessionStorage)
  • Synchronous auth guard โ€” zero page flash before redirect
  • User avatar with initials, role badge, dropdown with sign out

๐Ÿ’ก What Makes SENTRA AI Unique

1. Zero-Backend Demo That Feels Real

Every AI feature has an intelligent local fallback. Each supplier has a unique risk profile baked in โ€” so Pacific Freight Co always returns a Singapore port congestion scan, SwissPharm AG returns low-risk Swiss compliance data. Not generic placeholders. Real supply chain intelligence.

2. Conflict Detection on the Timeline

No supply chain tool shows you when two disruptions overlap. SENTRA automatically identifies when Pakistan and Singapore both hit high-risk windows simultaneously โ€” because that's when procurement capacity gets strained and costs compound.

3. Autonomous Playbook Execution

The playbook doesn't just show information. It executes: routes POs, places emergency reorders, sends notifications, sets monitoring intervals โ€” all with reference numbers and an audit trail. One click replaces 4 hours of crisis management.

4. Natural Language Procurement Intelligence

Type "what should I do first?" and get a prioritised 7-item action list with exact dollar values. Type "tell me about Pakistan" and get the full KarachiTex Mills risk profile with risk factors, certifications, and recommended actions.

5. 13-Country Geographic Coverage

Most supply chain demos show 3-5 suppliers. SENTRA covers Singapore, Japan, Pakistan, Bangladesh, China, India, Tรผrkiye, Mexico, Germany, UAE, USA, Monaco, Switzerland โ€” with real geopolitical and macroeconomic narratives for each.

6. Production-Quality Auth on Pure Frontend

Full login/register flow, password strength validation, session management, per-page auth guard, role-based user profiles โ€” all without a database. Built entirely on browser storage, production-ready for demos.


๐Ÿ’ผ Business Plan & Market Opportunity

The Problem

  • Global supply chain disruptions cost businesses $184B annually
  • 73% of procurement teams still use spreadsheets and email for risk management
  • Average time to detect a supply chain risk: 73 days
  • Average time SENTRA detects it: Real-time

Target Market

Segment Size Pain Point
Enterprise Manufacturing $2.1T market Complex multi-tier supplier networks
Retail & Consumer Goods $1.4T market Seasonal demand + global sourcing
Pharmaceutical $890B market Regulatory compliance + quality risk
Automotive $2.8T market Just-in-time supply chain vulnerability

Total Addressable Market: $8.2B (Supply Chain Risk Management Software)

Revenue Model

Tier Price Included
Starter $499/month Up to 25 suppliers, basic AI scanning
Professional $1,999/month Up to 100 suppliers, full playbook automation
Enterprise Custom Unlimited suppliers, custom integrations, dedicated support

Go-to-Market Strategy

  1. Hackathon โ†’ Pilot โ€” convert hackathon exposure into 3-5 beta customers
  2. Industry Events โ€” Supply Chain conferences, Procurement summits
  3. Partner Channel โ€” ERP integrations (SAP, Oracle, NetSuite)
  4. Content Marketing โ€” Weekly supply chain risk reports (free tier lead generation)

Competitive Advantage

Feature SENTRA AI Resilinc Riskmethods Coupa
AI-generated playbooks โœ… โŒ โŒ โŒ
Natural language queries โœ… โŒ โŒ โŒ
Zero-backend demo mode โœ… โŒ โŒ โŒ
Conflict detection timeline โœ… โŒ โŒ โŒ
Deploy in 30 seconds โœ… โŒ โŒ โŒ

3-Year Vision

  • Year 1: Launch SaaS product, acquire 50 paying customers, $600K ARR
  • Year 2: Enterprise integrations (SAP, Oracle), 200 customers, $3.2M ARR
  • Year 3: Expand to Tier-2 supplier monitoring, predictive procurement AI, $12M ARR

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Frontend HTML5 + Alpine.js + Tailwind CSS (CDN)
Charts Chart.js
Icons Lucide Icons
Backend Python FastAPI + Uvicorn
AI Provider OpenAI GPT-4o-mini (auto-detects Anthropic/Grok too)
Auth localStorage / sessionStorage (client-side)
Deployment Render (Static Site + Web Service)
Version Control GitHub

๐Ÿ—‚๏ธ Project Structure

sentra-ai/
โ”œโ”€โ”€ ๐Ÿ“„ index.html          โ†’ Command Center (main dashboard)
โ”œโ”€โ”€ ๐Ÿ“„ suppliers.html      โ†’ Supplier Intelligence Hub
โ”œโ”€โ”€ ๐Ÿ“„ agent.html          โ†’ Agent Console (Sentinel AI scanner)
โ”œโ”€โ”€ ๐Ÿ“„ playbook.html       โ†’ Disruption Playbook & Crisis Response
โ”œโ”€โ”€ ๐Ÿ“„ chat.html           โ†’ Procurement Chat (NLP interface)
โ”œโ”€โ”€ ๐Ÿ“„ timeline.html       โ†’ Risk Timeline (Gantt view)
โ”œโ”€โ”€ ๐Ÿ“„ login.html          โ†’ Authentication
โ”œโ”€โ”€ ๐Ÿ“„ register.html       โ†’ Account Creation
โ”œโ”€โ”€ ๐Ÿ“„ auth.js             โ†’ Session guard (runs before Alpine)
โ”œโ”€โ”€ ๐Ÿ“ data/
โ”‚   โ”œโ”€โ”€ suppliers.json     โ†’ 13 supplier records with full profiles
โ”‚   โ”œโ”€โ”€ agents.json        โ†’ AI agent activity feed
โ”‚   โ””โ”€โ”€ risks.json         โ†’ Risk event data
โ””โ”€โ”€ ๐Ÿ“ backend/
    โ”œโ”€โ”€ main.py            โ†’ FastAPI app (3 endpoints)
    โ”œโ”€โ”€ requirements.txt   โ†’ Python dependencies
    โ””โ”€โ”€ .env.example       โ†’ Environment variable template

๐ŸŒ Suppliers Monitored

Flag Supplier Country Category Risk Level
๐Ÿ‡ธ๐Ÿ‡ฌ Pacific Freight Co Singapore Logistics ๐Ÿ”ด Critical (77)
๐Ÿ‡ฏ๐Ÿ‡ต Fujikura Corp Japan Electronics ๐Ÿ”ด Critical (71)
๐Ÿ‡ต๐Ÿ‡ฐ KarachiTex Mills Pakistan Textiles ๐Ÿ”ด High (68)
๐Ÿ‡ง๐Ÿ‡ฉ GlobalTex Ltd Bangladesh Textiles ๐ŸŸก High (64)
๐Ÿ‡จ๐Ÿ‡ณ PolyPak Industries China Packaging ๐ŸŸก Medium (58)
๐Ÿ‡ฎ๐Ÿ‡ณ NovaCast Foundry India Castings ๐ŸŸก Medium (55)
๐Ÿ‡น๐Ÿ‡ท Istanbul Steel Works Tรผrkiye Raw Materials ๐ŸŸก Medium (52)
๐Ÿ‡ฒ๐Ÿ‡ฝ Apex Fasteners Mexico Components ๐ŸŸก Medium (44)
๐Ÿ‡ฉ๐Ÿ‡ช ChemSource GmbH Germany Chemicals ๐ŸŸข Low (31)
๐Ÿ‡ฆ๐Ÿ‡ช Gulf Logistics FZE UAE Logistics ๐ŸŸข Low (29)
๐Ÿ‡บ๐Ÿ‡ธ Metro Metals Inc USA Raw Materials ๐ŸŸข Low (23)
๐Ÿ‡ฒ๐Ÿ‡จ Monaco Precision Parts Monaco Components ๐ŸŸข Low (18)
๐Ÿ‡จ๐Ÿ‡ญ SwissPharm AG Switzerland Chemicals ๐ŸŸข Low (15)

๐Ÿš€ Getting Started

Option 1 โ€” Open directly (no setup needed)

# macOS โ€” just double-click index.html or:
open login.html

All features work via intelligent local fallbacks. No internet required.

Option 2 โ€” Local HTTP server (recommended)

cd sentra-ai
python3 -m http.server 3000
# Open: http://localhost:3000/login.html

Option 3 โ€” With real AI backend

cd backend
pip install -r requirements.txt

# Create .env file:
echo "OPENAI_API_KEY=sk-..." > .env

# Start backend:
uvicorn main:app --reload --port 8000

# Then open the frontend in your browser

๐Ÿ—๏ธ API Endpoints

Method Endpoint Description
GET /api/health Health check + AI provider status
POST /api/agent-scan Run Sentinel Agent risk scan on any supplier
POST /api/supplier-summary Generate 3-sentence AI risk brief for a supplier

Example: Agent Scan

curl -X POST https://sentra-ai-hy43.onrender.com/api/agent-scan \
  -H "Content-Type: application/json" \
  -d '{"supplier": "Pacific Freight Co", "scan_depth": "deep"}'

๐Ÿ‘ฅ Team

Rumaisa Fatima
Lead Developer & Product Designer
M. Maaz Khan
Backend Engineer & AI Integration
Laiba Kashif
Frontend Developer & UX Design

๐Ÿ† Hackathon Context

SENTRA AI was conceived, designed, and built as a hackathon project โ€” demonstrating what a small, focused team can ship in a compressed timeline when AI tools are used effectively.

What we built in the hackathon:

  • 8 fully functional HTML pages with complex Alpine.js state
  • 13-supplier intelligence knowledge base
  • Real AI integration (GPT-4o-mini via FastAPI)
  • Full authentication system
  • Production deployment on Render
  • 60+ interactive components across all pages

The goal: Show that an AI-first supply chain platform doesn't require a 50-person engineering team and 18 months to build. With the right tools and architecture, a small team can ship something genuinely impressive.


๐Ÿ“‹ Roadmap

  • Real-time supplier news feed integration (NewsAPI)
  • Email/Slack alert notifications for risk escalations
  • CSV/PDF export for supplier scorecards
  • Multi-company tenant support
  • Mobile-responsive layout
  • Tier-2 supplier mapping (suppliers' suppliers)
  • Historical risk trend analytics (12-month view)
  • Integration with SAP Ariba / Oracle Procurement

๐Ÿ“„ License

MIT License โ€” free to use, modify, and distribute.


Built with โค๏ธ by Team SENTRA ยท Hackathon 2026

"Don't just monitor your supply chain โ€” command it."

Live Demo

About

AI-powered emergency response platform that uses voice input, multilingual processing, and intelligent agent routing to connect users with the right emergency services in real time. Built during a hackathon.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages