How ajat888/natunapos works
NatunaPOS is a Flutter point-of-sale app for small food businesses, with sales, expense, inventory, closing, and reporting capabilities indicated by its screen and service modules. Its likely daily workflow is recording sales and expenses, then reviewing a closing or report; local persistence and optional synchronization support that workflow. The repository also contains HTTP endpoints for PIN management and AI-assisted reports. The README provides no workflow detail, and most Flutter implementation files were not sampled, so those relationships are shown as unverified rather than asserted.
Main entry points: main_layout.dart App navigation · local_db.dart Local database · _shared.py Auth and PIN helpers · analyze.py AI report endpoint
Components 20
Sales and operations
- NatunaPOS app
lib/main.dart - App navigation
lib/screens/main_layout.dart - Point of sale
lib/screens/pos_screen.dart - Products and categories
lib/screens/kelola_screen.dart - Expense tracking
lib/screens/expenses_screen.dart - Daily closing
lib/screens/closing_screen.dart - Transaction history
lib/screens/history_screen.dart
Business management
- Reports and targets
lib/screens/reports_screen.dart - Business dashboard
lib/screens/dashboard_screen.dart - Store settings
lib/screens/settings_screen.dart
App data and services
- Local database
lib/core/local_db.dart - Report calculations
lib/services/report_service.dart - Data synchronization
lib/services/sync_runner.dart - Supabase service
lib/services/supabase_service.dart
Server integrations
- AI report endpoint
api/analyze.py - PIN endpoint
api/pin.py - Auth and PIN helpers
api/_shared.py
Other components
- Business owner
- Supabase
- Groq AI API
Connections 23
- Business owner → NatunaPOS app: uses
- NatunaPOS app → App navigation: starts
- App navigation → Point of sale: opens
- App navigation → Products and categories: opens
- App navigation → Expense tracking: opens
- App navigation → Daily closing: opens
- App navigation → Transaction history: opens
- App navigation → Reports and targets: opens
- App navigation → Business dashboard: opens
- App navigation → Store settings: opens
- Point of sale → Local database: persists sales
- Products and categories → Local database: persists catalog
- Expense tracking → Local database: persists expenses
- Daily closing → Local database: stores closing
- Transaction history → Local database: reads history
- Reports and targets → Report calculations: requests report data
- Business dashboard → Report calculations: requests metrics
- Data synchronization → Supabase service: syncs data
- Supabase service → Supabase: uses
- AI report endpoint → Auth and PIN helpers: verifies session and PIN
api/analyze.py - AI report endpoint → Groq AI API: requests analysis
api/analyze.py - PIN endpoint → Auth and PIN helpers: uses PIN helpers
api/pin.py - Auth and PIN helpers → Supabase: reads and writes PIN data
api/_shared.py