DEV Community

Discussion on: Building a Simple URL Shortener With Just HTML and Javascript

Collapse
 
eduardo305 profile image
eduardo305

Great article. My only question is how do you guarantee the short url is unique with the getRandom function? How many unique urls do you think the algorithm can provide?

Collapse
 
bauripalash profile image
Palash Bauri 👻

It's just simple guide , I've not made it complex, to let beginners understand the code easily.

Here's the production code,

bauripalash / fossurl

Your Own Url Shortner Without any fancy server side processing and support for custom url , which can even be hosted on GitHub Pages

FossURL 🔗

An Easy to Use URL Shortner Without Needing a User to setup a fancy Server with PHP or NodeJs to work.

>Working Demo<

our old domain fossurl.palash.tk is no longer used , instead we use fossurl.ml

Current Version : 2.0 beta

🎯 Goal Of This Project

Implementing a Simple URL Shortner which can be used without need of any hardcore server side processing and can be hosted on Static Site Hostings like GitHub/Gitlab Pages

💻 Technologies Used

  • Client Side
    1. HTML
    2. CSS
    3. JavaScript
      • jQuery
      • SimpleCopy
  • Server Side
    1. Database : jsonstore.io

TODOs:

  • Shorten via api [Work in Progress]

  • Add Custom URL Supoort [DONE]

⚠ Warning

Please Don't Use FossUrl to shorten any sensitive Information , important files or any other sensitive things which can create privacy issues for an individual or a company or an organisation.

Licence : MIT

Logo License : Creative Commons Attribution-ShareAlike 4.0 International License

Please Contribute 😊


If You Like My Work Consider