Skip to content

Building heart-driven intelligence in public. This repo is the open-source MVP for Synheart: SDKs, example apps, and docs to connect wearable biosignals to emotion-aware AI.

License

Notifications You must be signed in to change notification settings

synheart-ai/synheart-open-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Synheart β€” Open MVP (v0.1)

Building heart-driven intelligence in public. This repo is the open-source MVP for Synheart: SDKs, example apps, and docs to connect wearable biosignals to emotion-aware AI.


πŸ” What’s Open and What’s Not

βœ… Open-Source Components

These parts of Synheart are released publicly to accelerate research and collaboration:

  1. SDKs (Python + JS) β€” lightweight clients for collecting or simulating biosignals and performing mock emotional inference.
  2. API Service (FastAPI) β€” a simple reference implementation of how apps can send biosignal data and receive emotion states.
  3. Example UI (React + Vite) β€” a demo visualization that turns heart rate data into color-coded emotional feedback.
  4. Schema & Documentation β€” open definitions for signals, states, and feature mappings to standardize affective computing development.

πŸ”’ Private Components (Not Open Yet)

To protect privacy, intellectual property, and user safety, the following remain internal to Synheart:

  • Real biosignal datasets collected from wearables.
  • Fine-tuned models and internal inference engine.
  • Production infrastructure and pipelines.
  • Proprietary emotion-mapping algorithms.

🧭 Philosophy

Synheart believes emotional intelligence in AI should be transparent, ethical, and co-created. By open-sourcing the foundational frameworkβ€”but keeping sensitive data closedβ€”we invite the world to help define the language between the human heart and artificial intelligence.

🌍 Synheart Atlas

For comprehensive documentation, project updates, and research insights, visit our public knowledge base:

πŸ”— Synheart Atlas

The Atlas contains product briefs, research papers, technical architecture docs, and partnership updates.


πŸš€ Quick Start

Python SDK

cd sdk/python
pip install -e .
python examples/quickstart.py

JavaScript SDK

cd sdk/js
npm install
npm run build
node examples/quickstart.mjs

API Service

cd services/api
pip install -e .
uvicorn app.main:app --host 0.0.0.0 --port 8000

Demo App

cd examples/emotion_demo_app
npm install
npm run dev

πŸ“Š Ingestion Schema v0.1.0

The Synheart Open MVP includes a production-ready ingestion schema that standardizes biosignal data collection across all components.

🎯 Supported Signal Types

  • heart_rate (bpm) - 30-220 range validation
  • ibi_ms (inter-beat interval) - 300-3000ms range
  • hrv_rmssd (heart rate variability) - 0-200ms range
  • accelerometer (m/sΒ²) - 3-component vector validation
  • resp_rate (breaths/min) - respiratory rate
  • skin_temp_c (Β°C) - skin temperature

πŸ”’ Privacy-First Design

  • Anonymous subject IDs (anon_xxx pattern)
  • Consent tracking with versioning
  • No PII or GPS data in MVP
  • Pseudonymous data collection

πŸ“‹ Data Formats

  • Batch JSON: Complete session with multiple signal streams
  • JSONL: Row-wise format for streaming/logging
  • CSV: Tabular format for data analysis
  • JSON Schema: Full validation specification

πŸ›‘οΈ Validation Rules

Signal Type Range Unit Status
Heart Rate 30-220 bpm βœ…
IBI 300-3000 ms βœ…
HRV RMSSD 0-200 ms βœ…
Accelerometer 3-component m/sΒ² βœ…
Subject ID anon_[a-zA-Z0-9]+ - βœ…

🎨 Emotion Demo App

The React + Vite demo app demonstrates the "hello world" of heart-driven intelligence:

βœ… Features Verified

  • Heart Rate Visualization: Generates 30 synthetic data points (70-72 bpm)
  • Emotional State Inference: Uses variance-based classification
    • Calm: Variance < 4 (correctly identified)
    • Focused: Variance 4-16 (tested with 11.29)
    • Stressed: Variance > 16 (tested with 146.61)
  • Clean UI: Modern interface with SignalCard component
  • Performance: 46.4 kB gzipped build size

🧠 App Logic

// Generates realistic heart rate data
const windowArr = Array.from({ length: 30 }, (_, i) => ({ 
  t: i, 
  hr: 70 + (i % 3) 
}));

// Calculates emotional state from variance
const variance = windowArr.reduce((a, b) => 
  a + Math.pow((b.hr ?? 0) - mean, 2), 0
) / windowArr.length;
const state = variance < 4 ? "Calm" : 
              variance < 16 ? "Focused" : "Stressed";

πŸ“ Repository Layout

synheart-open-mvp/
β”œβ”€ README.md
β”œβ”€ LICENSE
β”œβ”€ CONTRIBUTING.md
β”œβ”€ CODE_OF_CONDUCT.md
β”œβ”€ ROADMAP.md
β”œβ”€ SECURITY.md
β”œβ”€ .gitignore
β”œβ”€ .editorconfig
β”œβ”€ .github/
β”‚  β”œβ”€ ISSUE_TEMPLATE/
β”‚  β”‚  β”œβ”€ bug_report.md
β”‚  β”‚  └─ feature_request.md
β”‚  └─ PULL_REQUEST_TEMPLATE.md
β”œβ”€ schemas/
β”‚  β”œβ”€ ingest-batch.schema.json
β”‚  β”œβ”€ ingest-batch.sample.json
β”‚  β”œβ”€ ingest.sample.jsonl
β”‚  └─ ingest.sample.csv
β”œβ”€ sdk/
β”‚  β”œβ”€ python/
β”‚  β”‚  β”œβ”€ README.md
β”‚  β”‚  β”œβ”€ pyproject.toml
β”‚  β”‚  β”œβ”€ src/synheart/__init__.py
β”‚  β”‚  β”œβ”€ src/synheart/client.py
β”‚  β”‚  └─ examples/quickstart.py
β”‚  └─ js/
β”‚     β”œβ”€ README.md
β”‚     β”œβ”€ package.json
β”‚     β”œβ”€ tsconfig.json
β”‚     β”œβ”€ src/index.ts
β”‚     └─ examples/quickstart.mjs
β”œβ”€ services/
β”‚  └─ api/
β”‚     β”œβ”€ README.md
β”‚     β”œβ”€ pyproject.toml
β”‚     β”œβ”€ app/main.py
β”‚     └─ app/schemas.py
β”œβ”€ examples/
β”‚  β”œβ”€ emotion_demo_app/ (React + Vite)
β”‚  β”‚  β”œβ”€ README.md
β”‚  β”‚  β”œβ”€ package.json
β”‚  β”‚  β”œβ”€ tsconfig.json
β”‚  β”‚  β”œβ”€ vite.config.ts
β”‚  β”‚  β”œβ”€ index.html
β”‚  β”‚  β”œβ”€ src/main.tsx
β”‚  β”‚  β”œβ”€ src/App.tsx
β”‚  β”‚  └─ src/components/SignalCard.tsx
β”‚  └─ notebooks/
β”‚     └─ (whatss uppp :)
└─ docs/
   β”œβ”€ overview.md
   β”œβ”€ schema.md
   └─ api.md

πŸš€ Production Ready

The Synheart Open MVP is fully functional with:

  • βœ… Complete ingestion schema v0.1.0 implementation
  • βœ… Robust validation and error handling
  • βœ… Privacy-first design with anonymous data collection
  • βœ… Multiple data format support
  • βœ… Comprehensive documentation and examples
  • βœ… Backward compatibility maintained

All components work together seamlessly, providing a solid foundation for building emotion-aware applications with standardized, validated biosignal data ingestion! πŸŽ‰

πŸ“š Additional Resources

About

Building heart-driven intelligence in public. This repo is the open-source MVP for Synheart: SDKs, example apps, and docs to connect wearable biosignals to emotion-aware AI.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published