Skip to content

This is a URL shortening API called Crisp-Link API. The details for using this API has been specified in this website(i.e. https://nabeel001.github.io/Crisp-Link/)

Notifications You must be signed in to change notification settings

nabeel001/Crisp-Link-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crisp-Link-API

  • Send a POST request with the Long url to this API Endpoint and recieve a Crisp-Link (i.e. short url) as response.
  • sending a GET request to the generated Crisp-Link will redirect to the original url.
  • check out https://nabeel001.github.io/Crisp-Link/ for implementation details to use this API for your websites and applications.

Tools and frameworks used

  • NodeJS, Express, MongoDB (Mongo Atlas)

How does it work?

  • nanoid package is used to generate the unique IDs for the links
  • IDs of length 9 are used reduce the probability of collision
  • ~2 years needed, in order to have a 1% probability of at least one collision, when 1000 IDs are generated each hour
  • MongoDB Atlas (Cloud Database) is used to map the full links to the IDs
  • This API is currently hosted for free at render.com

About

This is a URL shortening API called Crisp-Link API. The details for using this API has been specified in this website(i.e. https://nabeel001.github.io/Crisp-Link/)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published