đ Monorepo Folder Topology
đĄī¸ Architectural Decoupling
LinkFlow AI utilizes a multi-frontend monorepo configuration to isolate deployment footprints, bundle sizes, and security contexts.
-
Identity Domains:
apps/webandapps/merchantshare a user identity system.apps/adminis fully isolated with distinct tables and cookies (linkflow.admin) to prevent privilege escalation. -
Execution Boundaries: Business logic is centralized in
packages/api(tRPC) andpackages/db(Prisma). UI shells merely map routes and render shared primitives. - Worker Isolation: Compute-heavy AI crawling and prompt orchestration are delegated to the Python FastAPI worker, preventing Node.js event-loop blocks.