FlowOS system architecture

FlowOS system architecture An architecture diagram generated by Archify. apps/web · Next.js, the browser's app · Architecture component apps/web Next.js, the browser's app apps/api · NestJS, scoped Prisma · Architecture component apps/api NestJS, scoped Prisma Microsoft 365 · Entra ID and Graph · Architecture component Microsoft 365 Entra ID and Graph apps/mail · Graph sync, one instance · Architecture component apps/mail Graph sync, one instance Postgres · Source of truth · Architecture component Postgres Source of truth Redis · BullMQ queues · Architecture component Redis BullMQ queues Mail storage · S3 or local folder · Architecture component Mail storage S3 or local folder services/units · Python, stateless · Architecture component services/units Python, stateless apps/worker · Queue listeners, pipeline · Architecture component apps/worker Queue listeners, pipeline AI gateway · Bedrock, OpenAI, Azure · Architecture component AI gateway Bedrock, OpenAI, Azure sign-in HTTP verify token, send mail scoped convert delta poll raw mail hand-off job job convert model calls