Play Store review analytics with RoBERTa INT8, aspect tagging & local Ollama LLMs.
1.1K
Play Store Review Analyzer is an enterprise-grade NLP and LLM analytics platform packaged as a lightweight, production-ready container image. It ingests live user feedback from the Google Play Store, classifies sentiment via an INT8-quantized RoBERTa model, categorizes engineering concerns using an ensemble aspect classifier (Random Forest + XGBoost), and synthesizes prioritized developer remediation plans via local Ollama LLMs.
Bugs, UI/UX, Performance, Login Problems, and Features.appuser, UID 1000), features pre-configured container health probes, and implements POSIX realpath boundary enforcement against path traversal vulnerabilities.Ensure Ollama is running on your host machine with an active model:
# Verify host Ollama service
curl -s http://localhost:11434/api/tags
# Pull the default lightweight model
ollama run qwen3.5:0.8b
docker run)Deploy the container with automatic host-gateway bridging and persistent volume mounting:
docker run -d \
--name playstore-analyzer \
--restart unless-stopped \
-p 8000:8000 \
--add-host=host.docker.internal:host-gateway \
-v playstore_reviews_data:/app/data \
subhasishsaha/playstore-review-analyzer:latest
Cross-Platform Compatibility Note:
The--add-host=host.docker.internal:host-gatewayflag injects a DNS entry that mapshost.docker.internalto the host bridge IP across Linux, Docker Desktop for Windows, and macOS.
For orchestrator and server deployments, save the following as docker-compose.yml:
version: "3.8"
services:
playstore-analyzer:
image: subhasishsaha/playstore-review-analyzer:latest
container_name: playstore-analyzer
restart: unless-stopped
ports:
- "8000:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- PORT=8000
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- OLLAMA_MODEL=qwen3.5:0.8b
- DEFAULT_REVIEW_COUNT=100
- DEFAULT_LANG=en
- DEFAULT_COUNTRY=us
volumes:
- playstore_reviews_data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
volumes:
playstore_reviews_data:
driver: local
Start the service:
docker compose up -d
All application parameters are declared declaratively via environment variables:
| Variable | Type | Default | Description |
|---|---|---|---|
PORT | int | 8000 | Port on which the FastAPI ASGI server listens inside the container |
OLLAMA_BASE_URL | string | http://host.docker.internal:11434 | Target URL for host Ollama API communications |
OLLAMA_MODEL | string | qwen3.5:0.8b | Model identifier used for synthesizing remediation suggestions |
DEFAULT_REVIEW_COUNT | int | 100 | Default review count fetched per analysis request (10–500) |
DEFAULT_LANG | string | en | ISO 639-1 language code filter for scraping |
DEFAULT_COUNTRY | string | us | ISO 3166-1 alpha-2 Google Play country storefront code |
DATA_DIR | string | /app/data | Path to persistent storage root for structured review JSON exports |
ROBERTA_MODEL_PATH | string | roberta-base | Model identifier or local filesystem path for RoBERTa tokenizer/weights |
| Route | Method | Content-Type | Description |
|---|---|---|---|
/ | GET | text/html | Glassmorphic visual analytics dashboard |
/api/health | GET | application/json | Container health and service readiness check |
/api/models | GET | application/json | Enumerates installed Ollama models available on host |
/api/analyze | POST | application/json | Primary ETL pipeline: scrape, classify, tag, and synthesize |
/docs | GET | text/html | Interactive Swagger / OpenAPI 3.0 specification |
POST /api/analyze)curl -X POST http://localhost:8000/api/analyze \
-H "Content-Type: application/json" \
-d '{
"app_id": "com.spotify.music",
"sort_order": "Most Relevant",
"count": 50,
"ollama_model": "qwen3.5:0.8b"
}'
Structured review outputs are written to the persistent volume using atomic writes:
/app/data/
└── <app_id>/
└── <timestamp>_<reviewcount>_<reviewtype>.json
{
"app_id": "com.whatsapp",
"timestamp": "2026-11-30T02:00:00",
"review_count": 100,
"sort_order": "most_relevant",
"reviews": [
{
"reviewId": "gp:AOqpTOE...",
"userName": "Jordan",
"content": "App constantly crashes on startup after recent update.",
"score": 1,
"at": "2026-11-28T14:32:10",
"appVersion": "2.24.24.78",
"sentiment": "Negative",
"tags": "Bugs, Login Problems",
"labels": ["Bugs", "Login Problems"]
}
],
"ai-suggestions": "### Suggestions for: Bugs\n1. Review splash screen null-checks..."
}
1000 (appuser).app_id strings and validates destination paths using pathlib.Path.is_relative_to(target_base).20 entries) with strict TTL expiry (300s) to prevent memory saturation.# Stream live application logs
docker logs -f playstore-analyzer
# Perform container health query
docker inspect --format='{{json .State.Health}}' playstore-analyzer
# Gracefully stop container
docker stop --time=15 playstore-analyzer
# Remove container while preserving named volume
docker rm playstore-analyzer
docker pull subhasishsaha/playstore-review-analyzer:latest