Zero-dependency Tampermonkey userscript that packages directories and codebases into structured markdown chunks and raw binary attachments for AI chats. Features a Swiss Industrial Telemetry & CRT Command Matrix interface, live ASCII context meters, dual-pane command layout, SVG icon consolidation, and full WCAG AA accessibility.
Optimized and tested for major AI web interfaces:
- ChatGPT (
chatgpt.com) - Claude (
claude.ai) - Gemini & Google AI Studio (
gemini.google.com,aistudio.google.com) - DeepSeek (
deepseek.com) - Perplexity (
perplexity.ai) - Meta AI (
meta.ai) - Chatbot Arena (
arena.lmsys.org,arena.ai) - Grok (
grok.com) - Mistral Chat (
chat.mistral.ai) - Microsoft Copilot (
copilot.microsoft.com) - Hugging Chat (
huggingface.co/chat) - Qwen (
qwen.ai) - Kimi (
kimi.com) - Z.ai (
z.ai) - OpenRouter (
openrouter.ai) - Groq (
groq.com) - Xiaomi MiMo AI Studio (
aistudio.xiaomimimo.com) - MiniMax Agent (
agent.minimax.io)
- Swiss Industrial Telemetry & CRT Command Matrix: Matte Onyx background substrate (
#08090d), monospaced JetBrains font stack, Cyber Cyan (#00E5FF) focus rings, Aviation Red (#FF3333) execute CTAs, and sharp 90-degree industrial borders. - Single Phosphor Focus Ring: Enforces
outline: none !importantglobally and uses a single high-contrast Cyber Cyan border glow (#00E5FF) to eliminate double-ring focus glitches. - Consolidated SVG Icon System: 100% SVG icon system (
src/icons.ts) usingcreateElementNSwith zero emoji dependency for strict anti-slop frontend standards. - Spatial Dual-Pane Command Layout: 2-column workspace featuring a left Telemetry HUD (live ASCII context meter
[||||||||....] 42%, file breakdown stats, quick preset chips[ALL],[CODE],[DOCS], industrial dropzone) and a right Tree Matrix workspace. - Trusted Types & Zero Dependencies: Pure imperative DOM construction (
createElementNSand native helpers) with zeroinnerHTMLusage to run safely under Google Trusted Types policies (gemini.google.com,aistudio.google.com). - Dynamic Filtering & Ingestion: Retains all ingested files in memory while dynamically applying ignore lists, hidden file rules, and binary settings during render/upload.
- Unicode-Safe Markdown Chunking: Auto-splits large codebases into structured markdown chunks (
codebase_part_N.md), prepends a mastercodebase_manifest.mdwith custom prompt instructions, and prevents UTF-16 surrogate pair splitting.
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Install or update the compiled userscript from dist/codebase-uploader.user.js.
- Toggle Panel:
Alt+Shift+U(or⌥⇧Uon macOS). Hotkey letter can be customized in Settings. - User Script Menu: Trigger via Tampermonkey extension menu (
Toggle Codebase Uploader).
Powered by Bun.
bun install # Install dependencies
bun run test # Run Vitest unit test suite (31 tests across 5 test files)
bun run tsc # Typecheck codebase
bun run build # Build distribution bundle (dist/codebase-uploader.user.js)