How mohaneddz/warraq works
Warraq is a desktop library-management system. Staff sign in, then work through catalogue, member, circulation, reservation and inventory workflows; reports, activity, notifications and configurable settings support those operations. The React app routes pages through its application shell, uses shared stores and query providers, and persists library data in Supabase. The README also documents optional metadata providers and native Tauri administration. Several feature modules are unsampled, so their presence is grounded in the README and tree; only explicit or indexed relationships are drawn.
Main entry points: App.tsx App routing · supabaseClient.ts Supabase client · library.ts Library repository · Catalog.tsx Catalogue
Components 25
Desktop application
- React entry
src/main.tsx - App routing
src/app/App.tsx - Query providers
src/app/providers.tsx - App shell
src/components/layout/AppShell.tsx
Library workflows
- Sign-in
src/sections/Login.tsx - Catalogue
src/sections/Catalog.tsx - Member records
src/sections/Members.tsx - Circulation
src/sections/Loans.tsx - Reservations
src/sections/Reservations.tsx - Inventory
src/sections/Inventory.tsx - Dashboard
src/sections/Dashboard.tsx - Reports
src/sections/Reports.tsx - Activity log
src/sections/Activity.tsx - Notifications
src/sections/Notifications.tsx - Settings
src/sections/Settings.tsx - Onboarding
src/sections/Onboarding.tsx
Data and services
- Library repository
src/data/repositories/library.ts - Auth service
src/data/auth.ts - Library settings
src/store/librarySettingsStore.ts - Supabase client
src/data/supabaseClient.ts - Metadata integrations
src/utils/metadata.ts
Native administration
- Tauri admin
src-tauri/src/admin.rs - Tauri commands
src-tauri/src/lib.rs
Other components
- Library staff
- Shared Postgres
Connections 33
- Library staff → React entry: starts app
- React entry → App routing: mounts
src/main.tsx - App routing → Query providers: wraps
src/app/App.tsx - App routing → Auth service: checks session
src/app/App.tsx - App routing → Supabase client: initializes
src/app/App.tsx - App routing → Sign-in: routes
src/app/App.tsx - App routing → App shell: wraps pages
src/app/App.tsx - App routing → Catalogue: routes
src/app/App.tsx - App routing → Member records: routes
src/app/App.tsx - App routing → Reservations: routes
src/app/App.tsx - Library staff → Catalogue: manages titles
- Library staff → Member records: manages members
- Library staff → Circulation: handles circulation
- Library staff → Inventory: audits shelves
- Library staff → Reports: reviews reports
- Library staff → Activity log: reviews activity
- Library staff → Notifications: reviews alerts
- Library staff → Settings: configures library
- Library staff → Onboarding: sets up
- Catalogue → Library repository: saves titles
src/sections/Catalog.tsx - Reservations → Library repository: updates holds
src/sections/Reservations.tsx - App shell → Library repository: loads dashboard
src/components/layout/AppShell.tsx - App shell → Auth service: logs out
src/components/layout/AppShell.tsx - Library repository → Supabase client: queries
src/data/repositories/library.ts - Auth service → Supabase client: authenticates
src/data/auth.ts - Library settings → Supabase client: loads settings
src/store/librarySettingsStore.ts - Supabase client → Shared Postgres: reads and writes
src/data/supabaseClient.ts - Supabase client → Library repository: sweeps reservations
src/data/database.ts - Catalogue → Metadata integrations: enriches records
src/sections/Catalog.tsx - Auth service → Tauri commands: invokes admin
src/data/auth.ts - Tauri commands → Tauri admin: dispatches commands
src-tauri/src/lib.rs - Tauri admin → Shared Postgres: administers accounts
- Metadata integrations → Shared Postgres: optional providers