NiketanG / Shortr

URL Shortening done right.

Home Page:https://shortrr.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shortr

code style: prettier

URL Shortening done right.

Shortr is a Free and Open-Source URL Shortening Service.

It Features:

  • Custom Short Urls
    • Specify your own Custom Shortr Urls to be used
  • Dashboard
    • All your links are available in one place
  • Realtime and Granular Statistics
    • No. of Visits
    • Timeline of Visits
    • Country wise Statistics
    • Referers
    • All available as Charts
    • Realtime Updates

Get Started here

Demo

Stack

API

We also provide a REST API for Url Shortening

Create a new Url :

Endpoint: /api/url
Method: POST
Data: {
        longUrl: "Url to Shorten",
        customCode: "(Optional) Custom Shortr Code"
      }

Get information about all Custom Url you made:

You have to be signed in for this

Endpoint: /api/url
Method: GET

Get information about a Custom Url :

Endpoint: /api/url/<shortUrlCode>
Method: GET

Update a Custom Url :

Endpoint: /api/url/<shortUrlCode>
Method: PUT
Data: {
        urlCodeToUpdate: "Url Code to update",
        newUrlCode: "New Custom Shortr Code"
      }

Delete a Custom Url :

Endpoint: /api/url/<shortUrlCode>
Method: DELETE

Development

Clone the Repo. Install dependencies.

npm install
# or
yarn

Update Config Variables from .env.local file

Run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Contributing

contributions welcome

Contributions of all sorts are welcome. When contributing, make sure you follow Code Style and Standards in the Project.

Privacy Policy

We store the following data:

  • Actual Urls with their Shortr Urls
  • Statistics

No User data other than user email is stored. User Email is used for Dashboard.

For Users that aren't signed in, email address is not stored.

LICENSE

GitHub license

About

URL Shortening done right.

https://shortrr.vercel.app/

License:MIT License


Languages

Language:JavaScript 100.0%