ReadAlly.AI: AI-Powered Immersive Reading. Stop searching, start reading. Real-time AI context analysis and instant insights to help you master English reading with ease.
ReadAlly.AI is a platform designed to enhance the English reading experience using artificial intelligence. It leverages advanced AI models to analyze article context in real-time, providing instant difficulty analysis and learning aids, helping users focus on reading itself and overcome language barriers.
This project uses a separate frontend and backend architecture:
- Framework: Next.js (React)
- Styling: Tailwind CSS
- Package Manager: pnpm
- UI/Tools: Lucide React, Framer Motion
- Language: Python
- Framework: FastAPI
- Environment Management: uv
- Database: SQLite (default
readally.db) / SQLModel - AI/LLM Integration: DashScope (Qwen), LangChain
We provide three ways to run ReadAlly.AI, depending on your needs.
Use Case: Running the app on a server or locally for usage (not development). Uses pre-built optimized images.
- Prereqs: Install Docker and Docker Compose.
- Setup:
cd docker cp .env.example .env # Edit .env: Set DASHSCOPE_API_KEY and SECRET_KEY
- Run:
docker compose up -d
- Access:
- Frontend:
http://localhost:3000 - Data (DB & Audio) is persisted in
./docker/data/.
- Frontend:
Use Case: Writing code, debugging, and contributing.
cd backend
cp .env.example .env # Configure API keys
uv sync # Install dependencies
uv run uvicorn main:app --reloadDatabase will be created at backend/readally.db.
cd frontend
cp .env.example .env
pnpm install
pnpm run devAccess at http://localhost:3000.
Use Case: Verifying that your changes build correctly in Docker before pushing.
cd docker
# Uses docker-compose.dev.yaml which includes 'build' contexts
docker compose -f docker-compose.dev.yaml up --build| Scenario | Config File | Database Location | Important Notes |
|---|---|---|---|
| Production | docker/docker-compose.yaml |
./docker/data/readally.db |
Uses ghcr.io images. No build required. |
| Local Dev | backend/.env |
backend/readally.db |
Manual start. Best for coding. |
| Docker Dev | docker/docker-compose.dev.yaml |
./docker/data/readally.db |
Builds from local source. Slower start. |
Check the .env.example files in each directory for detailed comments on required variables.
docker/.env.example: For Docker Compose setups.backend/.env.example: For manual backend execution.frontend/.env.example: For manual frontend execution.
- Framework: Next.js (React)
- Styling: Tailwind CSS
- Package Manager: pnpm
- UI/Tools: Lucide React, Framer Motion
- Language: Python
- Framework: FastAPI
- Environment Management: uv
- Database: SQLite / SQLModel
- AI/LLM Integration: DashScope (Qwen), LangChain
/root/ReadAlly.AI/
├── backend/ # Python FastAPI Backend
├── frontend/ # Next.js Frontend
├── docker/ # Docker Configuration (Compose files)
└── .github/ # CI/CD Workflows