How jeanmeijer/analog works
Project type and purpose
• This is a monorepo (TurboRepo) for a full-stack Next.js application (“apps/web”) backed by a tRPC/Node API (“packages/api”) with modular packages for authentication (“packages/auth”), database schema (Drizzle ORM in “packages/db”), environment management (“packages/env”), and a Google Calendar SDK (“packages/google-calendar”). It’s intended to deliver a web UI, API endpoints, and integrations with third-party services.
File structure
• Top-level:
• apps/web: Next.js 13+ app directory (React, server/client components, API routes for auth & tRPC)
• packages/api: Express or Fastify (via tRPC router definitions under src/routers)
• packages/auth: shared auth logic (client & server sign-in)
• packages/db: Drizzle ORM config & schema (auth tables, etc.)
• packages/env: environment‐variable validation & loaders
• packages/google-calendar: standalone TypeScript SDK for Google Calendar REST API
• tooling: shared ESLint and TSConfig presets
• Configuration: turbro.json orchestrates pipelines, root tsconfig.json, package.json with workspace settings.
README for additional insights
• README is generic Next.js scaffold; no custom architecture docs. The key insights come from file tree: using Next.js App Router, next/font, TRPC, Drizzle, monorepo tooling.