Skip to content

Repository files navigation

CodeScope — Privacy-First Code Export Tool

Export your source code for AI assistants (ChatGPT, Claude, etc.) — 100% client-side, zero uploads.

🌟 Features

  • 100% Privacy: Your code never leaves your device
  • 📁 Smart Selection: Browse entire project directories with interactive file tree
  • 🎨 Multiple Formats: Markdown, JSON, HTML, Plain Text
  • 🚀 Lightning Fast: Handle 1000+ files efficiently
  • 📊 Rich Metadata: Language detection, file sizes, token estimates
  • 🎯 AI-Optimized: Perfect output structure for LLMs
  • 🌐 Offline Ready: Works without internet connection

🚀 Quick Start

Option A: Direct Upload (Fastest)

  1. Go to Cloudflare Pages
  2. Click Create a projectDirect Upload
  3. Upload this entire folder (or just index.html + _headers)
  4. Done! Your app is live.

Option B: Via GitHub

  1. Push this folder to a GitHub repository
  2. Go to Cloudflare PagesCreate a projectConnect to Git
  3. Select your repository
  4. Set build settings:
    • Build command: (leave empty)
    • Build output directory: / or .
  5. Click Save and Deploy

📁 Project Structure

  • index.html — Complete web application (single file)
  • _headers — Cloudflare security headers
  • robots.txt — Search engine instructions
  • sitemap.xml — SEO sitemap
  • README.md — Documentation

🛠️ How to Use

  1. Select: Choose your project folder or drag & drop files
  2. Browse: Review and select specific files using the interactive tree
  3. Configure: Set filters, file size limits, and output format
  4. Export: Generate structured output optimized for AI assistants

🎨 Supported Export Formats

  • Markdown: Best for AI — structured with syntax highlighting
  • JSON: Machine-readable for programmatic use
  • HTML: Beautiful rendering in browsers
  • Text: Simple delimited format

🔧 Supported Languages

JavaScript, TypeScript, Python, Java, C++, C#, Go, Rust, PHP, Swift, Kotlin, Dart, HTML, CSS, JSON, YAML, Markdown, Shell scripts, SQL, GraphQL, Vue, Svelte, and many more.

🔒 Privacy & Security

  • ✅ No network requests required
  • ✅ No registration or tracking
  • ✅ All processing happens locally
  • ✅ Your code never leaves your browser
  • ✅ Works completely offline

🌐 SEO Optimization

  • Meta tags for search engines
  • Open Graph and Twitter cards
  • Structured data (Schema.org)
  • XML sitemap
  • Robots.txt configuration
  • Semantic HTML5 structure

🚀 Tech Stack

  • Frontend: Vanilla JavaScript (no frameworks)
  • Styling: Modern CSS with custom properties
  • File Handling: File API for directory access
  • Syntax: Highlight.js for code highlighting
  • Markdown: Marked.js for parsing
  • Deployment: Static hosting ready

� Performance

  • Handles 1000+ files smoothly
  • Non-blocking UI with progress tracking
  • Memory-efficient file processing
  • Optimized for large codebases

📄 License

MIT License - feel free to use, modify, and distribute.

🤝 Contributing

Issues and pull requests are welcome! Please feel free to contribute.


Made with ❤️ for developers who value privacy

About

Export your source code for AI assistants (ChatGPT, Claude, etc.) — 100% client-side, zero uploads.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages