A minimal, fully client-side viewer for HTML gists hosted on Opengist
https://gistviewer.l3x.in/
- Svelte 44.2%
- TypeScript 27.7%
- JavaScript 21.2%
- CSS 3.6%
- HTML 3.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build / build (push) Successful in 22s
Co-authored-by: alex <alex@forge.l3x.in> |
||
| .forgejo/workflows | ||
| dist | ||
| scripts | ||
| src | ||
| .gitignore | ||
| bun.lock | ||
| index.html | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||
Opengist Web Viewer
A minimal, fully client-side viewer for HTML gists hosted on a self-hosted Opengist instance. Modelled on https://pi.dev/docs/latest/usage#exporting-and-sharing-sessions. Open the viewer bare and you get a single centered form — paste an Opengist URL, hit View. Open a share link (…/#<opengist-url>) and the gist renders full-screen, filling the entire viewport as if it's the only content.
Usage
Open the viewer with the gist URL as fragment:
https://your-host/#https://opengist.myhost/alex/1234
…or just open the page and paste the URL into the form.
Security model
- Non-HTML gists are shown as escaped
<pre>text. - The viewer sends no credentials; only
public/unlistedgists are reachable.privategists will 404. - A
<meta>CSP restrictsconnect-srctohttps:/http:so any self-hosted instance is reachable.