Skip to content

mohaneddz/Waeky-Waeky

Repository files navigation

WAKEY-WAKEY icon WAKEY-WAKEY - Desktop Alertness Companion

WAKEY-WAKEY Hero

⚠️ Disclaimer

WAKEY-WAKEY is under active development.
While functional if all steps are followed, it may contain bugs and is subject to change.
The final version will be simple, intuitive, and fully stableβ€”recommended to wait for the full release for production use.


πŸ“Œ Overview

WAKEY-WAKEY is your friendly desktop companion designed to keep you awake and alert.
It leverages real-time computer vision to monitor alertness using your webcam, triggering customizable audio alerts when drowsiness is detected.

Perfect for students, professionals, night shift workers, or anyone needing focus during long sessions.


πŸš€ Features

  • Real-Time Drowsiness Detection: Tracks eye closure, yawns, and facial expressions
  • Smart Alert System: Audio notifications triggered when drowsiness is detected
  • Non-Intrusive: Runs quietly in the background
  • Local Processing & Privacy: No data is sent externally
  • Scientific Detection: Uses EAR, MAR, and facial landmark analysis

πŸ› οΈ Tech Stack

Backend

Rust Rust – Low-level engine for Tauri
Flask Flask – Python web backend
Python Python 3.x – AI & CV logic

Frontend

React React – UI library
Vite Vite – Frontend build tool
TailwindCSS Tailwind CSS – Utility-first styling
PostCSS PostCSS – CSS processing
Motion Motion – Smooth UI animations

Platform

Tauri Tauri – Native desktop app packaging


πŸ“ Project Structure


β”œβ”€β”€ flask-backend/     # Flask backend API
β”‚   β”œβ”€β”€ venv/          # Python virtual environment
β”‚   └── requirements.txt
β”œβ”€β”€ src/               # React frontend source
β”œβ”€β”€ public/            # Static assets
β”œβ”€β”€ src-tauri/         # Tauri native app configuration
β”œβ”€β”€ vite.config.js     # Vite config
β”œβ”€β”€ tailwind.config.js # Tailwind config
└── postcss.config.js  # PostCSS config


βš™οΈ Installation

1️⃣ Clone Repo

git clone <repository-url>
cd wakey-waeky

2️⃣ Backend Setup

cd flask-backend
python -m venv venv
# Windows
venv\Scripts\activate
# Unix / MacOS
source venv/bin/activate
pip install -r requirements.txt

3️⃣ Frontend Setup

npm install

πŸš€ Development

Start Backend

cd flask-backend
flask run

Start Frontend

npm run dev

Access the app at http://localhost:5173.


πŸ”§ Environment Configuration

Create a .env file in the root:

VITE_API_URL=http://localhost:5000
FLASK_APP=app.py
FLASK_ENV=development

πŸ“¦ Production Build

Build Frontend

npm run build

Build Native App with Tauri

npm run tauri build

πŸ§ͺ Testing

Backend

cd flask-backend
python -m pytest

Frontend

npm test

🀝 Contributing

  1. Fork the repo
  2. Create a branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m "Add feature")
  4. Push (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

MIT License

Licensed under MIT License – see the LICENSE file.

About

π–π€πŠπ„π˜β€‘π–π€πŠπ„π˜ is a smart desktop companion that keeps you alert using real-time computer vision. It monitors drowsiness via your webcam and triggers customizable audio alerts, all while running locally to protect your privacy. Ideal for students, professionals, and night-shift workers seeking focus and safety during long sessions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors