Skip to content

r-r13/FocusLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focus Mode Accessibility Tool

Project Description

The Focus Mode Accessibility Tool is a web-based application designed to simplify text for people with ADHD and autism. It provides customizable focus profiles (light, medium, aggressive) and uses AI to simplify complex texts into more digestible formats.

Features

  • Text Simplification: Simplifies articles, documents, and web pages for better readability.
  • Focus Profiles: Choose between light, medium, or aggressive simplification.
  • Content Extraction: Extracts relevant content from web pages (e.g., news articles, Wikipedia pages).
  • Text-to-Speech (TTS): Option to read simplified text aloud with sentence highlighting (optional feature).
  • Accessible Interface: Fully accessible with ARIA labels, keyboard navigation, and high contrast mode.

Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python (FastAPI)
  • AI Model: HuggingFace, OpenRouter API for text simplification
  • Libraries: BeautifulSoup for content extraction

Setup

Backend Setup

  1. Create a Python virtual environment:
cd backend
python -m venv venv
  1. Activate the virtual environment:
  • Windows: venv\Scripts\activate
  • Mac/Linux: source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file from the example:
copy .env.example .env
  1. Add your API key to the .env file:
API_KEY=your_actual_api_key_here
  1. Run the backend server:
python app.py

The API will be available at http://localhost:5000

Frontend Setup

  1. Open frontend/index.html in a web browser, or serve it using a local server:
cd frontend
python -m http.server 8000
  1. Access the application at http://localhost:8000

API Endpoints

Health Check

GET /health

Returns the API status.

License

GNU General Public License v3.0

About

FocusLite: A web-based tool to simplify text for better accessibility and readability, designed for people with ADHD and autism.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors