Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishiosaur/ll
⚡️ A blazing fast link shortener powered by Next.js and DNS magic!
https://github.com/rishiosaur/ll
link
Last synced: about 1 month ago
JSON representation
⚡️ A blazing fast link shortener powered by Next.js and DNS magic!
- Host: GitHub
- URL: https://github.com/rishiosaur/ll
- Owner: rishiosaur
- License: mpl-2.0
- Created: 2020-10-28T12:54:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T01:25:03.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T09:53:53.851Z (about 2 months ago)
- Topics: link
- Language: TypeScript
- Homepage: https://z.rishi.cx/ls
- Size: 625 KB
- Stars: 41
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hackclub - LL - [@rishiosaur](https://github.com/rishiosaur) - **(TypeScript)** _A minimal (but blazing fast) link shortener written on Vercel and Firebase._ (Web Apps)
- starred - rishiosaur/ll - ⚡️ A blazing fast link shortener powered by Next.js and DNS magic! (TypeScript)
- awesome-blazingly-fast - ll - ⚡️ A blazing fast link shortener powered by Next.js and DNS magic! (TypeScript)
README
# LL
![lint status](https://github.com/rishiosaur/ll/workflows/lint/badge.svg)
![format status](https://github.com/rishiosaur/ll/workflows/format/badge.svg)
![GitHub](https://img.shields.io/github/license/rishiosaur/ll)
![GitHub issues](https://img.shields.io/github/issues/rishiosaur/ll)
![GitHub contributors](https://img.shields.io/github/contributors/rishiosaur/ll)
![GitHub last commit](https://img.shields.io/github/last-commit/rishiosaur/ll)A minimal link shortener powered by Next.js and Vercel.
## Structure of a route:
```
{
url: string
name: string
public: boolean
title?: string
description?: string
}
````url` is the end URL that you'd like to redirect to.
`name` is the name of the route that redirects to `url`.
`public` is a boolean that determines whether or not this redirect shows up in the public directory.## Basic Setup
`LL` was created to be completely open; it works with any data source that returns an array of objects that conform to the above protocol.
For the most basic setup, you can generate a basic data source by using the [ll-basic](https://github.com/rishiosaur/ll-basic) template. Hit the `routes.json` file and click "Raw" (the returned JSON implements the above protocol; try parsing it yourself!)
The returned URL will be your API url. Just click the button below, and fill in the appropriate fields.
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Frishiosaur%2Fll&env=apiURL&project-name=link-shortener&repo-name=link-shortener)