How mmahimashree/smart-microblog-solo works
Smart Microblog Privacy Guard is a microblogging app with privacy-risk checks before posts are saved. The main workflow runs from composing text, through scanning and risk scoring, to optional user review and saving; the home view then loads the feed and statistics. The frontend also exposes explore, notifications, messages, bookmarks, profile, and settings routes, though their implementations were not sampled. Source excerpts show the API and persistence flow; connections for unsampled page behavior are omitted.
Main entry points: Home.jsx Home Dashboard · PostComposer.jsx Post Composer · client.js API Client · main.py FastAPI Routes
Components 21
Frontend
- App Router
frontend/src/App.jsx - Home Dashboard
frontend/src/pages/Home.jsx - Post Composer
frontend/src/components/PostComposer.jsx - Input Debounce
frontend/src/hooks/useDebounce.js - Risk Review UI
frontend/src/components/RiskMeter.jsx - Warning Modal
frontend/src/components/WarningModal.jsx - Feed
frontend/src/components/Feed.jsx - Post Card
frontend/src/components/PostCard.jsx - Risk Badge
frontend/src/components/RiskBadge.jsx - Profile Card
frontend/src/components/ProfileCard.jsx - Stats Panel
frontend/src/components/StatsPanel.jsx - Search Bar
frontend/src/components/SearchBar.jsx - Other Routes
frontend/src/pages - Theme Context
frontend/src/context/ThemeContext.jsx - API Client
frontend/src/api/client.js
Privacy Analysis
- PII Detector
backend/pii_detector.py - Risk Scorer
backend/risk_scorer.py
API Backend
- FastAPI Routes
backend/main.py
Persistence
- Database Access
backend/database.py
Other components
- User
- PostgreSQL
Connections 22
- User → App Router: uses
- App Router → Home Dashboard: routes to
frontend/src/App.jsx - App Router → Other Routes: routes to
frontend/src/App.jsx - Home Dashboard → Post Composer: renders
frontend/src/pages/Home.jsx - Home Dashboard → Feed: renders
frontend/src/pages/Home.jsx - Home Dashboard → Profile Card: renders
frontend/src/pages/Home.jsx - Home Dashboard → Stats Panel: renders
frontend/src/pages/Home.jsx - Home Dashboard → Search Bar: renders
frontend/src/pages/Home.jsx - Home Dashboard → API Client: loads feed and stats
frontend/src/pages/Home.jsx - Home Dashboard → API Client: deletes posts
frontend/src/pages/Home.jsx - Feed → Post Card: renders
frontend/src/components/Feed.jsx - Post Card → Risk Badge: renders
frontend/src/components/PostCard.jsx - Post Composer → Input Debounce: debounces text
frontend/src/components/PostComposer.jsx - Post Composer → Risk Review UI: renders
frontend/src/components/PostComposer.jsx - Post Composer → Warning Modal: opens review
frontend/src/components/PostComposer.jsx - Post Composer → API Client: scans and saves
frontend/src/components/PostComposer.jsx - Profile Card → API Client: loads profile
frontend/src/components/ProfileCard.jsx - API Client → FastAPI Routes: calls HTTP routes
frontend/src/api/client.js - FastAPI Routes → PII Detector: detects PII
backend/main.py - FastAPI Routes → Risk Scorer: scores risk
backend/main.py - FastAPI Routes → Database Access: reads and writes
backend/main.py - Database Access → PostgreSQL: queries
backend/database.py