How kavanaa783-coder/smart-microblog-solo-kavana works
Smart Microblog Privacy Guard is a privacy-focused microblogging app: users compose posts, scan them for PII and risk, receive a warning, and can publish to a PostgreSQL-backed social app. The frontend also exposes browsing, profiles, bookmarks, messages, and settings. The backend route layer coordinates detection, risk scoring, and persistence; the database module owns PostgreSQL access. The hybrid ML ensemble is a separate research/model capability: the detector explicitly says BERT and RoBERTa are not integrated into the app. Unsampled routes and components are represented only where the README or source index supports them.
Main entry points: App.jsx React app and routes · client.js HTTP API client · main.py FastAPI routes · Home.jsx Home composer and feed
Components 19
Web interface
- React app and routes
frontend/src/App.jsx - Home composer and feed
frontend/src/pages/Home.jsx - Post composer
frontend/src/components/PostComposer.jsx - Post interactions
frontend/src/components/PostCard.jsx - Explore posts
frontend/src/pages/Explore.jsx - Profile management
frontend/src/pages/Profile.jsx - Saved posts
frontend/src/pages/Bookmarks.jsx - Direct messages
frontend/src/pages/Messages.jsx - Other app pages
frontend/src/pages - HTTP API client
frontend/src/api/client.js
Application API
- FastAPI routes
backend/main.py - PII detection
backend/pii_detector.py - Risk scoring
backend/risk_scorer.py
Persistent data
- Database operations
backend/database.py - PostgreSQL
PII model research
- Hybrid PII ensemble
ml/hybrid/hybrid_ensemble.py - Ensemble configuration
ml/hybrid/config.py - Location detector
ml/location_detector.py
Other components
- Microblog user
Connections 20
- Microblog user → React app and routes: uses
README.md - React app and routes → Home composer and feed: routes to
frontend/src/App.jsx - React app and routes → Explore posts: routes to
frontend/src/App.jsx - React app and routes → Profile management: routes to
frontend/src/App.jsx - React app and routes → Saved posts: routes to
frontend/src/App.jsx - React app and routes → Direct messages: routes to
frontend/src/App.jsx - React app and routes → Other app pages: routes to
frontend/src/App.jsx - Home composer and feed → Post composer: renders
frontend/src/pages/Home.jsx - Home composer and feed → HTTP API client: calls
frontend/src/pages/Home.jsx - Explore posts → HTTP API client: calls
frontend/src/pages/Explore.jsx - Profile management → HTTP API client: calls
frontend/src/pages/Profile.jsx - Saved posts → HTTP API client: calls
frontend/src/pages/Bookmarks.jsx - Direct messages → HTTP API client: calls
frontend/src/pages/Messages.jsx - Post interactions → HTTP API client: calls
frontend/src/components/PostCard.jsx - HTTP API client → FastAPI routes: sends requests
frontend/src/api/client.js - FastAPI routes → PII detection: detects PII
backend/main.py - FastAPI routes → Risk scoring: scores risk
backend/main.py - FastAPI routes → Database operations: calls
backend/main.py - Database operations → PostgreSQL: reads and writes
backend/database.py - Hybrid PII ensemble → Ensemble configuration: uses settings
ml/hybrid/hybrid_ensemble.py