Skip to content
AstroPaper
Go back

Anatomy of Claude Code: File and Folder Sizes

Edit page

Overview

The Claude Code source distribution (claude-code-source) contains 3 folders and 7 files at its top level. Here’s what’s inside and how much space each item takes up.

Size Breakdown

ItemTypeSize
cli.js.mapFile57M
src/Folder35M
node_modules/Folder29M
vendor/Folder29M
cli.jsFile13M
sdk-tools.d.tsFile116K
LICENSE.mdFile4.0K
README.mdFile4.0K
bun.lockFile4.0K
package.jsonFile4.0K

Total: ~163M

Where the Weight Lives

pie title Space Distribution
    "cli.js.map" : 57
    "src/" : 35
    "node_modules/" : 29
    "vendor/" : 29
    "cli.js" : 13
    "Other" : 0.12

πŸ“¦ The Bundle: cli.js + cli.js.map (70M combined)

The single bundled entry point cli.js weighs 13M β€” the entire application compiled into one JavaScript file. Its companion source map cli.js.map is the largest item at 57M, roughly 4.4Γ— the bundle itself. This is typical for source maps, which store full mapping data back to the original TypeScript sources.

πŸ—‚οΈ Source Code: src/ (35M)

The src/ directory holds the original TypeScript source, organized into modules:

πŸ“š Dependencies: node_modules/ + vendor/ (58M combined)

The two dependency directories account for about 36% of total size. node_modules/ holds npm packages while vendor/ contains vendored third-party code.

πŸ“„ Small Files (< 1M)

The remaining files β€” LICENSE.md, README.md, bun.lock, package.json, and sdk-tools.d.ts β€” are all under 120K. The sdk-tools.d.ts type definition file at 116K is the notable one, providing TypeScript type definitions for SDK tooling.

Key Takeaways


Edit page
Share this post on:

Previous Post
Analyzing the Claude Code Source: Architecture, Toolchain, and Code Stats
Next Post
Jekyll, Static Site Generators, and Static Site Hosting