BiasLens
News Ingestion website that does Political Bias and Sentiment Analysis.BiasLens is a full-stack ML system for detecting political bias, sentiment, and narrative framing in news text.
Its core feature is narrative drift tracking: monitoring how the same story is framed differently across sources and over time.
Articles can be analyzed from the Next.js dashboard or straight from the page you are reading with the Chrome extension, and every result is saved to an analysis history.
The FastAPI backend sends text to an ML pipeline built on HuggingFace Transformers (PyTorch) and stores results in PostgreSQL through SQLAlchemy and Alembic, behind JWT authentication.
The drift score runs from 0 (identical framing) to 1 (maximally opposed framing). It combines the cosine distance between bias score vectors, the KL divergence between sentiment distributions, and the embedding similarity of the article bodies.
Articles can be ingested in bulk from NewsAPI, and the whole stack runs with Docker Compose.
Github Repo