FatooraLite Pro — Master Product Documentation Suite
This folder is the single source of truth for what FatooraLite Pro is, how every feature behaves, and the technical specifications governing ZATCA Phase-2 compliance.
💡 Browsable Web Portal: Run
npm run docs:buildinsidefatooralite/and opendocs/portal/index.htmlto browse this complete documentation suite as a responsive, offline-ready HTML site with dark/light mode support.
Master Documentation Index
| # | Document | Target Audience & Purpose |
|---|---|---|
| 00 | Executive Summary & Product Architecture | Executive overview of business model, regulatory problem, customer personas, and differentiators. |
| 01 | Product Requirements Document (PRD) | Core product requirements: vision, user personas, module scope, and success metrics. |
| 02 | Enterprise System Architecture Reference | Tech stack, multi-tenant isolation, Prisma/Neon Postgres schema, crypto subsystem, and RAG vector store architecture. |
| 03 | User Flows & System Navigation | Step-by-step user journeys (signup, onboarding wizard, daily invoicing, clearance, AI dock). |
| 04 | Functional Specification | Comprehensive module specifications, REST API endpoint schemas, and status state machines. |
| 05 | Feature Documentation | Deep breakdown of each functional module (Invoices, Customers, Products, RBAC, Subscriptions). |
| 06 | Gap Analysis | Architectural evolution and historical mock inventory resolution log. |
| 07 | Roadmap | Phased development roadmap with acceptance criteria and delivery milestones. |
| 08 | Remaining Work | Archive of completed development tasks and verification checklists. |
| 09 | Deployment & Disaster Recovery Guide | Step-by-step production deployment guide, environment secrets, and Neon PITR backup/restore drills. |
| 10 | AI Layer & RAG Architecture | OpenRouter streaming integration, pgvector RAG search, system prompts, and tool calling. |
| 11 | Onboarding Pipeline Handoff | Automated ZATCA CSID issuance pipeline (CCSID → compliance checks → PCSID). |
| 12 | Master Roadmap | Strategic vision, future feature backlogs, and priority items. |
| 13 | Production Readiness Report | 18-category production readiness audit report with detailed bug fix verification. |
| 14 | Business Administration & Operations Manual | Non-Developer & Business Manual: Step-by-step 5-minute setup guide, National Address rules, ZATCA OTP guide, RBAC, and AI commands. |
| 15 | ZATCA Phase-2 Technical & Integration Guide | Technical Compliance Spec: UBL 2.1 XML schema, ECDSA secp256k1 keys, XAdES C14N-11, TLV QR code, and REST API clearance. |
Domain: Saudi Arabia ZATCA "Fatoora" Phase-2 (Integration Phase) E-Invoicing Compliance.
Product Status: Fully implemented, security-hardened, and cryptographically verified.