Skip to main content

GitHub-like local file viewer built with Flask

Project description

HubView — GitHub‑like file viewer (Flask)

A clean, fast, local file viewer with a GitHub‑style UI. Browse folders, preview code with syntax highlighting, render Markdown (tables, task lists, admonitions), show images/video/audio/PDF, and even draw Mermaid diagrams via fenced blocks.

https://github.com/ (UI inspiration only)

TODO

  1. Instructions on running: hubview

Example Run Code

from hubview import app
app.create_hub(
    root='./',
    host='0.0.0.0',
    port=3000,
    script_ex='.venv/bin/python',
    script_path='./',
    script_log='log.log'
)

Or:

in terminal, type: hubview

Quick start

  1. pip install hubview
  2. hubview --root 'your directory'
  3. open http://127.0.0.1:5000 in your browser.

Features

  • 🗂️ Directory browsing with breadcrumbs
  • 📝 Markdown rendering with pymdown-extensions (tables, details, tasklists, emoji, etc.)
  • 🧠 Mermaid diagrams via fenced blocks:
    mermaid</code> … <code>
  • 🎨 Client-side syntax highlighting using highlight.js
  • 🖼️ Photo/image preview, plus audio/video and PDF embeds
  • 📖 Auto-render README.md (or index.md) at the bottom of each directory
  • 🛡️ Path safety (jailed to a root folder)
  • 🌗 Looks good in light and dark

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hubview-0.5.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hubview-0.5-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file hubview-0.5.tar.gz.

File metadata

  • Download URL: hubview-0.5.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.5.tar.gz
Algorithm Hash digest
SHA256 704c7a438c28a6e90445c35464434d61c537a068e222e068ba11bf31b32fd319
MD5 8e3ac77ba020c519e54d19507610390a
BLAKE2b-256 92fecf97cea86ced1edb185e719d150a51b2af29389e31e6affe8bf5027cdb01

See more details on using hashes here.

File details

Details for the file hubview-0.5-py3-none-any.whl.

File metadata

  • Download URL: hubview-0.5-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 92665b219a1effce2e378d84f9b0c1a27f6e6f79ae5957891eee98300eb82d1d
MD5 0f1b436670fcd58960236cfa0c092581
BLAKE2b-256 b88bd73e3306a5b592898e9fa024671e56ea62a9081fea3e9ef737629dd5da51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page