Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📱 TensPilot+ Patient App

Companion patient application for the TensPilot+ ecosystem — connecting TENS therapy patients with their healthcare providers

React TypeScript Vite Firebase Tailwind CSS License: All Rights Reserved

🌐 Live Demo · 🩺 Provider Dashboard · 🐛 Report Bug


📖 About the Project

TensPilot+ is a healthcare software ecosystem built to support patients using a TENS (Transcutaneous Electrical Nerve Stimulation) device for pain management.

The ecosystem has two components:

  • 🔧 The TENS Device — a standalone hardware unit (Arduino Uno based, 4 therapy modes) that delivers electrical stimulation therapy
  • 💻 TensPilot+ Software — this companion web application (and the provider dashboard) that helps patients log their sessions, track pain levels, and stay connected with their doctor

The apps and hardware operate independently — TensPilot+ is a companion app, not a direct device interface. Patients use it alongside their TENS therapy to keep records and communicate with their provider.


✨ Features

🩺 Patient Tools

Feature Description
📊 Pain Tracker Log pain levels before and after sessions, visualise trends over time
📈 Health Dashboard Overview of session history, pain relief stats and progress
📋 Session Reports Auto-generated PDF health reports to share with your doctor
💬 AI Health Chat 24/7 AI-powered health assistant (powered by Groq LLM)
🎓 Health Education Curated medical content and therapy guidance
🎮 Gamification Motivational challenges to keep patients engaged with their therapy
⚙️ Session Logging Manual session entry: mode used, intensity, duration, pain scores
🔔 Account Settings Profile management, language preferences and notifications

⚙️ Technical Highlights

Capability Detail
🚀 Performance Vite 5 build system with SWC compiler — sub-second HMR
📱 PWA Full offline support with service workers
🌐 i18n Ready Multi-language support via i18next
🔒 Secure Auth Firebase Authentication with JWT token management
Accessible WCAG-compliant UI built on shadcn/ui + Radix primitives
🎨 Design System Custom TensPilot+ theme with Framer Motion animations

🛠️ Tech Stack

Layer Technology Version
Frontend Framework React + TypeScript 19 / 5.5
Build Tool Vite + SWC 5.x
Styling Tailwind CSS + shadcn/ui 3.x
Animations Framer Motion 12.x
State Management Zustand 5.x
Server State TanStack Query 5.x
Forms React Hook Form + Zod 7.x / 3.x
Backend Firebase Auth + Firestore 12.x
AI / LLM Groq SDK 1.x
PDF Export jsPDF 4.x
Charts Recharts 2.x
Routing React Router v6 6.x
Testing Vitest + React Testing Library 4.x
Code Quality ESLint + Husky + lint-staged
Deployment Vercel

🗺️ Key Routes

Route Page Description
/ Splash Animated entry screen
/login Login Firebase authentication
/dashboard Dashboard Main health overview
/session-setup Session Setup Log a new therapy session
/active-session Active Session Active session tracking
/pain-tracker Pain Tracker Log and visualise pain data
/chat AI Chat Groq-powered health assistant
/report Report PDF health report generation
/education Education Health articles & content
/competition Competition Gamified therapy challenges
/settings Settings Account & preferences

🏗️ Architecture

┌─────────────────────────────────────────────────┐
│          TensPilot+ Patient App                  │
│  React 19 + TypeScript + Vite + Tailwind CSS    │
└──────────────────────┬──────────────────────────┘
                       │
              ┌────────┴────────┐
              │                 │
              ▼                 ▼
   ┌─────────────────┐  ┌───────────────────┐
   │    Firebase      │  │  External APIs    │
   │  Auth + Firestore│  │  Groq (AI chat)   │
   │  (shared with    │  │  Vercel (hosting) │
   │  Provider App)   │  └───────────────────┘
   └────────┬─────────┘
            │ Real-time sync
            ▼
   ┌──────────────────────────────┐
   │   TensPilot+ Provider App   │
   │  (tenspilot-doctors-dashboard)│
   └──────────────────────────────┘

Both apps share the same Firebase backend — patient data entered in the patient app is immediately visible to the doctor in the provider dashboard.


📄 License

© Akachi240. All Rights Reserved. This project is not open source. No part of this codebase may be copied, modified, or distributed without explicit permission from the author.---

🔗 Related


Made with ❤️ for better healthcare outcomes

About

Companion patient app for TensPilot+ — pain tracking, session logging & AI health assistant for TENS therapy patients

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages