Skip to content

ApxllxCartxr/SimhaLink

Repository files navigation

πŸ›°οΈ SimhaLink -TH11990

SimhaLink Banner

Flutter Dart Firebase Release License

πŸ“¦ Download: Latest APK (Google Drive) Β· Or visit the Releases tab for versioned builds.

Intelligent Crowd Safety, Coordination & Ritual Experience Infrastructure

Mission: Make large-scale spiritual, cultural, and civic gatherings safer, more inclusive, and data-informed β€” without sacrificing tradition.


🧭 Problem Landscape

Mass gatherings (pilgrimages, fairs, festivals, civic events) face recurring challenges:

Challenge Real-World Impact
Overcrowding & congestion Stampede risk, lost time, reduced participant comfort
Fragmented communication Delayed emergency response & misinformation
Limited situational awareness Organizers lack real-time density & risk visibility
Accessibility gaps Elderly & differently-abled attendees lack timely assistance
Manual alert escalation Slower triage of medical & safety incidents
Post-event blind spots Minimal data retained for planning & policy

SimhaLink addresses these pain points by fusing real-time geospatial data, role-aware workflows, and proactive alerting into a single Android-first platform.


πŸ’‘ Solution Overview

SimhaLink is a Flutter + Firebase powered crowd intelligence and coordination platform featuring:

  • πŸ” Live, layered maps (medical, water, accessibility, historic, emergency zones)
  • πŸ‘₯ Role-bound interfaces (Participants, Volunteers, Organizers, VIPs) with scoped permissions
  • 🚨 Structured alert & escalation funnel (report β†’ verify β†’ dispatch β†’ resolve β†’ archive)
  • πŸ’¬ Context-rich group & targeted messaging (role, zone, incident-linked)
  • πŸ”” Push notifications & event-driven routing (Firebase Cloud Messaging)
  • πŸ›°οΈ Modular architecture prepared for future AI & IoT ingestion (density, sensors, drones)

Designed to scale from a localized gathering to multi-venue pilgrimages with hundreds of thousands of participants.

πŸ“± Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4
Screenshot 6 Screenshot 7 Screenshot 8 Screenshot 9

Note: Screens represent in-development UI; flows and visuals may evolve.


πŸ”‘ Core Feature Set

Pillar Features Impact
Situational Awareness Multi-layer map, dynamic markers, role-specific overlays Faster decision cycles
Safety & Response Alert categorization (medical, crowd, infrastructure), resolution tracking Reduced response latency
Communication Group chat, broadcast messaging, role & location scoping Cuts noise, raises clarity
Inclusivity Accessibility markers (ramps, assistance points, water) Improved attendee well-being
Governance Audit-friendly event logs, structured incident lifecycle Traceability & accountability
Extensibility Modular services & managers, pluggable data providers Low friction future integrations

πŸ‘₯ Role Flow Snapshot

  1. Participant: Reports hazard or requests assistance β†’ auto-tagged with location & type.
  2. Volunteer: Receives filtered tasks β†’ acknowledges β†’ updates status.
  3. Organizer: Monitors macro view (density hotspots, open incidents) β†’ reallocates resources.
  4. VIP: Access to curated itinerary & safe routing overlays.

πŸ—οΈ Architecture & Scalability

Layer Responsibility Current Backing
UI (Flutter) Reactive role-based widgets Modular screens & widgets
Managers Map, auth, alerts, messaging orchestration Service abstractions
Services Auth, Firestore CRUD, notifications Firebase Auth, Firestore, FCM
Data Models Marker, Alert, Role, Message lib/models/
Config Environment, theming, map config lib/config/

Horizontal Scaling Path:

  1. Phase 1 (Now): Firebase realtime + Firestore partitioned collections.
  2. Phase 2: Add Cloud Functions for rule-based auto-escalation & analytics aggregation.
  3. Phase 3: Introduce streaming pipeline (Pub/Sub or WebSockets) for density heatmaps.
  4. Phase 4: Optional migration adapter to FastAPI microservices (preserved via service abstraction layer).

Performance & Reliability Considerations:

  • Batched Firestore writes for bulk marker ingestion.
  • Indexed queries (geo-hash or bounding-box ready extension).
  • Offline-first caching (planned) to maintain minimal map & alert interaction during outages.

πŸ”’ Data Stewardship & Safety Model

  • Principle of Least Privilege: Role gates enforced at UI & Firestore security rules.
  • Incident Lifecycle: open β†’ assigned β†’ in-progress β†’ resolved β†’ archived.
  • Messaging Separation: Operational (alerts) vs conversational (group chat) channels.
  • PII Avoidance: Only minimal identity data retained client-side; extensible for anonymization.

🌍 Societal Impact Dimensions

Dimension Effect
Public Safety Shorter alert-to-action windows reduce escalation risk
Health Outcomes Faster volunteer dispatch improves triage success
Inclusivity Improves navigation for differently-abled & vulnerable groups
Sustainability Data-driven flow optimization lowers infrastructure stress
Policy & Planning Post-event analytics inform zoning & resource planning
Cultural Continuity Supports safer large-scale heritage gatherings

πŸš€ Roadmap (Condensed Evolution Path)

Stage Focus Highlights
1. Safety Core Stability & alerts Offline cache, multi-language UI
2. Analytics Predictive awareness Density heatmaps, flow prediction
3. Automation Smart orchestration IoT ingest, auto-dispatch rules
4. Expansion Ecosystem Web organizer console, REST/GraphQL API
5. Immersive Layer AR & XR AR wayfinding, digital twin overlays

Detailed legacy roadmap items (audio streaming, drone integration, blockchain logging, wearable signals, etc.) remain aligned with these stages.


πŸ§ͺ Development Quick Start

Prerequisites

  • Flutter (stable channel)
  • Android SDK (API level per compileSdk in Gradle)
  • Java 11+
  • Firebase project w/ Auth, Firestore, Messaging enabled

Setup

flutter pub get

Ensure Firebase configuration:

  • android/app/google-services.json present
  • lib/firebase_options.dart matches your Firebase project (regenerate via flutterfire configure if needed)

Run (emulator or device):

flutter run

Release build:

flutter build apk --release

Tests

Add tests under test/ then run:

flutter test

πŸ“‚ Key Directory Map

Path Purpose
lib/main.dart App entry point bootstrap
lib/config/ Global theming, env, map config
lib/screens/ Role & feature UI flows
lib/services/ Firebase + future backend abstractions
lib/models/ Core data entities
assets/ Static assets & fonts
test/ Automated tests

Refactoring outcomes: reduced monolith size, higher cohesion, clear separation between UI, orchestration (managers), and integration layers.


🧩 Extensibility Strategy

  • Service Layer: Swap Firebase with FastAPI (REST) by implementing adapter classes only.
  • Map Engine: Prepared for vendor swap (Google Maps β†’ MapLibre) via abstraction wrapper.
  • Analytics: Hook density calculation pipeline w/out rewriting UI (stream adapter pattern).

🀝 Contributing

  1. Fork & branch (feat/<name>)
  2. Implement & add focused tests
  3. Run lints/tests locally
  4. Open PR with: scope, rationale, screenshots (UI) or diagrams (architecture)

Coding principles:

  • Single responsibility per file
  • Declarative UI (prefer stateless where feasible)
  • Explicit enums for roles & alert types
  • Avoid premature optimization; document extension points

🧾 License

See LICENSE file for usage & redistribution terms.


πŸ“‘ Future Integration Targets (Aspirational)

  • Sensor fusion (BLE crowd tags, environmental air quality)
  • Drone telemetry ingestion (geo-tagged observation events)
  • Wearable pulse/heat stress early warning (opt-in privacy layer)
  • AR corridor & evacuation overlays

✨ Why SimhaLink Matters

Because safer, more organized mass gatherings protect lives, preserve cultural heritage, and unlock data that drives smarter urban & event planning β€” all while keeping the participant experience dignified and inclusive.

"Operational clarity is the difference between managed flow and unmanaged risk."


πŸ“¬ Contact / Maintainers

Refer to repository metadata & commit history for active maintainers. Proposal & integration discussions welcome via issues.


βœ… Quick Recap

SimhaLink delivers: real-time oversight, structured safety response, role-aware communication, scalable architecture, and a forward path toward predictive and sensor-enhanced crowd intelligence.


Built with ❀️ in Flutter β€” engineered for real-world impact.

About

TH11990 - SimhaLink, a Smart Mobility & Access Management Solution for Simhastha 2028.

Topics

Resources

License

Stars

Watchers

Forks

Contributors