Famalth Lynx Documentation
Welcome to the Famalth Lynx ERP & POS Suite Master Wiki. This wiki serves as the central documentation portal for store owners, cashiers, kitchen staff, accountants, system administrators, and software engineers.
Documentation Mind Map
Architecture & Tech
System design, platform capabilities and technical references
Hospitality & Dining
Restaurant workflows, floor operations and digital ordering
Retail, Stock & Procurement
POS billing, inventory control and supplier operations
Accounting & HRMS
Financial controls, workforce management and payroll
Cloud, AI & Automation
Cloud operations, intelligent assistance and workflow automation
Select any topic to open its documentation page.
1. Quick Start, Deployment & Infrastructure
| Document | Audience | Purpose | Link |
|---|---|---|---|
| System Overview & Readme | Everyone | Project introduction, stack overview, screenshots & quick setup | README.md |
| Retailer Installation Guide | Store Owners | Automated Windows installation for backend & billing clients | Retailer-Installation-Guide.md |
| Windows Installer Dev Guide | Engineers | Building production Inno Setup exe installers | Windows-Installer-Developer-Guide.md |
| Web Deployment Guide | SysAdmins | Compiling Flutter web and hosting on Node.js/Render | Web-Deployment-Guide.md |
| Render Cloud Deployment | DevOps | Deploying PostgreSQL and backend services on Render.com | Render-Cloud-Deployment-Guide.md |
| Own Server Deployment | DevOps | Self-hosting on private VPS (Ubuntu/Debian/Windows Server) | Own-Server-Online-Deployment-Guide.md |
| Google Gmail OAuth2 Setup | Admins | Setting up OAuth2 credentials for secure OTP/bill emailing | Google-Gmail-OAuth2-Setup-Guide.md |
| Settings & Config Guide | Admins | Configuration options and multi-tenant parameters | Settings-Guide.md |
| Disaster Recovery & Restore | Admins / Devs | AES-256 cloud backups, sync tracker & 1-click bare-metal restore | Disaster-Recovery-Documentation.md |
| Enterprise Control Plane | SuperAdmins / DevOps | Multi-tenant SaaS governance, 30-day quota guard & Data Doctor | User-Guide-Enterprise-Control-Plane-And-SaaS-Management.md |
| Clinic & OPD Healthcare Suite | Doctors / Receptionists | Patient OPD token queue, doctor consultation desk & digital prescriptions | User-Guide-Clinic-Management-And-OPD.md |
| System Maintenance Mode | DevOps / Admins | Advance warning banner & non-dismissible lockout modal | User-Guide-Maintenance-Mode-And-Lockout.md |
| Delivery Challan & Transport | Logistics / Cashiers | Fleet vehicle/driver tracking, dispatch loading manifests & POS conversion | User-Guide-Delivery-Challan-And-Transport-Logistics.md |
| Multi-Tiered Storage Volume | SysAdmins / DevOps | Partitioned root storage, enterprise tier, outlet sandboxing & .fambak archives | User-Guide-Tiered-Storage-And-Backup-Architecture.md |
| Windows EXE Backend Packaging | DevOps / Devs | Node.js pkg binary compilation, obfuscation & standalone bundle | Windows-EXE-Packaging-And-Deployment-Guide.md |
| PostgreSQL Removal & Clean Reinstall | SysAdmins / Support | Total PostgreSQL purge, registry wipe, and clean reinstallation | PostgreSQL-Complete-Removal-Guide.md |
2. Store Operator & Cashier Guides (No Coding Required)
Step-by-step illustrated workflows written for store operators, cashiers, restaurant captains, and inventory managers.
Authentication, Navigation & Fast Login
- Fast Staff Login & PIN Access User Guide: Dropdown quick-login, 4-digit staff PIN, and rapid post-login preloading.
- Staff PIN Configuration & Mobile Login: Enabling quick login in User Management and setting personal staff PINs.
- System Navigation & Clean Menu Structure: Cleaned-up left sidebar, deduplicated Operations menu, and role-based permissions.
Restaurant, Dining & Floor Management
- Captain Console & Floor Table Management User Guide: Multi-client separate table orders, assigning tables to waiters, and bulk Excel table import.
- Contactless QR Table Ordering User Guide: Printing table standees, tent cards, and managing incoming digital orders.
- Restaurant & Hospitality Operations Guide: Visual floor plan, KDS kitchen screens, course management, and bill splitting.
Retail POS, Procurement & Inventory
- POS Operations & Inventory Management Guide: High-speed barcode scanning, holding carts, receipt printing, and transfers.
- Stock Taking, Modifiers & GRN Verification User Guide: Cycle counts, extra cheese add-ons, dietary tags, and strictly manual GRN verification.
- Vendor Purchasing & Supplier Payments User Guide: International vendors (optional state), opening balance COA sync, VAT rounding & custom payment methods.
- Manufacturing BOM & Product Assembly User Guide: Bill of Materials recipes, raw material consumption, and batch packaging.
Accounting, HRMS & Promotions
- Accounting & Financial Ledger User Guide: Double-entry vouchers (JV, PV, RV, CV), bank reconciliation, and balance sheets.
- HRMS & Staff Payroll User Guide: Employee profiles, daily attendance punch, overtime, shift setups, and monthly payslips.
- Promotions, Loyalty & Lucky Draw User Guide: Happy hour rules, bill-value promotions, loyalty point rules, and raffle campaigns.
Invoicing, Tax & Workstations
- A5 Invoice & Template Designer User Guide: Half-page A5 invoice printing, thermal receipts, and header/footer customization.
- Auto-Tax Seeding & Regional Tax Integrity: International tax setups (GST, VAT, Sales Tax) and safe tax group replacement.
- Dynamic Workstation Console Routing Guide: Directing orders to Captain, Retailer, and Rider consoles.
AI, B2B Trade & Cloud
- Famalth Lynx AI Assistant User Guide: Natural language store insights, voice queries, and automatic PO draft creation.
- POS Sticky Notes & Shift Scratchpad: Color-coded shift checklists and pinned store reminders.
- B2B Marketplace & Vendor Portal User Guide: Supplier discovery, B2B wholesale orders, and catalog publishing.
- B2B Community Hub & Trade Chat User Guide: Direct trade messaging and group channels.
- 1-Click Cloud Migration User Guide: 2-way offline-to-online and online-to-offline store cloning.
- Cloud Features & Server Config User Guide: Configuring VPS and verifying cloud licenses.
- Security & Disaster Recovery User Guide: Master PIN recovery and database backups.
- M-Pesa & Mobile Money Integration User Guide: Safaricom Daraja STK push configuration and cashier mobile money checkout.
- Multi-Outlet & Warehouse Hierarchy User Guide: Multi-branch store linking, central warehouse distribution, and storage locations.
- Reports & Business Intelligence User Guide: 26+ comprehensive financial, inventory, tax, and sales performance reports.
- Payment Gateways & Virtual Simulator User Guide: Configuring Razorpay, Stripe, Square, PayPal, M-Pesa, UPI QR & POS simulation.
- Plugin Dev Studio & Marketplace User Guide: Browsing marketplace plugins and authoring custom store automations in Dev Studio.
- Third-Party Orders & Outlet OTP User Guide: Tracking food delivery aggregators, commission deductions, and SMS/Email OTP onboarding.
- Operations Document Modifications User Guide: Safely editing existing POs, GRNs, requisitions, and stock issues.
- QR Table Dining & Multi-Seat Portal User Guide: Contactless self-ordering, per-seat ordering (Seat 1..4), split-bill requests & waiter quick calls.
- Enterprise SaaS Control Plane & Fleet Management: Master tenant governance, 30-day quota guard, relationship managers & support tickets.
- Clinic Management, OPD Queue & Digital Prescriptions: Doctor consultation desk, vitals recording, stock medicine prescribing & public appointment portal.
- System Maintenance Mode & Emergency Lockout: Non-dismissible lockout modal, advance maintenance notices & auto-resumption.
- Delivery Challan, Fleet Vehicles & Transport Logistics: Issuing goods in transit challans, fleet vehicle/driver management, trip loading manifest & POS conversion.
- Multi-Tiered Storage & Enterprise Backup Architecture: Partitioned root volume (storage/), dedicated enterprise tier, outlet sandboxing & .fambak/.posbak archives.
- Mobile Billing Suite & Universal Companion Apps: Handheld POS terminal, bottom sheets, waiter/rider companion apps & QR scan-to-connect.
- Statutory GST Compliance & ITR Filing Hub: Generating GSTR-1, GSTR-3B, HSN summaries, government JSON export & ITR-4/5 schedules.
- Employee Self-Service Mobile Portal & HRMS: Geofenced GPS attendance punches, shift tracking, leave approvals & payslip PDFs.
- Logistics Fleet Driver App & Doorstep Verification: Driver mobile portal, route manifest, live GPS beacon & customer OTP delivery.
- Model Context Protocol (MCP) & AI Gateway User Guide: Connecting ChatGPT, Claude Desktop, Google Gemini, and Cursor AI to query sales, inventory, and draft bills.
- Complete Store Operations FAQ: Universal troubleshooting manual.
3. Developer & Technical Architecture Guides
In-depth technical references featuring data models, state machines, Sequence Diagrams, and core system invariants.
sequenceDiagram
autonumber
actor Staff as Cashier / Waiter
participant Client as Flutter Client
participant API as Node.js Gateway
participant Cache as Redis Cache
participant DB as PostgreSQL DB
participant Printer as Hardware Thermal / A5
Staff->>Client: PIN Login / Select User
Client->>API: POST /api/auth/pin-login {outlet_id, username, pin}
API->>DB: Query user by outlet & username
DB-->>API: User record + hashed PIN
API-->>Client: JWT Token + Permissions
par Parallel Preloading
Client->>API: GET /api/settings/taxes
Client->>API: GET /api/payment-methods
Client->>API: GET /api/inventory/categories
end
Staff->>Client: Place Order / Add Modifiers (Extra Cheese)
Client->>API: POST /api/sales or /api/restaurant/kots
API->>DB: Atomic Transaction: Commit Sale + Deduct Stock + COA Journal
DB-->>API: Success
API-->>Client: Bill / KOT Payload
Client->>Printer: Render Vector PDF / ESC-POS Thermal
Core Architecture Reference Documents:
- Master Feature & Documentation Coverage Matrix: Comprehensive 100% audit of all 85+ screens and 38 backend routes.
- System Architecture Upgrades & Changelog (Sept-Nov 2026): Technical timeline of major refactors, cloud migrations, and optimizations.
- Bug Fixes & Resolutions Changelog (Month-Wise): Chronological month-by-month record of resolved bugs, concurrency fixes, and security patches.
- Master REST API Endpoint Reference: Complete parameter, header, and response schema definitions for all backend endpoints.
- Fast Login & Preloading Architecture Guide: Parallel cache warming, asynchronous startup, and benchmark optimizations.
- Staff PIN & Quick Login Architecture Guide: Multi-user PIN collision handling and outlet-scoped authentication.
- Captain Console & Table Management Architecture: Multi-client table session schemas, waiter bindings, and Excel parser algorithms.
- QR Table Ordering & Digital Dining Architecture: Vector QR geometry designer, public ordering gateway, and real-time KDS dispatch.
- Restaurant & Hospitality Technical Architecture: Floor state machines, KOT item lifecycle, and bill merging algorithms.
- Navigation Hierarchy & Menu Deduplication Architecture: Dynamic drawer filtering and route deduplication protocols.
- Vendor Lifecycle, Purchase Engine & COA Integration: Opening balance double-entry automation, VAT integer rounding, and payment method COA mappings.
- Stock Taking, Modifier Recipes & GRN Verification Architecture: Variance audit journals, raw material deductions, and operator-only manual GRN doctrine.
- POS Engine, Inventory State Machine & BOM Manufacturing: Concurrency-safe stock ledger, barcode generation, and assembly production.
- Financial Accounting, COA & Double-Entry Ledger: Balanced voucher validation, amortized loan calculations, and real-time financial reporting.
- HRMS, Shift Scheduling & Payroll Processing Engine: Biometric punch algorithms, shift rules, overtime tiers, and payslip calculation.
- AI Framework, Autonomous Background Agents & Lynx: Autonomous agent loops, tool declarations, and recommendation engines.
- Plugins, Workflows & WhatsApp Queue Architecture: Event hooks, isolated VM sandbox runtimes, and WhatsApp queue worker with adaptive backoff.
- A5 Invoice Rendering Pipeline & Template Schema: JSON template schema, vector PDF generation, and thermal ESC/POS commands.
- Auto-Tax Seeding & Tax Integrity Engine: Country-specific seeders and relational foreign key replacement guards.
- Dynamic Workstation Console Routing Architecture: Multi-workstation message routing and event dispatching.
- Developer Security, Anti-DDoS, Rate Limiting & Load Balancer Guide: Redis sliding-window limiters, token buckets, and cryptographic storage.
- M-Pesa Mobile Money Integration Architecture: Safaricom Daraja STK push lifecycle, OAuth token caching, and webhook processing.
- Multi-Outlet Hierarchy & Scoping Architecture: Multi-tenant database routing, warehouse tree hierarchy, and numbering settings.
- Reports, Analytics & BI Engine Architecture: SQL aggregations, Redis cache warming, and vector PDF rendering.
- Payment Gateways & Virtual Simulator Architecture: Multi-gateway credential store, secret masking & Flutter simulator.
- Plugin Dev Studio & Sandbox Architecture: In-app IDE, safe TypeScript runner, sandbox lifecycle hooks & marketplace publishing.
- Third-Party Orders & Outlet OTP Architecture: Delivery aggregator order normalization, commissions & OTP onboarding.
- Operations Document Modifications & Differential Ledger: Differential stock adjustments, row locking & tax group recalculation.
- Enterprise SaaS Control Plane & Data Doctor: Master IAM, multi-tenant fleet governance, 30-day quota guard, sandboxed Data Doctor SQL runner, vector PDF invoicing & Inno Setup packaging.
- Clinic Management & Digital Prescription Architecture: Appointment state machine, doctor desk vitals JSONB, direct pharmacy billing & vector prescription PDF.
- System Maintenance & Lockout Middleware Engine: Maintenance middleware, atomic JSON state storage, role-based bypass rules & Flutter interceptor.
- Delivery Challan, Fleet Vehicles & Transport Architecture: Logistics schema, trip assignment manifest, doorstep OTP verification & POS sales conversion pipeline.
- Multi-Tiered Storage & Enterprise Backup Architecture: Partitioned root volume (storage/), dedicated enterprise tier, outlet sandboxing, .fambak archive internals & quota services.
- Model Context Protocol (MCP) & AI Gateway Architecture: SSE & JSON-RPC transports, dynamic ChatGPT OpenAPI 3.0 spec, Gemini function calling, and RFC 6749/7636 OAuth 2.0 PKCE server.
- Tax Compliance, Employee Portal & Driver Fleet Architecture: GSTR-1/3B engine, ITR statement mapping, Haversine GPS geofencing & driver OTP.
- QR Table Dining & Multi-Seat Architecture: Split-bill session engine, seat-level tagging, combined vs per-seat totals, and standalone dining app (
main_dining.dart). - 1-Click Relational Store Migration Architecture: In-memory relational ID translation engine and sequence re-alignment.
- B2B Wholesale Marketplace & Community Chat Architecture: WebSocket chat protocols, vendor discovery, and direct PO translation.
- Lynx AI, Sticky Notes & Currency Engine Architecture: Natural language parser, draggable sticky notes model, and multi-currency exchange matrix.
- Backend Developer Guide& Frontend Developer Guide: Codebase layout, styling conventions, and controller standards.
4. Web Application & Public Portals
- Web Release Output:
backend/public/ - Customer Self-Ordering Portal:
http://<server-ip>:3000/#/dining?outlet_id=1&table_id=5 - Delivery Rider Portal:
http://<server-ip>:3000/#/rider - Retailer Operations Console:
http://<server-ip>:3000/#/retailer
5. Contributing & Community Standards
- Contributing Guidelines: Git branching model, pull request guidelines, and TypeScript/Flutter formatting rules.
- Code of Conduct: Community standards and participant expectations.
- Security Policy: Responsible vulnerability disclosure process.
Wiki Maintained by Famalth Technologies Engineering Team. Last Updated: November 2026.