{"id":49243020,"url":"https://github.com/anyulled/rsi-assistant","last_synced_at":"2026-04-24T20:12:28.353Z","repository":{"id":329092251,"uuid":"1118076808","full_name":"anyulled/rsi-assistant","owner":"anyulled","description":"A Tauri MacOS desktop app for RSI recovery and prevention","archived":false,"fork":false,"pushed_at":"2026-02-06T13:23:27.000Z","size":7013,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T19:24:11.466Z","etag":null,"topics":["bun","desktop-app","react","rsi","rust","tauri","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anyulled.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T08:24:13.000Z","updated_at":"2026-02-06T13:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/anyulled/rsi-assistant","commit_stats":null,"previous_names":["anyulled/rsi-assistant"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anyulled/rsi-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Frsi-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Frsi-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Frsi-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Frsi-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anyulled","download_url":"https://codeload.github.com/anyulled/rsi-assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyulled%2Frsi-assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","desktop-app","react","rsi","rust","tauri","typescript"],"created_at":"2026-04-24T20:12:26.389Z","updated_at":"2026-04-24T20:12:28.348Z","avatar_url":"https://github.com/anyulled.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSI Recovery Assistant\n\n![RSI Recovery Assistant](public/banner.jpeg)\n\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/anyulled/rsi-assistant)\n\nA native macOS menu bar application designed to help prevent Repetitive Strain Injury (RSI) using smart break timers and idle detection. Built with [Tauri](https://tauri.app), [React](https://react.dev), and [Rust](https://www.rust-lang.org).\n\n## Features\n\n- **Smart Timer System**:\n  - **Microbreaks**: Frequent, short pauses to reduce strain.\n  - **Rest Breaks**: Longer breaks for accumulated work time.\n  - **Daily Limits**: Tracks total active computer usage.\n- **Intelligent Idle Detection**: Automatically pauses timers when you are away from the keyboard/mouse.\n- **Configurable Settings**: Adjust intervals, durations, and strictness directly from the UI.\n- **Native Performance**: Light on system resources, leveraging Rust for the backend.\n- **Modern UI**: Clean interface built with React, Tailwind CSS, and shadcn/ui.\n\n## Tech Stack\n\n- **Frontend**: React, TypeScript, Tailwind CSS, shadcn/ui\n- **Backend**: Rust, Tauri\n- **State Management**: Custom Rust-based `TimerService` with event emission to React\n- **Build Tool**: Vite, Bun\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) \u0026 [Bun](https://bun.sh/)\n- [Rust](https://www.rust-lang.org/tools/install) (latest stable)\n- macOS (Development target)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yourusername/rsi-assistant.git\n   cd rsi-assistant\n   ```\n\n2. Install frontend dependencies:\n\n   ```bash\n   bun install\n   ```\n\n3. Run the development environment:\n\n   ```bash\n   bun run tauri dev\n   ```\n\n## Project Structure\n\n- `src-tauri/`: Rust backend\n  - `src/idle/`: Idle detection logic using `device_query`.\n  - `src/timer/`: Core timer state machine and configuration.\n  - `src/commands.rs`: Tauri commands exposed to the frontend.\n- `src/`: React frontend\n  - `components/`: UI components (e.g., `TimerDisplay`).\n  - `hooks/`: Custom hooks (e.g., `useTimer`).\n  - `pages/`: Application views (e.g., `Settings`).\n\n## Architecture\n\nThe application uses an event-driven architecture. The Rust backend maintains the authoritative timer state and \"ticks\" every second. It broadcasts `timer-update` events to the frontend only when state changes or time passes. The frontend is a lightweight view layer that renders this state and sends user commands (like \"update settings\") back to the Rust core.\n\nFor more details, see [docs/architecture.md](docs/architecture.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyulled%2Frsi-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanyulled%2Frsi-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyulled%2Frsi-assistant/lists"}