How frycodelab/nicegui-component-based works
NiceStack is a Python/NiceGUI web-app starter with a session-authenticated user journey: a visitor reaches the app, signs in, completes any required password change, and then navigates pages in the shared shell. Its broader capabilities include account administration, auditing, localization, operational demo pages, reusable UI, printing, PWA support, and logging. The graph combines sampled calls and imports with explicitly documented routing and layer responsibilities; unsampled subsystems are represented only where the README or source index supports them.
Main entry points: main.py App routing · user_service.py User rules · notifications.py Notifications · users_content.py User administration
Components 30
Application runtime
- App routing
app/main.py - App shell
app/header.py - SQLite persistence
app/core/database.py - Logging
app/core/logging_config.py
Identity and governance
- Auth and access
app/core/security.py - Login page
app/views/login_content.py - Password change
app/views/change_password_content.py - User administration
app/views/users_content.py - User rules
app/services/user_service.py - User model
app/models/user.py - Role enum
app/models/enums.py - Audit review
app/views/audit_content.py - Audit trail service
app/services/audit_service.py - Audit model
app/models/audit.py
Pages and demos
- Dashboard
app/views/dashboard_content.py - Operations demos
app/views/orders_content.py - Production demo
app/views/production_content.py - Shipping demo
app/views/shipping_content.py - Packing demo
app/views/packings_content.py - Pallet demo
app/views/pallets_content.py - Design system
app/views/design_system_content.py - Icon browser
app/views/icons_content.py - Print demo page
app/views/print_demo_content.py
Shared capabilities
- Print renderer
app/components/print_component.py - Notifications
app/components/notifications.py - Dialog components
app/components/dialogs.py - Live localization
app/services/i18n.py - PWA assets
app/assets/pwa/sw.js
Other components
- Visitor
- Browser
Connections 43
- Visitor → App routing: opens app
README.md - App routing → Auth and access: installs middleware
app/main.py - App routing → App shell: applies layout
README.md - App routing → Login page: routes to
README.md - App routing → Dashboard: routes to
app/main.py - App routing → Operations demos: routes to
app/main.py - App routing → Production demo: routes to
app/main.py - App routing → Shipping demo: routes to
app/main.py - App routing → Packing demo: routes to
app/main.py - App routing → Pallet demo: routes to
app/main.py - App routing → Design system: routes to
app/main.py - App routing → Icon browser: routes to
app/main.py - App routing → Audit review: routes to
app/main.py - App routing → User administration: routes to
app/main.py - Login page → Auth and access: authenticates with
app/views/login_content.py - Login page → User rules: checks account
app/views/login_content.py - Auth and access → User rules: loads current user
app/core/security.py - User rules → SQLite persistence: reads and writes
app/services/user_service.py - User rules → User model: returns user data
app/services/user_service.py - User rules → Role enum: uses roles
app/services/user_service.py - Password change → User rules: updates password
- User administration → User rules: manages accounts
app/views/users_content.py - User administration → Dialog components: uses dialogs
app/views/users_content.py - User administration → Audit trail service: records actions
app/views/users_content.py - Audit review → Audit trail service: queries trail
app/views/audit_content.py - Audit trail service → SQLite persistence: persists entries
app/services/audit_service.py - Audit trail service → Audit model: maps entries
app/services/audit_service.py - Dashboard → Live localization: translates labels
app/views/dashboard_content.py - Dashboard → Notifications: shows notices
app/views/dashboard_content.py - Operations demos → Notifications: shows notices
app/views/orders_content.py - Production demo → Notifications: shows notices
app/views/production_content.py - Shipping demo → Notifications: shows notices
app/views/shipping_content.py - Packing demo → Notifications: shows notices
app/views/packings_content.py - Pallet demo → Notifications: shows notices
app/views/pallets_content.py - Design system → Notifications: demonstrates toasts
app/views/design_system_content.py - Design system → Dialog components: demonstrates dialogs
app/views/design_system_content.py - Design system → Live localization: translates labels
app/views/design_system_content.py - Icon browser → Live localization: translates labels
app/views/icons_content.py - Print demo page → Print renderer: renders print demo
app/views/print_demo_content.py - App routing → Print renderer: serves print route
README.md - App routing → PWA assets: serves worker
app/main.py - App routing → Logging: configures logging
README.md - Print renderer → Browser: opens print tab
app/components/print_component.py