3 ms·
Show HN: Serve your GitHub Gists as static websites
- timz 3y agoGitHub Gists are great, but if you have some HTML + CSS + JS in them, it would be nice to be able to preview those as working micro-websites. gistxy.com allows you to do just that (GIst STatic proXY). If you have a Gist URL like: https://gist.github.com/tzador/80c83ed5f5a0bdf8c878c5478d7d8401 https://gist.github.com/tzador/80c83ed5f5a0bdf8c878c5478d7d8... just replace the .github. part with .gistxy. to get GistXY URL: https://gist.gistxy.com/tzador/80c83ed5f5a0bdf8c878c5478d7d8401 https://gist.gistxy.com/tzador/80c83ed5f5a0bdf8c878c5478d7d8... and you will get the contents of the Gist served with correct mime-types and a working micro-website. It also renders the markdown files to HTML, so you can focus on reading or sharing just one markdown file. For security reasons, each Gist is served on dedicated subdomain. Not sure how useful this is, but it was quite fun project. Written in https://kit.svelte.dev https://kit.svelte.dev and deployed on https://vercel.com https://vercel.com . Due to rate-limits, it scrapes the gist data from the Gist website, instead of using the GitHub API.