How jirayu-ct-dev/saijai-phareab works
Saijai Phareab is a Thai-first laundry-shop management app. Its central workflow is staff entry of a storefront or package order, followed by payment/document handling and operational reporting; customers also have account, membership, and order-history features. The README documents these product flows and optional LINE and thermal-print capabilities. Edges are limited to documented relationships or calls visible in excerpts; unsampled API wiring is not asserted.
Main entry points: server.mjs Print Gateway · pos POS ordering · service-orders Service orders · tcp.js TCP transport
Components 24
Shop operations
- POS ordering
app/components/admin/pos - Service orders
server/api/admin/service-orders - Package credits
server/utils/serviceOrderCredits.ts - Storefront catalog
shared/data/mockPricing.ts - Packages and sales
server/api/admin/packages - Payments
server/api/admin/payments - Receipts and quotes
server/utils/paymentDocument.ts - Sales reporting
server/api/admin/dashboard - Admin workspace
app/pages/admin
Customer services
- Member portal
app/pages/me - Member services
server/api/me - Business records
shared/types
Identity and integrations
- Authentication
server/api/auth/[...all].ts - LINE integration
server/api/line/webhook.post.ts - Notifications
server/utils/notify.ts
Thermal printing
- Printer controls
app/composables/useThermalPrinter.ts - Print Gateway
print-bridge/server.mjs - TCP transport
print-bridge/transport/tcp.js - Byte fingerprint
print-bridge/byteFingerprint.mjs - Printer mutex
print-bridge/mutex.mjs
Other components
- Staff
- Customer
- Shop browser
- LAN printer
Connections 20
- Staff → POS ordering: enters orders
README.md - POS ordering → Service orders: records orders
README.md - Service orders → Package credits: uses credits
- POS ordering → Storefront catalog: prices items
README.md - Staff → Packages and sales: sells packages
README.md - Admin workspace → Sales reporting: views reports
README.md - Customer → Member portal: uses portal
README.md - Member portal → Member services: requests account data
- Customer → Payments: pays orders
README.md - Payments → Receipts and quotes: issues documents
README.md - Customer → Authentication: signs in
README.md - Customer → LINE integration: uses LINE
README.md - Service orders → Notifications: notifies on orders
- Shop browser → Printer controls: starts printing
README.md - Printer controls → Print Gateway: sends print jobs
README.md - Print Gateway → TCP transport: creates transport
print-bridge/server.mjs - Print Gateway → Byte fingerprint: fingerprints payload
print-bridge/server.mjs - TCP transport → Byte fingerprint: fingerprints bytes
print-bridge/transport/tcp.js - Print Gateway → Printer mutex: uses mutex
print-bridge/server.mjs - TCP transport → LAN printer: writes bytes
print-bridge/transport/tcp.js