An open API service indexing awesome lists of open source software.

https://github.com/saad2134/fairlens

A full-stack SaaS-grade web app where teams upload a dataset + trained model (or plug in an API endpoint) and receive a comprehensive, interactive fairness audit report. Built to be genuinely enterprise-usable, not a toy.
https://github.com/saad2134/fairlens

ai-fairness bias-detection cloudrun enterprise ethical-ai fairness-auditing fairness-metrics firebase gemini googlecloudplatform machine-learning mlops responsible-ai

Last synced: 21 days ago
JSON representation

A full-stack SaaS-grade web app where teams upload a dataset + trained model (or plug in an API endpoint) and receive a comprehensive, interactive fairness audit report. Built to be genuinely enterprise-usable, not a toy.

Awesome Lists containing this project

README

          

โš–๏ธ FairLens โ€“ Enterprise-grade AI fairness auditing platform

>

๐Ÿšจ "FairLens is a full-stack SaaS platform that enables teams to upload datasets and trained models, then receive comprehensive, interactive fairness audit reports. Built for production use with model-format agnosticism, audit versioning, and enterprise compliance features."


Access the Prototype Here

![Phase](https://img.shields.io/badge/๐Ÿ› ๏ธ%20Phase-In%20Development-blue?style=for-the-badge)
![Platforms](https://img.shields.io/badge/๐ŸŒ%20Platforms-Web%20%7C%20Android*-28a745?style=for-the-badge)

## โœจ Key Features

| Feature | Description |
|---------|-------------|
| ๐Ÿ” **Bias Heatmap** | D3-rendered visualization of feature ร— protected attribute combinations with severity scoring |
| ๐Ÿงช **What-if Simulator** | Interactive prediction playground with SHAP explanations |
| ๐Ÿ“Š **Comprehensive Metrics** | Demographic Parity, Equal Opportunity, Disparate Impact, Equalized Odds |
| ๐Ÿ”Œ **Model Agnostic** | Support for Pickle, ONNX, and external API endpoints |
| ๐Ÿ“œ **Audit Versioning** | Complete audit trail with dataset/model hashes for compliance |
| ๐Ÿ“ˆ **Drift Detection** | Track fairness metrics across audit history |

## ๐Ÿš€ Quick Start (Local)

```bash
# Clone the repository
git clone https://github.com/fairlens/fairlens.git
cd fairlens

# Start with Docker Compose (recommended)
docker-compose up -d

# Or run locally
# Backend
cd backend && pip install -r requirements.txt
uvicorn app.main:app --reload

# Frontend
cd frontend && npm install
npm run dev
```

## ๐Ÿš€ Quick Deploy (100% Cloud - No Local Setup)

```bash
# 1. Install Firebase CLI
npm install -g firebase-tools

# 2. Login
firebase login

# 3. Create project at https://console.firebase.google.com
# Enable: Authentication, Firestore, Storage, Hosting

# 4. Initialize
firebase init
# Select: Hosting, Functions, Firestore, Storage

# 5. Build frontend
cd frontend && npm install && npm run build && cd ..

# 6. Deploy (uses free tier!)
firebase deploy
```

**Done!** Your app is live at `https://your-project.web.app`

See [DEPLOY.md](DEPLOY.md) for detailed instructions.

Access the UI at `http://localhost:5173`

## ๐Ÿ“– Documentation

- [Getting Started](https://docs.fairlens.ai/getting-started)
- [API Reference](https://docs.fairlens.ai/api-reference)
- [Fairness Metrics Guide](https://docs.fairlens.ai/metrics)
- [Deployment Guide](https://docs.fairlens.ai/deployment)

## ๐Ÿ—๏ธ Architecture

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Frontend โ”‚
โ”‚ React 18 + TypeScript + Nextjs + TailwindCSS + Recharts + D3 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚ REST API + WebSocket
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Backend โ”‚
โ”‚ FastAPI + SQLAlchemy + Celery + Redis โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Fairness Engine: fairlearn | AIF360 | SHAP | ONNX Runtime โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Storage: PostgreSQL + S3/MinIO โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

## ๐Ÿ“ฆ Available Packages

| Package | Description |
|---------|-------------|
| `@fairlens/ui` | React component library |
| `@fairlens/sdk` | JavaScript SDK for API integration |
| `fairlens-core` | Python fairness computation engine |
| `fairlens-cli` | Command-line interface |

## ๐Ÿ”ง Tech Stack

### Frontend
- React 18 + TypeScript + Nextjs
- TailwindCSS
- Recharts (metrics visualization)
- D3.js (bias heatmap)
- Zustand (state management)
- React Query (async data)

### Backend
- Python 3.11+
- FastAPI
- SQLAlchemy + PostgreSQL
- Celery + Redis
- fairlearn, AIF360, SHAP, ONNX Runtime

### Infrastructure
- Docker & Docker Compose
- Nginx
- AWS S3 / MinIO
- GitHub Actions

## โ˜๏ธ Cloud Deploy (100% Free Tier)

For Google Solution Challenge 2026, FairLens can be deployed entirely on Google Cloud:

| Service | Free Tier | Purpose |
|---------|----------|---------|
| Firebase Hosting | 1 GB | Frontend |
| Firestore | 20K reads/writes | Database |
| Firebase Storage | 5 GB | File uploads |
| Cloud Functions | 2M invocations | API Backend |
| Gemini (Free) | 15 RPM, 1M tokens | AI Insights |

**Total Cost: $0**

### Cloud Architecture

```
Users โ†’ Firebase Hosting (Next.js)
โ†“
Cloud Functions (Python)
โ†“
Firestore + Storage
โ†“
Gemini API (AI Insights)
```

### Quick Deploy

See [DEPLOY.md](DEPLOY.md) for one-command deploy!

## ๐Ÿค Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md).

```bash
# Run development environment
docker-compose -f docker-compose.dev.yml up

# Run tests
npm run test # Frontend
pytest # Backend

# Format code
npm run format # Frontend
black . # Backend
```

## ๐Ÿ”— Links

- **[Live Demo](https://fairlens.ai/demo)** - Try it out
- **[Documentation](https://docs.fairlens.ai)** - Full docs
- **[Discord](https://discord.gg/fairlens)** - Community
- **[Blog](https://fairlens.ai/blog)** - Updates & guides
- **[Twitter](https://twitter.com/fairlensai)** - Follow us

## ๐Ÿ‘ฅ Our Google Solution Challenge 2026 Hackathon Team (DevBandits)



DevBandits Banner


#
Team Member
Role
GitHub Profile


1
Abdur Rahman Qasim
๐ŸŽฏ Team Lead
๐Ÿ”— FareedAhmedOwais


2
Fareed Ahmed Owais
๐Ÿ–ผ๏ธ Frontend Developer
๐Ÿ”— Abdur-rahman-01


3
Mohammed Saad Uddin
๐Ÿš€ Full-stack + AI/ML Developer
๐Ÿ”— saad2134


4
Mohammed Abdul Rahman
๐ŸŽจ UI/UX Designer
๐Ÿ”— saad2134

## ๐Ÿ“Š **Repo Stats**



![Repo Size](https://img.shields.io/github/repo-size/saad2134/FairLens)
![Last Commit](https://img.shields.io/github/last-commit/saad2134/FairLens)
![Open Issues](https://img.shields.io/github/issues/saad2134/FairLens)
![Open PRs](https://img.shields.io/github/issues-pr/saad2134/FairLens)
![License](https://img.shields.io/github/license/saad2134/FairLens)
![Forks](https://img.shields.io/github/forks/saad2134/FairLens?style=social)
![Stars](https://img.shields.io/github/stars/saad2134/FairLens?style=social)
![Watchers](https://img.shields.io/github/watchers/saad2134/FairLens?style=social)
![Contributors](https://img.shields.io/github/contributors/saad2134/FairLens)
![Languages](https://img.shields.io/github/languages/count/saad2134/FairLens)
![Top Language](https://img.shields.io/github/languages/top/saad2134/FairLens)

## โญ Star History





Star History Chart

---

## โœ๏ธ Endnote

Developed with ๐Ÿ’– for the Google Solution Challenge 2026 Hackathon (powered by Hack2Skill), with heartfelt thanks for the opportunity to build and innovate.

---

## ๐Ÿท Tags

#WebApp #AI #FairnessAuditing #MachineLearning #NextJS #FastAPI #Python #TypeScript #Demo #React #TailwindCSS #BiasDetection #FairnessMetrics #EthicalAI #ResponsibleAI #GoogleCloud #Firebase #Gemini #CloudRun #AIFairness #DataScience #MLOps #OpenSource #SaaS #Enterprise #WebDevelopment