Bun
A fast all-in-one JavaScript toolkit: a runtime that runs JavaScript and TypeScript directly, plus a package manager and test runner.
In more detail
Bun runs TypeScript files directly without a separate compile step and is largely compatible with Node.js. It also installs packages and supports workspaces for monorepos, like npm and pnpm.
Examples
Every lesson's code is run with bun run, for example bun run dtcg_token_resolver.tsx.bun run ci/validate-workflow.ts ci/pipeline.ymlbun run monorepo_task_graph.tsxbun run server_component.tsbun run src/index.tsbun --versionRelated terms
- TypeScript — JavaScript with added type annotations, checked by a compiler before the code runs.
- Node.js — A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
- linter — A tool that reads code or configuration without running it and flags likely mistakes and style problems.
- workflow (GitHub Actions) — A YAML file in the .github/workflows folder of a repository that names its triggers and the jobs to run.
- package workspace — A package-manager feature that treats several folders in one repository as separate packages and links them to each other locally.
- bunx — Bun's command for running a tool from an npm package without installing it globally, like npx.
- tsx — A command-line tool that runs TypeScript files directly in Node.js by compiling them on the fly with esbuild.
- type stripping — Running TypeScript by deleting the type annotations and executing what is left, without checking the types.
Taught in
- Design Systems Architecture: Foundations, Layers & Taxonomy — Design Systems & Component Engineering
- Continuous Integration — DevOps & Site Reliability Engineering
- Monorepo Architecture: Workspaces & Turborepo — Production Full-Stack Engineering
- End-to-End Type Safety: Shared Schemas & DTOs — Production Full-Stack Engineering
- Unified Build Pipelines: Caching & Dependency Graphs — Production Full-Stack Engineering
- App Router Architecture: Server-First Paradigms — Next.js 15 & Modern App Router Architecture
- Type Annotations, Type Inference And Contextual Typing — Production TypeScript
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript
- ECMAScript Modules, CJS Interop And verbatimModuleSyntax — Production TypeScript