Deploy repo2txt
An open-source tool to convert a GitHub repo into a structured text file.
repo2txt
Just deployed
Deploy and Host repo2txt on Railway
repo2txt is an open-source, browser-based tool that converts a GitHub repository's contents into a single structured text file — making it easy to feed an entire codebase into an LLM like ChatGPT or Claude. It runs entirely client-side with no backend or database required.
About Hosting repo2txt
repo2txt is a static Vite application — all processing happens in the browser via the GitHub API. Hosting your own instance gives you a permanent, private URL with no dependency on the public deployment, and lets you pre-configure a GitHub personal access token to avoid the 60 req/hour anonymous API rate limit.
Common Use Cases
- LLM context prep — convert any GitHub repository into a single text file to paste into ChatGPT, Claude, Gemini, or a local model as full codebase context
- Code review & audit — flatten a repository into a structured document for offline review, archiving, or sharing with teammates who don't use Git
- Private team instance — deploy an internal instance pre-authenticated with a GitHub token so all team members benefit from higher API rate limits without managing credentials individually
Dependencies for repo2txt Hosting
- Node.js 18+
npm(bundled with Node.js)- A GitHub personal access token (optional, but strongly recommended — raises the GitHub API rate limit from 60 to 5,000 requests/hour)
Deployment Dependencies
- repo2txt GitHub repository -> this has been forked with a custom build command to support Railway deployment.
Implementation Details
repo2txt is a fully static build — no environment variables are required for the app itself. The GitHub personal access token is entered by the user in the browser UI at runtime and never leaves the client.
Why Deploy repo2txt on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying repo2txt on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
repo2txt
alphasecio/repo2txt