https://github.com/romelium/pagecast
A single HTML file for when you need to host some code without the drama. Paste your stuff, see it live, and get a permanent link from a Gist. No setup, no servers. Just a useful thing to have around.
https://github.com/romelium/pagecast
code-editor code-sharing css developer-tools frontend gist githack github-api github-gist html html5 javascript live-editor playground prototyping serverless single-file-app static-hosting vanilla-js web-development
Last synced: 4 months ago
JSON representation
A single HTML file for when you need to host some code without the drama. Paste your stuff, see it live, and get a permanent link from a Gist. No setup, no servers. Just a useful thing to have around.
- Host: GitHub
- URL: https://github.com/romelium/pagecast
- Owner: Romelium
- License: mit
- Created: 2025-09-21T13:55:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-09-21T15:12:18.000Z (4 months ago)
- Last Synced: 2025-09-21T15:33:02.874Z (4 months ago)
- Topics: code-editor, code-sharing, css, developer-tools, frontend, gist, githack, github-api, github-gist, html, html5, javascript, live-editor, playground, prototyping, serverless, single-file-app, static-hosting, vanilla-js, web-development
- Language: HTML
- Homepage: https://pagecast.romelium.cc/
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Page Cast
A single HTML file for when you need to host some code without the drama.
| Link Type | URL |
| :--- | :--- |
| **Practical Link** | **[pagecast.romelium.cc](https://pagecast.romelium.cc)** |
| **Dogfooding Link** | **[Hosted by Itself](https://gistcdn.githack.com/Romelium/d406ef26e435b1620537d97616131e84/raw/519eb4f5457a28912ebaaa3b098c5fdeb95257c8/index.html)** _(Yes, this link was generated by the app itself)_ |
## What's the deal with this?
Ever just need to share a quick HTML prototype, a code snippet, or a single-page app without setting up a whole project or deploying to a hosting service? This is for that.
It's a self-contained tool that lets you paste your code, see it update live, and then generate a permanent, shareable link using a GitHub Gist.
- **See your code update live.** No refresh needed.
- **Get a permanent link with one click.** Perfect for sharing quick apps.
- **It's just one HTML file.** Save it, use it offline, keep it on a flash drive.
- **Works on your phone, too.** The layout is responsive.
## How to Use It
1. **Get a GitHub Token.**
- Go to [**GitHub's token creation page**](https://github.com/settings/tokens/new?scopes=gist&description=Page%20Cast%20App).
- You only need the **`gist`** scope. Nothing else.
- Copy the generated token (`ghp_...`).
2. **Paste the token into the app.**
- It's saved in your browser's local storage, so you only have to do this once.
3. **Paste your HTML code.**
- The preview on the right will update as you type.
4. **Click the "Cast Page" button.**
- Your permanent link will appear below, ready to be copied and shared.
## Saving It for Later
This whole thing is a single `.html` file. Just right-click and "Save Page As..." to keep a copy on your computer. It works completely offline (until you need to cast, of course).
## Acknowledgements
This tool relies entirely on the excellent [rawgithack](https://github.com/neoascetic/rawgithack) service by [neoascetic](https://github.com/neoascetic) to serve the Gist content. It's the magic that makes the permanent links work.
## License
This project is open source and available under the [MIT License](LICENSE).