How brax1000/library-management-system works
This is a library-management application with two user-facing workflows: a Tkinter desktop app and a Vercel-compatible web dashboard/API. Users manage books and borrowers, check out and return loans, and review dashboard statistics, overdue items, and history; desktop settings also support loan-period changes and database backup/restore. The shared service layer validates operations and persists them in SQLite. Some UI and API implementation is unsampled, so edges for those documented capabilities are limited to relationships supported by the excerpts or README.
Main entry points: library_service.py Library service · main.py Desktop launcher · main_window.py Desktop interface · index.py Web dashboard and API
Components 14
Application entrypoints
- Desktop launcher
main.py - Web dashboard and API
api/index.py
User interfaces
- Desktop interface
ui/main_window.py - Web dashboard
api/index.py - Catalogue and members
ui/main_window.py - Loan and history views
ui/main_window.py - Settings and backups
ui/main_window.py
Library operations
- Library service
services/library_service.py - Input validation
utils/validators.py
SQLite persistence
- Database configuration
config.py - SQLite connection
database/connection.py - Library schema
database/schema.sql
Other components
- Desktop user
- Web user
Connections 17
- Desktop user → Desktop launcher: launches
README.md - Desktop launcher → Database configuration: loads path
main.py - Desktop launcher → SQLite connection: initializes
main.py - Desktop launcher → Library service: creates service
main.py - Desktop launcher → Desktop interface: opens
main.py - Web user → Web dashboard and API: requests pages
README.md - Web dashboard → Web dashboard and API: fetches endpoints
api/index.py - Web dashboard and API → Library service: routes operations
api/index.py - Catalogue and members → Library service: calls
ui/main_window.py - Loan and history views → Library service: calls
ui/main_window.py - Settings and backups → Library service: calls
- Desktop interface → Catalogue and members: renders
ui/main_window.py - Desktop interface → Loan and history views: renders
ui/main_window.py - Desktop interface → Settings and backups: renders
ui/main_window.py - Library service → Input validation: validates with
services/library_service.py - Library service → SQLite connection: queries through
services/library_service.py - SQLite connection → Library schema: loads schema
database/connection.py