Skip to content

Raphasha27/SupportHive-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

48 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

EventHive-C πŸŽͺ β€” Event Command Center

High-performance, real-time event operations engine built in C.
Designed for event planners, venue hosts, and coordinators who need instant task orchestration and escalation monitoring without the overhead.

🌐 Live Demo: raphasha27.github.io/SupportHive-C ← deployed free on GitHub Pages


🎯 Purpose

EventHive-C is a zero-noise, local-first backend that manages event tasks and real-time incident escalations. When you're running a gala, conference, or venue β€” things move fast. This engine keeps order.

Feature Description
⚑ Real-time task tracking Dispatch tasks instantly with priority levels
πŸ”΄ Automatic escalation P1 tasks auto-escalate in 5s, P2 in 15s
πŸ§‘β€πŸ€β€πŸ§‘ Multi-tenant isolation Run multiple events simultaneously, no data bleed
πŸ“± Mobile-ready Works on phones via local Wi-Fi β€” no app needed
πŸ”’ Zero billing noise No cloud CI/CD, all local β€” no surprise charges

πŸ—οΈ Architecture

graph TD
    subgraph Client Layer
        Mobile["πŸ“± Mobile (Android/iOS)"]
        Web["🌐 Web Dashboard"]
        CLI["⌨️ CLI / curl"]
    end

    subgraph Core Engine ["βš™οΈ Core Engine (C / libuv)"]
        Parser["http-parser"]
        JSON["cJSON Logic"]
        SLA["SLA / Escalation Engine"]
    end

    subgraph Persistence Layer
        DB[("SQLite3 β€” Multi-Tenant")]
    end

    Mobile --> Parser
    Web --> Parser
    CLI --> Parser
    Parser <--> JSON
    JSON <--> SLA
    SLA <--> DB
Loading
  • Event Loop: libuv (same engine powering Node.js)
  • HTTP Engine: Zero-copy parsing via http-parser
  • Concurrency: Fully event-driven β€” no thread-switching latency
  • SLA Engine: High-precision uv_timer_t timers mapped to task priorities
  • Persistence: Multi-tenant scoped SQLite3 β€” no cross-event data leakage

⏱️ Task Priority & Escalation Logic

P1 (Urgent)   ──► SLA breach in  5s ──► πŸ”΄ Incident Escalated immediately
P2 (High)     ──► SLA breach in 15s ──► 🟑 Management notified
P3 (Standard) ──► SLA breach in 60s ──► 🟒 Standard monitoring

πŸ› οΈ Build & Run

Prerequisites: GCC, CMake, libuv, cJSON, SQLite3 (portable toolchain included in ./tools)

Build

./build_portable.ps1

Run the Engine

./build/eventhive.exe
# Server starts at http://localhost:7000

Open the Dashboard

Open dashboard/index.html in your browser β€” or on mobile via:

http://<YOUR_LOCAL_IP>:7000/dashboard

πŸ“± Multi-Service Mobile Architecture

EventHive-C features a fully integrated multi-service architecture supporting native client apps on both the Android (Google Play Store) and Apple (iOS App Store) platforms.

During development and local events:

  1. Ensure your mobile device is on the same Wi-Fi as your server
  2. Open your mobile browser or native app
  3. Navigate to: http://<YOUR_LOCAL_IP>:7000/dashboard

πŸ“Š Live Dashboard β€” Visual Showcase

The dashboard UI (dashboard/index.html) is a fully self-contained, zero-dependency HTML file:

  • Event ID input β€” switch between events instantly
  • Active Tasks counter β€” live task count
  • Critical Incidents counter β€” escalations shown in red
  • Task Dispatch form β€” type a task, choose priority, hit Dispatch
  • Live Orchestration Feed β€” scrollable task list with real-time status

🎬 Interactive Demo

EventHive-C Demo β€” Task Dispatch & Escalation

Watch: A P1 task is dispatched β†’ appears in the live feed β†’ automatically escalates to ⚠️ INCIDENT ESCALATED within 5 seconds. No server required β€” the dashboard works in offline demo mode out of the box.


πŸ§ͺ API Quick Reference

Dispatch a Task

curl -X POST http://localhost:7000/tickets \
     -H "X-Tenant-ID: event-gala-2026" \
     -H "Content-Type: application/json" \
     -d '{"title": "VIP Seating Adjustment", "priority": "P1"}'

Monitor Live Stats

curl -H "X-Tenant-ID: event-gala-2026" http://localhost:7000/stats

List All Active Tasks

curl -H "X-Tenant-ID: event-gala-2026" http://localhost:7000/tickets

πŸ”’ Security & Compliance

Check Status
No hardcoded IPs βœ… Removed β€” all replaced with <YOUR_LOCAL_IP>
No secrets in code βœ… Scanned and clear
Zero CI/CD billing noise βœ… No cloud workflows β€” local-first only
POPIA / GDPR compliance βœ… No PII persisted β€” zero-persistence policy
Mobile access secured βœ… Local Wi-Fi only during development

Code scan: Run the security audit script before deployment:

python3 scripts/local_security_audit.py

πŸ“¦ Pre-Deployment Checklist

  • Build passes: ./build_portable.ps1
  • Engine runs locally: ./build/eventhive.exe
  • Dashboard loads on desktop and mobile
  • All event tenants tested via API
  • Security audit script passes clean
  • No active feature branches β€” main only

Built by Kirov Dynamics Technology β€” engineered for environments where performance and reliability are the only metrics that matter.

About

Mission-critical, event-driven multi-tenant support & SLA engine built in pure, high-performance C.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors