Restoring Trust in the Makan Bergizi Gratis (MBG) Program > Unified Food Safety Governance, AI Intelligence & Immutable Accountability
In 2025, Indonesia's historic Makan Bergizi Gratis (MBG) program—aiming to feed 83 million beneficiaries—faced a critical operational challenge. Fragmented oversight of hyper-local vendors (UMKM) led to significant food safety blind spots.
SafeServe is a centralized, AI-powered food safety intelligence platform designed to replace reactive damage control with proactive detection and immutable governance.
SafeServe creates a "Trust-Loop" between Schools, Vendors, and the Government (BGN/BPOM):
- Outbreak Simulation Mode: A "War Room" interface to trigger and manage regional response readiness.
- AI Explainability: Deep "Reasoning Chains" that explain why a vendor is flagged as high-risk using Gemini 2.0/3.1 Reasoning.
- Regional Pulse: Live geographical risk heatmaps enriched by Google Search Grounding to monitor local news & outbreaks.
- Multimodal Hygiene Audit: AI vision analysis of preparation areas to ensure BPOM compliance.
- Advanced Traceability: Searchable, blockchain-verified inventory ledger for raw ingredients.
- IoT Cold-Chain: Real-time telemetry monitoring for refrigeration stability with automated alerts.
- SOS Emergency Reporting: Instant symptom-cluster reporting with AI-driven severity triage (1-10 index).
- Nutrition Compliance: Real-time menu analysis ensuring caloric and micronutrient targets are met.
- Vendor Dossier: One-click transparency into an assigned vendor's safety grade and audit history.
SafeServe leverages the cutting edge of Generative AI to ensure national safety:
- Reasoning Models: Utilizes
gemini-2.0-flash-thinkingfor complex risk triage and evidence synthesis. - Search Grounding: Injecting real-world news and regional stability data via the
googleSearchtool. - Structured Intelligence: Rigid
responseSchemaimplementation for deterministic JSON data flows. - Resilient Engineering: Built-in Circuit Breaker and Exponential Backoff logic for 99.9% API uptime.
| Layer | Technology | Role |
|---|---|---|
| Frontend | React 19 + TypeScript | Mission-critical, type-safe UI |
| AI Engine | Gemini 2.0/3.1 (Flash & Pro) | Triage, Vision, and Grounding |
| Data Viz | Recharts | Real-time telemetry & benchmarking |
| Styling | Tailwind CSS 4 | High-density dashboard design system |
| Environment | Vercel Edge Runtime | Global low-latency deployment |
- Security Vault: Layered defense including MFA and AES-256 session encryption.
- Root Key Rotation: Administrative ability to rotate digital signatures for the national ledger.
- Deep Cluster Scans: Automated integrity checks for node synchronization across regional hubs.
- Clone the repo:
git clone https://github.com/mrbrightsides/safeserve.git - Install dependencies:
npm install - Set your Env: Create
.env.localwithVITE_GEMINI_API_KEY - Run:
npm run dev
Built for the better Indonesia. Empowering the nation through safety.