Skip to content

E20C1/repo-glance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Repo Glance (Fully Offline) πŸ“‚

Read this in other languages: ζ—₯本θͺž

License: MIT Release Security: Offline Zero Dependency

Turn your repository into an LLM-ready prompt in seconds.
A standalone HTML tool to fetch, parse, and visualize codebases without sending data to any server.


πŸš€ Why Repo Glance?

πŸ”°"Serverless & Secure"
Designed for enterprise engineers and privacy-conscious users. Your code is processed entirely within your browser's memory. No data is ever sent to external servers (except standard GitHub API calls if you choose to use them).

πŸ”’"No Install Required"
Forget npm install, pip install, or environment setups. No node_modules hell. Just download the HTML file and open it.

πŸ’Ύ"Ultimate Portability"
Carry the single index.html file on a USB drive. Use it on air-gapped machines or restricted corporate environments where installing CLI tools is prohibited.


πŸ“‹ Table of Contents

Features πŸ’―

🌐 ⟷ πŸ’»
Hybrid Source
πŸš€
Fully Offline
🌳
Tree Visualization
Support for both
GitHub API & Local ZIP
Zero dependencies,
Single HTML file
Auto-generates
ASCII File Tree
🧹
Smart Filtering
πŸ“‹
One-Click Copy
keys
Secure Token
Auto-ignores binaries
and node_modules
Copy entire repo
content to clipboard
Save GitHub Token
to localStorage (Optional)
πŸŒ“
Theme & I18N
πŸ“‚
Folder Support
πŸ’…
Modern UI
Dark/Light Mode
English/Japanese
Parse Local Folders
Directly
Glassmorphism
Design
  • Single File Portability: Everything (including JSZip library) is embedded in one index.html.
  • Privacy Focused: Runs entirely in your browser. No data is sent to any external server (except GitHub API if used).
  • Smart Filtering: Automatically excludes binary files (images, executables) and heavy directories like .git or node_modules.

How to Use πŸ‘†

Tab 1: GitHub API (Online)

  1. Select "GitHub Repo" tab.
  2. Enter the Repository URL (e.g., https://github.com/username/repo).
  3. (Optional) Enter your GitHub Personal Access Token. Check "Save Token" to remember it.
  4. Click "Fetch from URL".

Tab 2: Local Folder (Offline)

  1. Select "Local Folder" tab.
  2. Click the upload area to select a folder from your computer.
  3. The browser will parse files immediately.

Tab 3: Local ZIP (Offline)

  1. Select "Local ZIP" tab.
  2. Click to select (or drag & drop) a ZIP file.
  3. The tool will unzip and parse contents.

Result

  • The tool displays repository metadata, an ASCII file tree, and the text content of all files combined.
  • Click "Copy All to Clipboard" to paste the context into LLMs (ChatGPT, Claude, etc.).

Configuration πŸ› οΈ

Ignore Settings

Customize the file extensions or directories to ignore:

const IGNORE_EXTENSIONS = ['.png', '.jpg', '.exe', '.zip', ...];
const IGNORE_DIRS = ['.git', 'node_modules', 'dist', ...];

File Structure πŸ“

The project consists of a single file for maximum portability.

repo-glance/
β”‚
β”œβ”€β”€ repoglance.html           # The main application (HTML + CSS + JS + Libraries)
β”‚
β”œβ”€β”€ README.md                # Documentation
β”‚
└── README.ja.md            # Documentation (Japanese)

Technical Specifications πŸ’»

  • Core: Vanilla HTML5, CSS3, JavaScript (ES6+)
  • Library: JSZip (v3.10.1) - Embedded directly into the file.
  • API: GitHub REST API v3
  • Compatibility: Chrome, Firefox, Edge, Safari (Modern Browsers)

Todo πŸ“

  • Syntax highlighting for code preview
  • Collapsible file tree nodes
  • File search / filtering in tree

License πŸ“„

MIT License


Made with ❀️ by E20C1