How kurinji-eswar/library-desk works
LIBRARY / DESK is a frontend-only library management workstation. A librarian enters through the desktop workspace, launches a workflow window, and performs catalog, member, circulation, or administrative actions. Screens consume shared state through LibraryContext; useLibraryStore applies business rules and persists records in browser localStorage, with seed data available for initialization and reset. The README documents search, reporting, backup, fines, and reservation notifications; some feature-specific source files were not sampled, so those links are documented rather than inferred from unseen calls.
Main entry points: LibraryContext.jsx Library Context · DesktopShell.jsx Desktop Shell · Window.jsx Window Chrome · useLibraryStore.js Library Store
Components 25
Desktop Workspace
- Desktop Shell
src/components/Layout/DesktopShell.jsx - Desktop Dashboard
src/components/DesktopView.jsx - Top Bar Search
src/components/Layout/TopBar.jsx
Catalog & Members
- Book Catalog
src/components/Books/BooksView.jsx - Book Details
src/components/Books/BookDetails.jsx - Book Editor
src/components/Books/BookFormModal.jsx - Member Directory
src/components/Members/MembersView.jsx - Member Profile
src/components/Members/MemberProfile.jsx - Member Editor
src/components/Members/MemberFormModal.jsx
Circulation
- Loan Management
src/components/Loans/LoansView.jsx - Checkout Form
src/components/Loans/NewLoanModal.jsx - Returns & Fines
src/components/Returns/ReturnsView.jsx - Reservations
src/components/Reservations/ReservationsView.jsx - Reservation Form
src/components/Reservations/NewReservationModal.jsx
Administration & Insights
- Category Manager
src/components/Categories/CategoriesView.jsx - Analytics & Reports
src/components/Reports/ReportsView.jsx - System Settings
src/components/Settings/SettingsView.jsx
Shared Platform
- Library Context
src/context/LibraryContext.jsx - Library Store
src/hooks/useLibraryStore.js - Demo Dataset
src/data/seedData.js - Browser Local Storage
- Window Chrome
src/components/Layout/Window.jsx - Date Utilities
src/utils/dateUtils.js - Persistence Helpers
src/utils/libraryUtils.js
Other components
- Librarian
Connections 48
- Librarian → Desktop Shell: uses
README.md - Desktop Shell → Desktop Dashboard: renders
src/components/Layout/DesktopShell.jsx - Desktop Shell → Top Bar Search: renders
src/components/Layout/DesktopShell.jsx - Desktop Shell → Book Catalog: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Member Directory: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Loan Management: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Returns & Fines: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Reservations: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Category Manager: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → Analytics & Reports: routes to
src/components/Layout/DesktopShell.jsx - Desktop Shell → System Settings: routes to
src/components/Layout/DesktopShell.jsx - Desktop Dashboard → Library Context: reads dashboard state
src/components/DesktopView.jsx - Top Bar Search → Library Context: uses shared state
src/components/Layout/TopBar.jsx - Book Catalog → Book Details: opens details
- Book Catalog → Book Editor: opens editor
- Member Directory → Member Profile: opens profile
src/components/Members/MembersView.jsx - Member Directory → Member Editor: opens editor
- Loan Management → Checkout Form: opens checkout
- Reservations → Reservation Form: opens request form
- Book Catalog → Library Context: uses library state
- Book Details → Library Context: uses library state
src/components/Books/BookDetails.jsx - Book Editor → Library Context: uses library state
src/components/Books/BookFormModal.jsx - Member Directory → Library Context: uses library state
src/components/Members/MembersView.jsx - Member Profile → Library Context: uses library state
src/components/Members/MemberProfile.jsx - Member Editor → Library Context: uses library state
- Loan Management → Library Context: uses library state
src/components/Loans/LoansView.jsx - Checkout Form → Library Context: uses library state
src/components/Loans/NewLoanModal.jsx - Returns & Fines → Library Context: uses library state
src/components/Returns/ReturnsView.jsx - Reservations → Library Context: uses library state
src/components/Reservations/ReservationsView.jsx - Reservation Form → Library Context: uses library state
- Category Manager → Library Context: uses library state
src/components/Categories/CategoriesView.jsx - Analytics & Reports → Library Context: uses library state
src/components/Reports/ReportsView.jsx - System Settings → Library Context: uses library state
src/components/Settings/SettingsView.jsx - Library Context → Library Store: creates store
src/context/LibraryContext.jsx - Library Store → Browser Local Storage: reads and writes
src/hooks/useLibraryStore.js - Library Store → Demo Dataset: loads or resets from
src/hooks/useLibraryStore.js - Library Store → Persistence Helpers: persists through
src/hooks/useLibraryStore.js - Library Store → Date Utilities: calculates dates with
src/hooks/useLibraryStore.js - Book Details → Window Chrome: renders in
src/components/Books/BookDetails.jsx - Member Profile → Window Chrome: renders in
src/components/Members/MemberProfile.jsx - Loan Management → Window Chrome: renders in
src/components/Loans/LoansView.jsx - Returns & Fines → Window Chrome: renders in
src/components/Returns/ReturnsView.jsx - Reservations → Window Chrome: renders in
src/components/Reservations/ReservationsView.jsx - Category Manager → Window Chrome: renders in
src/components/Categories/CategoriesView.jsx - Analytics & Reports → Window Chrome: renders in
src/components/Reports/ReportsView.jsx - System Settings → Window Chrome: renders in
src/components/Settings/SettingsView.jsx - Librarian → Top Bar Search: searches records
- Returns & Fines → Reservations: notifies when ready
README.md