A lightweight CLI tool that provides real-time preview of GitHub Issue templates (YAML) in your browser. Perfect for designing and testing issue templates before committing them to your repository.
- 🔄 Live preview with automatic reload when YAML changes
- 🎨 Authentic GitHub-style CSS theming
- 🌐 Local HTTP server with hot-reload capability
- ⚡ Fast and lightweight
- 🚀 Simple CLI interface
- 🔌 Custom browser support
This project uses uv for package management. Make sure you have uv installed first.
# Install using uv
uv tool install git+https://github.com/RyoNakagami/github-issue-previewer
# Uninstall if needed
uv tool uninstall github-issue-previewerBasic usage:
github-issue-previewer path/to/issue_template.yml [--port PORT] [--browser BROWSER_PATH]yaml_file: Path to your GitHub issue template YAML file (required)--port: Port number for the preview server (default: 8000)--browser: Custom browser path (optional)
Given a feature request template like this:
name: "Feature Request"
description: "Suggest a new feature or improvement"
title: "FEATURE: "
labels: [feature]
body:
- type: textarea
id: feature-goal
attributes:
label: "Feature Goal"
description: "Describe the new feature you want to see added."
validations:
required: truePreview it with:
github-issue-previewer .github/ISSUE_TEMPLATE/feature_request.ymlThis will:
- Generate an HTML preview styled like GitHub
- Open your default browser
- Start watching for changes in the YAML file
- Auto-refresh the preview whenever you edit the template
- Reads your GitHub Issue template YAML file
- Converts it to HTML using Jinja2 templates
- Applies GitHub-style CSS theming
- Serves the preview via a local HTTP server
- Watches for file changes and triggers live reload
- Updates the preview in real-time as you edit
- Python >=3.12
- uv package manager
Contributions are welcome! For major changes:
- Open an issue first to discuss proposed changes
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT
