SynapDrive-AI is a simulation-first reference pipeline for intent → context → safety gate → actuation, built to be runnable without hardware.
No medical/clinical claims. Optional integrations (BrainFlow / LSL) are supported, but not installed by default.
A clean, reproducible scaffold for teams that need:
- Safe-by-default gating (block unknown/low-confidence intents)
- Stable telemetry contracts (dashboards/tests don’t break on schema drift)
- Record/replay (JSONL) for reproducible validation and regression checks
- Run an end-to-end loop from text or simulated signals
- Record runs to JSONL and replay deterministically
- Use a local Flask dashboard to trigger actions and inspect telemetry
- Plug in optional BrainFlow or LSL (pylsl) intent sources
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtpython -m synapdrive_ai --text "move left" --image road --no-delay
python -m synapdrive_ai --text "stop" --image hazard --no-delaypython -m synapdrive_ai --signal walk --count 3 --interval 1 --no-delaypip install -r requirements-dev.txt
pytest -qpython -m synapdrive_ai --text "move left" --image road --record runs.jsonl --no-delay
python -m synapdrive_ai --replay runs.jsonlpython -m synapdrive_ai.interface.web_dashboardOpen: http://127.0.0.1:5055
pip install -r requirements-brainflow.txt
python -m synapdrive_ai --brainflow --bf-board-id 0 --bf-seconds 2 --no-delaypip install -r requirements-lsl.txt
python -m synapdrive_ai --lsl --lsl-type EEG --lsl-seconds 2 --no-delaysynapdrive_ai/pipeline.py— canonical wiring (intent → optimize → safety → route → evaluate)synapdrive_ai/safety/safety_guard.py— conservative gating rulessynapdrive_ai/control/actuation_engine.py— simulated actuation + telemetry schemasynapdrive_ai/replay/recording.py— JSONL record/replaysynapdrive_ai/interface/web_dashboard.py— Flask UI + APIsynapdrive_ai/tests/— contract tests + dashboard API tests
Apache-2.0 (see LICENSE)