Codebase guides
Find your way around any stack.
70 field guides to JavaScript and TypeScript codebases. Each one shows how to recognise the stack, where code usually lives, where to start reading, how a request flows, and the first questions worth asking.
Frontend frameworks
Next.js (App Router)
Read a Next.js App Router project: how app/ folders become routes, where Server and Client Components split, and how data, actions and proxy fit together.
Next.js (Pages Router)
Read a Next.js Pages Router codebase: how pages/ maps to URLs, where getServerSideProps and getStaticProps fetch data, and how API routes and _app fit in.
React with Vite
Read a React single-page app built with Vite: from index.html and main.tsx to the router, state, API layer and environment variables.
Create React App
Read a Create React App codebase: react-scripts, src/index.js, REACT_APP_ variables, setupProxy and what to know about CRA's deprecation before you change it.
Vue 3
Read a Vue 3 codebase: single-file components, <script setup>, composables, Vue Router and Pinia stores, and how to trace data from store to template.
Angular
Read an Angular codebase: bootstrap, standalone components or NgModules, routes, services and dependency injection, and how RxJS and signals move data.
Svelte
Read a Svelte app: .svelte components, Svelte 5 runes like $state and $props, stores, and how a Vite-built Svelte SPA is wired together.
SolidJS
Read a SolidJS codebase: signals, components that run once, fine-grained JSX updates, stores, resources and the router.
Preact
Read a Preact codebase: the React-compatible API, preact/compat aliases, hooks, @preact/signals, and what differs from a React app.
Lit (web components)
Read a Lit codebase: custom elements, LitElement classes, reactive properties, html templates, events and how components compose in plain HTML.
Qwik
Read a Qwik or Qwik City codebase: component$, the $ boundaries behind resumability, signals, routeLoader$, actions and file-based routes.
Full-stack and content
Remix
Read a Remix v2 codebase: flat file routes, loaders and actions, nested layouts with Outlet, entry files, and how forms post back to the server.
React Router v7 (framework mode)
Read a React Router v7 framework-mode app: app/routes.ts config, loaders, actions, clientLoader, generated +types and server rendering.
SvelteKit
Read a SvelteKit app: src/routes with +page and +layout files, load functions, form actions, +server endpoints, hooks and adapters.
Nuxt
Read a Nuxt 3 or Nuxt 4 app: pages, auto-imported components and composables, Nitro server routes, plugins, middleware and nuxt.config.
Astro
Read an Astro site: src/pages routes, .astro components, islands with client: directives, content collections, endpoints and integrations.
Gatsby
Read a Gatsby site: gatsby-config plugins, gatsby-node createPages, page templates, GraphQL page queries and the browser and SSR APIs.
TanStack Start
Read a TanStack Start app: file-based TanStack Router routes, __root.tsx, loaders, server functions and the generated route tree.
Docusaurus
Read a Docusaurus documentation site: docusaurus.config, docs and sidebars, blog, custom pages, swizzled theme components and plugins.
VitePress
Read a VitePress site: .vitepress/config, the default theme and its extension, Markdown pages, Vue components in Markdown, and data loaders.
Strapi
Read a Strapi v5 project: content-type schemas, controllers, services and routes under src/api, config files, lifecycle hooks and plugins.
Payload CMS
Read a Payload CMS codebase: payload.config, collections and globals, fields, access control, hooks and how Payload 3 runs inside Next.js.
Medusa
Read a Medusa v2 commerce backend: medusa-config, modules, workflows and steps, API routes, subscribers, scheduled jobs and module links.
Backend and APIs
Express
Read an Express API: where the app is created, middleware order, routers and controllers, error-handling middleware and how a request reaches the database.
Fastify
Read a Fastify server: plugins and encapsulation, autoload folders, JSON schema validation, hooks, decorators and how a request is handled.
NestJS
Read a NestJS codebase: modules, controllers, providers and dependency injection, plus the request lifecycle of middleware, guards, interceptors, pipes and filters.
Koa
Read a Koa app: the async middleware onion, ctx, koa-router, error handling and how responses are set.
Hono
Read a Hono app: routing, middleware, the context object, validators, sub-apps with app.route and the typed RPC client across runtimes.
hapi
Read a hapi server: route configs, plugins, the request lifecycle with extension points, auth strategies and Joi validation.
AdonisJS
Read an AdonisJS 6 app: start/routes, controllers, Lucid models, middleware in start/kernel, validators, providers and the IoC container.
tRPC
Read a tRPC codebase: initTRPC, routers and procedures, context, middleware, the AppRouter type and how the client calls are wired up.
Apollo Server (GraphQL)
Read a GraphQL server built with Apollo Server: type definitions, resolver maps, context, data sources and how a query is resolved field by field.
Socket.IO
Read a Socket.IO real-time app: server setup, connection handlers, events, rooms and namespaces, middleware for auth, and scaling adapters.
BullMQ (job queues)
Read a BullMQ job system: queues, producers, workers and processors, retries, repeatable jobs and how work moves between processes through Redis.
Elysia
Read an Elysia server on Bun: method chaining, plugins with use, lifecycle hooks, schema validation with t, and the Eden client for end-to-end types.
Runtimes and cloud
Deno
Read a Deno project: deno.json tasks and import maps, jsr: and npm: specifiers, Deno.serve, permissions and how it differs from a Node codebase.
Bun
Read a Bun project: package.json scripts, bunfig.toml, Bun.serve, built-in APIs like bun:sqlite and Bun.file, and bun test.
Cloudflare Workers
Read a Cloudflare Workers project: wrangler config, the fetch handler, bindings for KV, D1, R2, Durable Objects and Queues, and scheduled events.
AWS Lambda (Serverless and SAM)
Read a Lambda codebase: handler functions, the event shapes they receive, how Serverless Framework or SAM wires triggers, and shared layers.
AWS CDK
Read an AWS CDK app in TypeScript: the bin entry, stacks, constructs, how Lambda code is bundled, cross-stack references and cdk.json context.
Pulumi (TypeScript)
Read a Pulumi TypeScript program: Pulumi.yaml, stacks and config, resources, Inputs and Outputs with apply, and component resources.
Firebase Cloud Functions
Read a Firebase backend: functions/src/index.ts exports, HTTPS and callable functions, Firestore triggers, the Admin SDK and firebase.json.
Supabase (with Edge Functions)
Read a Supabase-backed codebase: the supabase/ folder, Edge Functions on Deno, migrations and row-level security, and the client in the app.
Node.js command-line tool
Read a Node CLI: the bin field, the entry script, argument parsing with commander, yargs or oclif, commands, config loading and exit codes.
Desktop, mobile and extensions
Electron
Read an Electron app: the main process, preload scripts and contextBridge, the renderer, IPC channels and how packaging is configured.
React Native
Read a React Native app: index.js and AppRegistry, navigation, screens, native modules, Metro config and the android and ios folders.
Expo
Read an Expo app: app.json or app.config.ts, Expo Router's app/ directory, _layout files, expo modules, config plugins and EAS builds.
Ionic and Capacitor
Read an Ionic and Capacitor app: capacitor.config, the web app inside, Ionic UI components, native plugins and the android and ios projects.
Chrome extension (Manifest V3)
Read a Manifest V3 browser extension: manifest.json, the background service worker, content scripts, popup and options pages, and message passing.
VS Code extension
Read a VS Code extension: the contributes section of package.json, activation events, activate(), commands, disposables, webviews and language servers.
Discord bot (discord.js)
Read a discord.js bot: the Client and intents, event handlers, slash command files, command registration scripts and how interactions are answered.
Slack app (Bolt for JavaScript)
Read a Slack app built with Bolt: the App setup, socket mode or HTTP, listeners for commands, events, actions and views, and ack().
Figma plugin
Read a Figma plugin: manifest.json, the main thread code with the figma API, the UI iframe, and the postMessage bridge between them.
Data and state
Prisma
Read a Prisma-backed codebase: schema.prisma models and relations, migrations, the PrismaClient instance, generated types, transactions and client extensions.
Drizzle ORM
Read a Drizzle ORM codebase: schema files with pgTable, relations, drizzle.config, migrations, the db instance and SQL-like versus relational queries.
TypeORM
Read a TypeORM codebase: entities and decorators, the DataSource, repositories and query builders, relations, migrations and subscribers.
Mongoose (MongoDB)
Read a Mongoose codebase: schemas and models, validation, middleware hooks, virtuals, populate and where the MongoDB connection is opened.
Redux Toolkit
Read a Redux Toolkit app: the store, slices with reducers and actions, createAsyncThunk, RTK Query API slices, selectors and typed hooks.
Zustand
Read a Zustand state setup: stores created with create, set and get, selectors, middleware like persist and devtools, and the slices pattern.
TanStack Query
Read TanStack Query code: the QueryClient, query keys and query functions, mutations, invalidation, queryOptions factories and caching defaults.
XState
Read XState v5 code: setup() with actions, guards and actors, createMachine states and transitions, invoked actors and React integration.
Apollo Client (GraphQL)
Read a front end using Apollo Client: the client and InMemoryCache, colocated gql operations, useQuery and useMutation, type policies, links and codegen.
Tooling and monorepos
Turborepo monorepo
Read a Turborepo monorepo: turbo.json tasks and dependsOn, apps and packages, workspace links, internal packages and caching.
Nx monorepo
Read an Nx workspace: nx.json, project.json or inferred targets, apps and libs, executors and plugins, tags and module-boundary rules, and the project graph.
pnpm workspaces
Read a pnpm workspace monorepo: pnpm-workspace.yaml, workspace: dependencies, filtered scripts, catalogs and how packages link to each other.
TypeScript library (npm package)
Read a published TypeScript package: package.json exports, the public entry, internal modules, the build with tsup or tsc, tests and changesets.
Vite plugin
Read a Vite plugin: the plugin object, Rollup-compatible hooks like resolveId, load and transform, Vite-specific hooks, virtual modules and ordering.
Webpack-configured app
Read a webpack-based app: entry and output, loaders in module.rules, plugins, resolve aliases, environment-specific configs and the dev server.
Jest or Vitest test suite
Read a codebase through its Jest or Vitest tests: config and setup files, where tests live, mocks and their hoisting, fixtures and what the tests reveal about behaviour.
Playwright end-to-end tests
Read a Playwright test suite: playwright.config projects and webServer, fixtures, page objects, authentication with storageState and what the flows reveal.