Preview raw HTML files from GitHub Gists and repositories directly in your browser.
- Preview HTML files from GitHub Gists
- Preview raw HTML files from any GitHub repository
- Dark mode support
- Simple, clean interface
- Node.js 18+
- npm, yarn, pnpm, or bun
git clone https://github.com/spksoft/git-preview.git
cd git-preview
npm installnpm run devOpen http://localhost:3000 with your browser.
npm run build
npm run start- Copy a raw URL to an HTML file from GitHub (e.g.,
https://gist.githubusercontent.com/...) - Paste it into the input field
- Click "Preview" to view the rendered HTML
- Next.js 16 - React framework
- React 19 - UI library
- TypeScript - Type safety
- Tailwind CSS v4 - Styling
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
Deploy your own instance with one click: