GitHub Repo Codebase Packer: LLM Context & Tokens
Pricing
from $2.00 / 1,000 packed codebase files
GitHub Repo Codebase Packer: LLM Context & Tokens
Pack GitHub repositories, source files, and docs into clean LLM-ready context with token counting, path filtering, and file tree visualization.
Pricing
from $2.00 / 1,000 packed codebase files
Rating
0.0
(0)
Developer
Lakshay Papneja
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
18 hours ago
Last modified
Categories
Share
GitHub Repo Codebase Packer: LLM Context & Tokens (v1.0)
Pack entire GitHub repositories, documentation folders, and source trees into a single, clean LLM-ready context prompt formatted for Claude 3.5 Sonnet, ChatGPT, DeepSeek, and Cursor.
Built for AI engineers, autonomous coding agents, and developers who need to feed full multi-file codebases into LLMs without copy-pasting hundreds of individual files.
⚡ Key Capabilities
- Automated Git Tree Traversal: Recursively scans full GitHub repository trees via official GitHub tree endpoints.
- Token Estimation: Pre-computes estimated token counts per file (
Math.ceil(chars / 3.8)) and for the entire assembled prompt. - Smart Path & Lockfile Filtering: Automatically ignores
node_modules,.git, build output (dist/,build/), and lockfiles (package-lock.json,pnpm-lock.yaml) to conserve token limits. - Extension Targeting: Filter specifically by language (e.g.
.ts,.py,.go,.rs,.md). - Dual Outputs:
- Default Dataset: Every file as an individual record with metadata, token counts, and source code.
LLM_PROMPT.mdin Key-Value Store: Ready-to-copy markdown document featuring an ASCII file tree and fenced code blocks.
⚙️ Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
repoUrls | array | ["https://github.com/expressjs/express"] | List of GitHub repository URLs or owner/repo strings. |
branch | string | "" | Target branch or tag (defaults to repo default). |
extensions | array | [".js", ".ts", ".py", ...] | Allowed extensions to include in prompt. |
maxFileSizeKb | integer | 100 | Max file size in KB to prevent huge bundle files from polluting context. |
maxFiles | integer | 150 | Maximum source files to extract (up to 1,000). |
excludePaths | array | ["node_modules", ".git", ...] | Directories or paths to exclude. |
📦 Sample Dataset Output
{"repo": "expressjs/express","path": "lib/express.js","extension": ".js","sizeBytes": 3240,"linesCount": 112,"estimatedTokens": 850,"rawUrl": "https://raw.githubusercontent.com/expressjs/express/master/lib/express.js","scrapedAt": "2026-10-31T20:56:00.000Z"}