How avinashivora/frie works
FRIE is an India-centric financial decision-support prototype: a user supplies profile details and reviewed documents or bank data, the system normalizes available evidence, calculates transparent six-dimension and profile scores, and presents coverage and assessment history. The graph separates intake, feature construction, scoring, and persistence from the React client and API. Some backend links are supported by the SOURCE INDEX rather than inspected implementation; unsampled integrations are omitted where evidence is insufficient.
Main entry points: main.py FastAPI app · documents.py Document routes · analysis.py Analysis routes · auth_service.py Identity service
Components 22
User application
- Portal shell
src/app/App.tsx - Portal views
src/app/views - API client
src/services/api.ts
API and identity
- FastAPI app
backend/app/main.py - Auth routes
backend/app/api/routes/auth.py - Identity service
backend/app/services/auth_service.py - Auth dependency
backend/app/api/deps.py
Evidence intake
- Profile routes
backend/app/api/routes/profile.py - Document routes
backend/app/api/routes/documents.py - File storage
backend/app/services/storage_service.py - Document extraction
backend/app/services/extraction_service.py - Bank import
backend/app/services/bank_import.py
Assessment
- Analysis routes
backend/app/api/routes/analysis.py - Feature engineering
backend/app/services/feature_engineering.py - Feature contract
backend/app/core/feature_contract.py - Six-dimension scoring
backend/app/services/prediction_service.py - Dimension and profile scoring
backend/app/services/scoring - Recommendations
backend/app/services/recommendation_service.py
Persistence
- Assessment persistence
backend/app/services/assessment_persisitence.py - Application database
backend/app/db/models.py - Database sessions
backend/app/db/session.py
Other components
- FRIE user
Connections 25
- FRIE user → Portal shell: uses
README.md - Portal shell → Portal views: renders
src/app/App.tsx - Portal views → API client: requests data
src/app/views/DocumentsView.tsx - API client → FastAPI app: calls API
src/services/api.ts - FastAPI app → Auth routes: registers routes
backend/app/main.py - FastAPI app → Profile routes: registers routes
backend/app/main.py - FastAPI app → Document routes: registers routes
backend/app/main.py - FastAPI app → Analysis routes: registers routes
backend/app/main.py - Auth routes → Identity service: delegates to
backend/app/api/routes/auth.py - Auth dependency → Identity service: authenticates via
backend/app/api/deps.py - Profile routes → Auth dependency: requires user
backend/app/api/routes/profile.py - Document routes → Auth dependency: requires user
backend/app/api/routes/documents.py - Document routes → File storage: stores uploads
backend/app/api/routes/documents.py - Document routes → Document extraction: requests extraction
backend/app/api/routes/documents.py - Document routes → Bank import: imports transactions
backend/app/api/routes/documents.py - Document extraction → File storage: reads files
backend/app/services/extraction_service.py - Analysis routes → Feature engineering: builds features
backend/app/api/routes/analysis.py - Analysis routes → Six-dimension scoring: requests assessment
backend/app/api/routes/analysis.py - Analysis routes → Recommendations: requests advice
backend/app/api/routes/analysis.py - Analysis routes → Assessment persistence: saves assessment
backend/app/api/routes/analysis.py - Six-dimension scoring → Dimension and profile scoring: uses scoring
backend/app/services/prediction_service.py - Feature engineering → Feature contract: checks feature schema
backend/app/services/feature_engineering.py - Assessment persistence → Application database: persists results
- Identity service → Application database: reads and writes
backend/app/services/auth_service.py - Database sessions → Application database: creates tables
backend/app/db/session.py