How zmusaddique/scalable-chat-app works
Project type and purpose
• This is a Turborepo-based monorepo containing multiple applications and shared packages.
• It includes two Next.js frontends (“web” and “docs”), a Node-based server (“apps/server”), and three shared packages (UI library, ESLint config, TypeScript config).
• The primary goal is to demonstrate how to develop, build, and cache multiple TypeScript projects together with shared code and configuration.
File structure
• Top-level directories:
• apps/
– docs/ (Next.js documentation site)
– web/ (Next.js primary web app)
– server/ (Node service exposing WebSocket)
• packages/
– ui/ (shared React component library)
– eslint-config/ (shared ESLint rules)
– typescript-config/ (shared tsconfig presets)
• turbo.json (build orchestration)
• package.json, .npmrc (root configuration)
• Each Next.js app has its own app directory, public assets, layout/page components, and context (web uses SocketProvider).
• apps/server contains a simple TypeScript entry point and a socket service.
• No database layer is present—real-time communication happens via WebSocket.
README for additional insights
• Confirms use of Next.js, React, TypeScript, ESLint, Prettier, Turborepo.
• Describes monorepo tasks: dev, build, remote caching via Vercel.