Phantoms PlatformHuman Safety Operating System

Offline-First AI Infrastructure

RAFIQ

Edge Intelligence Platform/Safety Automation Core/Local AI OS

RAFIQ is an offline-first AI infrastructure platform for human safety: a MiniPC core, wearable telemetry, RAQEEB hardware protection, smart home automation, local AI reasoning, and optional cloud sync working as one resilient system.

Edge
Primary compute
Local
Safety decisions
Cloud
Optional sync
RAFIQ
Local Safety OS
Wearable
BLE vitals
RAQEEB
Gas response
Home
Automation
Cloud
Best-effort sync
AI Core
Local models
App + GUI
Human interface

What is RAFIQ

Capability architecture for an AI operating system.

RAFIQ is not a list of features. It is a set of coordinated infrastructure capabilities: intelligence, access, interface, backend, local core, independent safety, and home automation working as one system.

Adaptive

Decision layer

RAFIQ AI

AI intelligence, routing, risk reasoning, and response generation.

MedGemma / Qwen / Cloud
AI routerclassificationmemory
Realtime

Cross-device access

RAFIQ App

Realtime control surface for family, alerts, cloud state, and sync.

WebSocket / APIs
alertswatchautomation
Present

Emotional interface

RAFIQ GUI

Avatar, voice output, system state, and human-readable feedback.

Avatar / Voice
emotionTTSfeedback
Routed

API orchestration

RAFIQ Backend

FastAPI, event contracts, device routing, and sync boundaries.

REST / WS / MQTT
APIseventssync
Local-first

Offline infrastructure

RAFIQ Core

MiniPC runtime, Ubuntu services, event engine, and local failover.

MiniPC / Ubuntu
event engineMQTTSQLite
Autonomous

Independent safety

RAQEEB

ESP32 emergency system for gas, valves, windows, siren, and alerts.

Works without core
gas logicvalvessiren
Connected

Home + sensors

Smart Infrastructure

Automation mesh for devices, routines, environmental state, and safety.

HA / Zigbee / MQTT
lightsACvalves

Platform Layers

The system is organized like infrastructure.

Each layer has a clear job. Safety stays local, AI reasons at the edge, data writes first to the machine in the home, and the cloud becomes a continuity layer instead of a dependency.

[SYSTEM_INSPECTION_HUD]

AI Layer

Operational Status
Inference Ingest|Ollama MedGemma v2
Description

Local LLM routing, anomaly interpretation, voice command understanding, and patient-aware clinical reasoning.

Telemetry Diagnostics
>Model: MedGemma
>Ctx: 8k Tokens
>Latency: 142ms
Internal Routing Path
[IN_INGEST]->INFERENCE->[OS_DISPATCH]
OS Stack Layers List

RAFIQ Ecosystem

A connected topology, not a decorative diagram.

Sensor traffic enters through edge devices and MQTT, reaches the local core, then routes into AI, voice, GUI, automation, sync, cloud, app, and RAQEEB safety paths with clear ownership.

[SYSTEM_COMPOSTIONS_DESTRUCT_GRID]ACTIVE_COMPOSITION: FULL_ISOLATION
Active node / local

RAFIQ Core

The local operating core persists, routes, classifies, syncs, and dispatches actions.

Routing visible

System Preview Grid

AI Module Mission Control

The root page now introduces the platform. From here, every card opens a dedicated system page with the deeper technical surface.

RAFIQ platform

Enter the infrastructure behind offline human safety.

Continue into the architecture, inspect the core services, or open the emulator when you want the dedicated live simulation surface.