selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Gitingest logo

Self-host Gitingest

v0.3.1

Git repo digests, prompt-ready text for LLMs

BetaOpen SourceMIT
docker run -d --name gitingest -p 8000:8000 gitingest
Updatedlast year
LanguagePython
Setup difficultyEasy
Stars
16 097
Ports
8000 (Main web application (digest form and results)), 9090 (Prometheus metrics server (enabled via GITINGEST_METRICS_ENABLED))
Docker
ghcr.io/coderamp-labs/gitingest
Gitingest front page with the repository URL ingest form

What is Gitingest?

Gitingest converts any Git repository (or a local directory) into a single text digest formatted for feeding code into a large language model. You point it at a repo URL or path and it returns a summary, a directory tree and the concatenated file contents, with statistics such as file sizes and token counts. It ships as a shell command, an importable Python package with sync and async entry points, and a web application you can run yourself. Private repositories work by supplying a GitHub personal access token, and you can scope output with include/exclude patterns, a per-file size limit, submodule support and an option to keep gitignored files; the digest goes to a file or stdout. For your own hardware there is a Dockerfile, a published ghcr image used by the production compose profile, and a metrics server you can expose; the Python package is also on PyPI. There is no user account system or login, and browser extensions for Chrome, Firefox and Edge are separate community projects.

Should you self-host Gitingest?

Gitingest scores 71/100 on selfhost.directory (how scoring works) and ranks #15 of 167 in Developer Tools. It has 16 097 GitHub stars, +263 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is openhands (87/100, 92 941 stars). It scores higher overall, so compare the two before you pick. See Gitingest vs openhands side by side.

Features

  • Allowed hostname configuration for self-hosting
  • Codebase text digest for LLM prompts
  • Command-line tool
  • Directory tree and summary output
  • Gitignored file option
  • Include/exclude pattern filtering
  • Output to file or stdout
  • Private repository access with token
  • Prometheus metrics endpoint
  • Python library (sync and async)
  • S3-compatible storage support
  • Subdirectory extraction
  • Submodule inclusion
  • Web UI server

Gitingest README

Gitingest

Screenshot of Gitingest front page

PyPI Python Versions
CI

Ruff OpenSSF Scorecard
License Downloads GitHub Stars Discord
Trendshift

How to install Gitingest

Install Gitingest with Docker

Environment variables
ALLOWED_HOSTS, GITINGEST_METRICS_ENABLED, GITINGEST_METRICS_HOST, GITINGEST_METRICS_PORT, GITINGEST_SENTRY_ENABLED, GITINGEST_SENTRY_DSN
  1. Build the image:

    docker build -t gitingest .
    
  2. Run the container:

    docker run -d --name gitingest -p 8000:8000 gitingest
    

Application then available at http://localhost:8000

How to configure Gitingest

  • ALLOWED_HOSTSgitingest.com, *.gitingest.com, localhost, 127.0.0.1Comma-separated list of allowed hostnames when hosting on a domain
  • GITINGEST_METRICS_ENABLEDEnable Prometheus metrics server (set to any value to enable)
  • GITINGEST_METRICS_HOST127.0.0.1Host for the metrics server
  • GITINGEST_METRICS_PORT9090Port for the metrics server
  • GITINGEST_SENTRY_ENABLEDEnable Sentry error tracking (set to any value to enable)

Gitingest releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…