(abandoned) simple web git viewer written in Python
Find a file
2025-04-25 20:38:14 -05:00
static Initial commit 2025-04-25 20:38:14 -05:00
templates Initial commit 2025-04-25 20:38:14 -05:00
.editorconfig Initial commit 2025-04-25 20:38:14 -05:00
.gitignore Initial commit 2025-04-25 20:38:14 -05:00
.python-version Initial commit 2025-04-25 20:38:14 -05:00
pyproject.toml Initial commit 2025-04-25 20:38:14 -05:00
README.md Initial commit 2025-04-25 20:38:14 -05:00
shadowbox.py Initial commit 2025-04-25 20:38:14 -05:00
uv.lock Initial commit 2025-04-25 20:38:14 -05:00

shadowbox

git web viewer

the only real thing i have planned over cgit (with pygments and commonmark filters) is rendering images instead of hex dumping them like any other binary

run: flask --app shadowbox run

todo

  • repo file list
  • filetree
  • individual file previews
    • syntax highlight code with pygments
    • render markdown with commonmark
    • display images
    • hex dumps for other binaries
    • link to raw file
    • file changelog (git log <filename)
    • single file diff with previous version
  • commit page
    • git show --patch --compact-summary --diff-algorithm=histogram --abbrev-commit --format="commit %h%d%nprevious %p%nauthored by %aN <%aE> at %cd%ncommitted by %cN <%cE> at %cd%n%n%B"
    • and then drive that through pygments or delta
  • repos with multiple refs (branches, tags, etc.)
    • diff any two commit-ishes
  • allow incoming git clone