GitHub Repo Codebase Packer: LLM Context & Tokens avatar

GitHub Repo Codebase Packer: LLM Context & Tokens

Pricing

from $2.00 / 1,000 packed codebase files

Go to Apify Store
GitHub Repo Codebase Packer: LLM Context & Tokens

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

Lakshay Papneja

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 hours ago

Last modified

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:
    1. Default Dataset: Every file as an individual record with metadata, token counts, and source code.
    2. LLM_PROMPT.md in Key-Value Store: Ready-to-copy markdown document featuring an ASCII file tree and fenced code blocks.

⚙️ Input Parameters

FieldTypeDefaultDescription
repoUrlsarray["https://github.com/expressjs/express"]List of GitHub repository URLs or owner/repo strings.
branchstring""Target branch or tag (defaults to repo default).
extensionsarray[".js", ".ts", ".py", ...]Allowed extensions to include in prompt.
maxFileSizeKbinteger100Max file size in KB to prevent huge bundle files from polluting context.
maxFilesinteger150Maximum source files to extract (up to 1,000).
excludePathsarray["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"
}