How rohit91singh9/hrms-system works
Codnizant HRMS is a multi-tenant HR management application with a vanilla-JS UI and FastAPI/SQLAlchemy backend. Users interact through the UI and API for authentication, core HR data, workflow operations, and AI/reporting features; tenant-scoped records persist in the configured database. The graph preserves README-documented product areas, including features whose implementation excerpts were not shown. Some links rely on the SOURCE INDEX or README rather than sampled function bodies; unsampled details are not inferred.
Main entry points: database.py SQLAlchemy session · main.py FastAPI application · auth.py Authentication and tenants · hooks.py Business rules
Components 18
User experience
- Web interface
frontend/app.js - FastAPI application
backend/app/main.py
Identity and tenancy
- Authentication and tenants
backend/app/auth.py - Tokens and MFA
backend/app/security.py - RBAC and tenant scope
backend/app/deps.py
HR operations
- Scoped HR data API
backend/app/crud.py - HR workflows
backend/app/workflows.py - Business rules
backend/app/hooks.py - Resume parsing and matching
backend/app/nlp.py - Payroll calculations
backend/app/payroll_calc.py
AI and insights
- Reports and CSV
backend/app/reports.py - AI assistant and analysis
backend/app/ai.py
Shared platform
- SQLAlchemy session
backend/app/database.py - HR and audit records
backend/app/models.py - Tenant bootstrap data
backend/app/seed.py - Runtime settings
backend/app/config.py
Other components
- HRMS user
- Configured SQL database
Connections 30
- HRMS user → Web interface: uses
README.md - Web interface → FastAPI application: calls API
README.md - FastAPI application → Authentication and tenants: registers routes
backend/app/main.py - FastAPI application → Scoped HR data API: registers routes
backend/app/main.py - FastAPI application → HR workflows: registers routes
backend/app/main.py - FastAPI application → Reports and CSV: registers routes
backend/app/main.py - FastAPI application → AI assistant and analysis: registers routes
backend/app/main.py - FastAPI application → Tenant bootstrap data: initializes data
backend/app/main.py - Authentication and tenants → Tokens and MFA: uses
backend/app/auth.py - Authentication and tenants → RBAC and tenant scope: checks access
backend/app/auth.py - Authentication and tenants → SQLAlchemy session: opens session
backend/app/auth.py - Authentication and tenants → Tenant bootstrap data: creates tenant
backend/app/auth.py - RBAC and tenant scope → Tokens and MFA: decodes tokens
backend/app/deps.py - RBAC and tenant scope → SQLAlchemy session: loads session
backend/app/deps.py - Scoped HR data API → Business rules: applies hooks
backend/app/crud.py - Scoped HR data API → RBAC and tenant scope: checks scope
backend/app/crud.py - Scoped HR data API → SQLAlchemy session: queries records
backend/app/crud.py - HR workflows → Business rules: uses rules
backend/app/workflows.py - HR workflows → Payroll calculations: calculates payroll
backend/app/workflows.py - HR workflows → SQLAlchemy session: runs queries
backend/app/workflows.py - Business rules → Resume parsing and matching: parses and scores
backend/app/hooks.py - Business rules → Tokens and MFA: hashes credentials
backend/app/hooks.py - Reports and CSV → SQLAlchemy session: queries records
backend/app/reports.py - AI assistant and analysis → Resume parsing and matching: ranks policy text
backend/app/ai.py - AI assistant and analysis → SQLAlchemy session: reads and writes
backend/app/ai.py - Tenant bootstrap data → SQLAlchemy session: creates tables
backend/app/seed.py - Tenant bootstrap data → Business rules: creates checklists
backend/app/seed.py - SQLAlchemy session → Runtime settings: reads database URL
backend/app/database.py - HR and audit records → SQLAlchemy session: declares ORM base
backend/app/models.py - SQLAlchemy session → Configured SQL database: connects
backend/app/database.py