A Progressive Web App (PWA) that helps users identify and understand bias in web content. This tool analyzes text content using AI to detect various types of cognitive biases and provides educational explanations to help users develop better critical thinking skills.
- 📱 Works on all devices (mobile and desktop)
- 🔍 Real-time bias detection
- 💡 Educational explanations for different types of bias
- 🎯 Interactive highlighting of biased content
- 📚 Suggestions for critical thinking
- 🌐 Works offline (PWA)
- Nix package manager
- Enable experimental features:
# In ~/.config/nix/nix.conf or /etc/nix/nix.conf experimental-features = nix-command flakes
- Enable experimental features:
- direnv (recommended)
- Clone the repository:
git clone [repository-url]
cd bias-detector-app
- Enable direnv (if using):
direnv allow
Alternatively, you can enter the development shell manually:
nix develop
- Create a
.env
file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
.
├── flake.nix # Nix flake configuration
├── shells/ # Development shell configurations
├── nix/ # Nix package definitions
│ └── packages/
│ └── bias-detector/
├── frontend/ # Web frontend (Svelte)
└── src/ # Rust backend code
To build the project:
nix build
Start the development server:
# Frontend development server
cd frontend && npm run dev
# Backend development server (in another terminal)
cargo watch -x run
- The app loads web content in a secure iframe
- Content is extracted and analyzed using AI
- Biased content is highlighted with yellow markers
- Users can click on highlights to learn more about the bias
- Educational popups explain the bias and provide critical thinking tips
- Confirmation Bias
- Anchoring Bias
- Availability Bias
- Bandwagon Effect
- Authority Bias
- Framing Effect
- Stereotyping
- Selection Bias
- Attribution Bias
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the language model API
- Material-UI for the component library
- React team for the framework
- All contributors and users of this tool
This app uses secure iframe sandboxing and content security policies to ensure safe browsing. However, always be cautious when visiting unknown websites.