https://github.com/anamika1608/detoxie
An app for insta reels addiction. Displays an overlay on the insta app after certain time.
https://github.com/anamika1608/detoxie
accessbilityservice java nativemodule nativewind react-native
Last synced: 19 days ago
JSON representation
An app for insta reels addiction. Displays an overlay on the insta app after certain time.
- Host: GitHub
- URL: https://github.com/anamika1608/detoxie
- Owner: Anamika1608
- Created: 2025-06-21T11:29:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-09-26T05:16:20.000Z (29 days ago)
- Last Synced: 2025-09-26T07:10:11.317Z (29 days ago)
- Topics: accessbilityservice, java, nativemodule, nativewind, react-native
- Language: TypeScript
- Homepage: https://detoxie.vercel.app
- Size: 1.93 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Detoxie App
Detoxie is a React Native application that integrates with Android's **Accessibility Service** to detect and track user activity (such as time spent on Reels/Explore). It uses a **custom Native Module** to bridge communication between the native Android code and the React Native (JS/TS) layer.
## App Working
https://github.com/user-attachments/assets/2cb0b092-5746-4a6b-97e2-7ef4b5c4d710
## Preview of app
## Functionality
### 1. Accessibility Service
* Built in **Java**.
* Detects when the user is on **Reels/Explore** by parsing the root node and checking for specific keywords (`reel`, `explore`).
* Tracks the time spent on these screens.
### 2. Native Module
* A **custom React Native bridge** to communicate between the native Accessibility Service and React code.
* Registers the accessibility service into the native module.
* Enables React Native (TS) to receive events/data from Android native code.
## Setup
1. Enable the Accessibility Service:
* Open **Settings** → **Detoxie** → **Enable (true)**
2. The service will start monitoring Reels/Explore usage and tracking time.
## Tech Stack
* **React Native** (TS)
* **Android Accessibility Service** (Java)
* **Custom Native Module** for bridging
## Workflow
1. **TURN ON SERVICE** → `Settings → Detoxie → true`
2. Accessibility Service detects Reels/Explore activity
3. Native Module bridges data between **Accessibility Service (native)** and **React Native (TS)**
4. React Native layer consumes and processes this data