Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
41–50 of 182 posts
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#423425 lines in package-lock.json for a "Minimal URL shortener" https://github.com/nelsontky/gh-pages-url-shortener/blob/mai...
I always wondered if relying so much on external libraries in the long run is more hassle to maintain than doing it by yourself. Security updates will be provided for X major version for a reasonable amount of time, but afterwards you will have to update, check that nothing breaks and update your code as well. Also some of the deps will break regardless of SemVer and you will need to update.
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#43You could also push static HTML pages to the git root which have, e.g., https://news.ycombinator.com/ '" /> in the header.
I reckon it'll be possible to "simplify" it even more for an end-user, by making a static site generator generate these redirect HTML files from markdown or a CSV.
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#44I was always fixated with URL shorteners and always wanted to write one myself. While it would be easy to write one that works with a server, I loved the idea of hosting and running one for free. Thus, I wrote this URL shortener which does not need a backend to work at all. It uses GitHub issues as a "database", and unlike most other URL shorteners that do not need backends, this one doesn't need a # prefixed to the…
That’s clever! I once did the same, except I used a static site generator that I would push to Github and deploy on Netlify.
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#45There's a lot of useful stuff to learn from this tiny example, providing you look at it more as a learning exercise than a production enterprise solution! OP, how does this get around CORS?
The github api does not care about your origin so that wasn't something I had to deal with! If I had to deal with something like that, my best option would be to use a proxy server, which would arguably negate the whole point of this "serverless" hack.
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#46Since I am running a URL shortener service https://blanq.io , my two cents: 1. I looked at https://github.com/nelsontky/gh-pages-url-shortener/blob/mai... and it is a basic script that does nothing more than redirection. A lot of URL shorteners on the web do a lot more. Premium ones can track users and route links based on client. 2. Most of URL shortening audience is non-technical and they usually like to pay and fo…
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#47Somebody was faster than me https://github.com/nelsontky/gh-pages-url-shortener/issues/1...
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#48Since I am running a URL shortener service https://blanq.io , my two cents: 1. I looked at https://github.com/nelsontky/gh-pages-url-shortener/blob/mai... and it is a basic script that does nothing more than redirection. A lot of URL shorteners on the web do a lot more. Premium ones can track users and route links based on client. 2. Most of URL shortening audience is non-technical and they usually like to pay and fo…
How come I couldn’t find your service when I was looking for alternatives for bitly? The only results I got via Google, product hunt ... services that were overpriced and very limiting (nr of teammates)
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#49Since I am running a URL shortener service https://blanq.io , my two cents: 1. I looked at https://github.com/nelsontky/gh-pages-url-shortener/blob/mai... and it is a basic script that does nothing more than redirection. A lot of URL shorteners on the web do a lot more. Premium ones can track users and route links based on client. 2. Most of URL shortening audience is non-technical and they usually like to pay and fo…
1. What's wrong with a "basic" script? 2. who "likes to pay"? Having a free option is great, no matter whether you're "non-technical" or not... 3. It's hosted on GH Pages. I think they're pretty okay on the scaling front, what do you think? 4. Technically yes, as in "they could switch off GH Pages and the API". Not sure how likely that is. Also, the redirections are saved as GH issues
2. Businesses like to pay.
3. Github has been bad lately https://www.theregister.com/2020/07/13/github_takes_some_dow...
Re: Show HN: I created a URL shortener that can be entirely hosted on GitHub Pages
#50Since I am running a URL shortener service https://blanq.io , my two cents: 1. I looked at https://github.com/nelsontky/gh-pages-url-shortener/blob/mai... and it is a basic script that does nothing more than redirection. A lot of URL shorteners on the web do a lot more. Premium ones can track users and route links based on client. 2. Most of URL shortening audience is non-technical and they usually like to pay and fo…