This is the repo for swyx's blog - Blog content is created in github issues, then posted on swyx.io as blog pages! Comment/watch to follow along my blog within GitHub
If you go to https://is-this.netlify.app/https://swyx.io, you get this:
This is a little utility I made that solved the very specific pain point of figuring out whether or not a potential customer was a Netlify user or not (or had configured another CDN atop Netlify).
I originally did this as a browser extension, but the benefit of doing this as a microsite is I can now access it on my phone.
Prefixed URLs
This is a little behavior that I call Prefixed URLs, after GitPod's name for it.
It's a really nice way to enhance the open web - by creating a route that specifically accepts either any URL or some specific set of URLs, and then does something with that info to give you even more. To use this microsite, you just prepend the URL to whatever you're interested in.
I was recently reminded of this when the Github1s project went viral on HN recently. It lets you swap out any github.com repo for github1s.com and it opens up a VS Code file explorer for easier navigation (GitHub's default file navigation is slow and clunky).
source: devto devToUrl: "https://dev.to/swyx/the-simple-magic-of-prefixed-urls-46l1" devToReactions: 37 devToReadingTime: 2 devToPublishedAt: "2021-02-12T19:51:57.000Z" devToViewsCount: 1388 title: The Simple Magic of Prefixed URLs published: true description: You can enhance the web by making wrappers around it. tags: ideas slug: prefixed-urls canonical_url: https://www.swyx.io/prefixed-urls cover_image: https://dev-to-uploads.s3.amazonaws.com/i/7sds0o2n6ctdhctjfs15.jpeg
If you go to
https://swyx.io
, you get my blog.If you go to
https://is-this.netlify.app/https://swyx.io
, you get this:This is a little utility I made that solved the very specific pain point of figuring out whether or not a potential customer was a Netlify user or not (or had configured another CDN atop Netlify).
I originally did this as a browser extension, but the benefit of doing this as a microsite is I can now access it on my phone.
Prefixed URLs
This is a little behavior that I call Prefixed URLs, after GitPod's name for it.
It's a really nice way to enhance the open web - by creating a route that specifically accepts either any URL or some specific set of URLs, and then does something with that info to give you even more. To use this microsite, you just prepend the URL to whatever you're interested in.
I was recently reminded of this when the Github1s project went viral on HN recently. It lets you swap out any
github.com
repo forgithub1s.com
and it opens up a VS Code file explorer for easier navigation (GitHub's default file navigation is slow and clunky).Other Instances
I've also seen this behavior in website ranking tools: https://www.similarweb.com/website/dev.to/ shows you the traffic of Dev.to:
In the "we deploy your code" industry it is also pretty common to use Prefixed URLs as "Deploy Buttons" like Netlify and Codesandbox.
Pomber has a little Github history suffix for codesurfing:
{% twitter 1092827841509707778 %}
I think this is a wonderful little user experience and encourage more people to think of creative ways to consume URLs and extend the Open Web.