Preview .codecanvas files directly from GitHub repositories
Many GitHub repositories now include .codecanvas files β a new visual, interactive format for project documentation. GitHub CodeCanvas Preview allows you to view and explore these files directly in your browser without cloning or downloading repositories.
If you try to open a .codecanvas file directly from GitHub, you'll only see the raw source code. GitHub serves it as plain text, so it cannot be rendered interactively. This tool fetches the file via a CORS proxy and renders it as a fully interactive code visualization.
To preview any .codecanvas file hosted on GitHub, simply prepend:
https://codecanvaspreview.github.io/?
to the raw URL of the file.
- Loads the
.codecanvasfile via a CORS proxy - Parses the file's metadata and visual structure
- Renders an interactive project canvas with file navigation, visual annotations, and live links
- Enables direct exploration of the codebase structure without leaving the browser
- Visual Project Navigation β Interactive tree view of the codebase
- Annotation Support β Displays comments and documentation embedded in the
.codecanvasfile - Live File Links β Click files to view them on GitHub
- No Backend Required β Runs entirely client-side
- GitHub Integration β Works with any public repository
- Open Standard β
.codecanvasis an open file format for visual project documentation
To add a .codecanvas file to your project:
- Create a
.codecanvasfile using the CodeCanvas VS Code Extension - Include it in your repository (typically alongside
README.md) - Share preview links using:
https://codecanvaspreview.github.io/?https://raw.githubusercontent.com/YOUR_USER/YOUR_REPO/main/YOUR_FILE.codecanvas
GitHub CodeCanvas Preview works in modern browsers with JavaScript enabled, including:
- Google Chrome (latest)
- Mozilla Firefox (latest)
- Microsoft Edge (latest)
- Safari (latest)
This is a static client-side application that uses:
- CORS proxy to fetch GitHub resources
- HTML5 Canvas for visual rendering
- Vanilla JavaScript for parsing
.codecanvasmetadata - No user data collection or tracking
This tool follows the same concept as:
- htmlpreview.github.io β for previewing HTML files
- Historical services like rawgit.com
But it's specialized for the new .codecanvas visual documentation format.
Β© 2025 Gabriel Majorsky
Licensed under the MIT License
This project is open source. Feel free to submit issues and pull requests on the GitHub repository.
Live at: https://codecanvaspreview.github.io