-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace goo.gl url shortener #220
Comments
@andys8: Yes, we should. Are you interested in creating a PR for this? |
I'm looking into which service to use, to replace it. I did a little research, but it is harder than I initially thought, to find an alternative. Criteria
Linkshttps://medium.com/@guillotegg/google-url-api-replacement-options-da18194b691c |
https://is.gd/apishorteningreference.php looks interesting. CORS headers don't seem to be set. |
I really doubt that any non-rate-limited services would not require a key. Is this something we should build ourselves? It would be easy enough to point, say, https://is.gd shares one problem with https://goo.gl: both limit the size of the URLS. I've never investigated where the limit is, but I have run into it on occasion. |
As an alternative to using a URL shortener or database, you could compress the source using LZString and just store it in a hash. Flems, a general-purpose code playground, works by literally storing the entire editor state in the URL's fragment part as a compressed JSON blob, and I've only a couple times ran into issues with that:
As a couple more points of comparison:
For most things that would press against typical URL length limits, it's probably better to just move to CodePen, Glitch, or similar, something that's a lot heavier and more fully-featured and made for actual projects rather than simple toy experiments. In retrospect, that mini demo app would've been easier to write and manage in CodePen, but I didn't write it initially - it was based on another's broken app that already existed in Flems. |
Thanks for the suggestions. We actually do put the content in the URL the same way the Typescript playground does. The shortener is just to have a simpler link to pass around. We could skip it if necessary. Flems looks very interesting. I hadn't see that one before. |
It has been a while. Do we have a rough idea of what kind of request rates we are need from the url shortening service? That would help address the rate limit issue when considering any potential services.
This article only listed 3 options. There are more available: https://zapier.com/blog/best-url-shorteners/ Maybe it's worth putting something that works in for now, as the google one is not working atm. Tinyurl actually looks like simple to use. It does not offer branding, e.g., you get |
I'd love to put in a replacement even if it's not perfect. I don't have any sense of necessary rates, but I'm guessing its more likely hundreds or thousands per day than tens of thousands or more. Anyone interested in creating a PR with any one of these? |
Google will discontinue
goo.gl
.https://goo.gl/
It's currently in use.
https://github.com/ramda/ramda.github.io/blob/88b9e38495377430c13070233518a21f136ed155/repl/lib/js/googl.js
We should replace it with another service :)
The text was updated successfully, but these errors were encountered: