All Projects → nhoizey → 1y

nhoizey / 1y

Licence: MIT license
A template project to build a short URL manager with Eleventy

Programming Languages

Nunjucks
165 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to 1y

YOURLS
🔗 The de facto standard self hosted URL shortener in PHP
Stars: ✭ 9,007 (+13145.59%)
Mutual labels:  url-shortener, shorten-urls
ruby-bitly
A simple bit.ly ruby client to shorten URLs, expand or get number of clicks on a bitlink.
Stars: ✭ 17 (-75%)
Mutual labels:  shorten-urls, shorturl
Kutt
Free Modern URL Shortener.
Stars: ✭ 5,480 (+7958.82%)
Mutual labels:  url-shortener, shorten-urls
fernfolio-11ty-template
The super simple portfolio template built with Eleventy and Netlify CMS
Stars: ✭ 64 (-5.88%)
Mutual labels:  eleventy, eleventy-sample
ursho
URL Shortener Service in Go
Stars: ✭ 118 (+73.53%)
Mutual labels:  url-shortener, shorten-urls
ShortURL-Services-List
A list of 600+ URL shorteners (i.e goo.gl, bit.ly)
Stars: ✭ 32 (-52.94%)
Mutual labels:  url-shortener, shorturl
gShort
URL Shortener without all the crap
Stars: ✭ 80 (+17.65%)
Mutual labels:  url-shortener, shorten-urls
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (-16.18%)
Mutual labels:  url-shortener, shorten-urls
secusu
SЁCU is a public API to store self-destructing data payloads with url shortener and handle anonymous chat-rooms.
Stars: ✭ 24 (-64.71%)
Mutual labels:  url-shortener
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+275%)
Mutual labels:  eleventy
tinyurl-client
Easily use TinyURL in your JavaScript app. This library is no longer maintained.
Stars: ✭ 23 (-66.18%)
Mutual labels:  shorten-urls
small-sh
Um encurtador de URL's gratuito e Open source. Torne suas URL's um tanto pequenas forma rápida e gratuita
Stars: ✭ 30 (-55.88%)
Mutual labels:  shorten-urls
eleventy-plugin-toc
11ty plugin to generate a TOC from page content
Stars: ✭ 45 (-33.82%)
Mutual labels:  eleventy
UrlShortener
Shortens long urls. Select from a list of available hosts.
Stars: ✭ 49 (-27.94%)
Mutual labels:  shorturl
eleventy-plugin-embed-tweet
A plugin for embedding tweets on the server side during build time
Stars: ✭ 24 (-64.71%)
Mutual labels:  eleventy
shorturl-egg
shorturl powered by egg
Stars: ✭ 24 (-64.71%)
Mutual labels:  shorturl
static-site
Static Sites - Open-Source and Paid | AppSeed App Generator
Stars: ✭ 17 (-75%)
Mutual labels:  eleventy
eleventy-upgrade-help
Helper plugin when upgrading your Eleventy project to a new major version.
Stars: ✭ 33 (-51.47%)
Mutual labels:  eleventy
miniurl
A production-ready URL shortener microservice.
Stars: ✭ 20 (-70.59%)
Mutual labels:  url-shortener
eleventy-duo
Eleventy Duo is a minimal and beautiful Eleventy theme for personal blogs.
Stars: ✭ 146 (+114.71%)
Mutual labels:  eleventy

1y: taking the 1t out of 11ty 😅

1y logo

What is this?

1y is a short URL manager built with Eleventy (a.k.a. 11ty), the great JavaScript/Node based Static Site Generator.

This is not a URL "shortener", as it doesn't process anything. Short and long versions of URLs are managed manually, so that short URLs can be "beautiful".

How does it work?

1y generates redirection rules from your set of data, each URL being stored in a Markdown file:

  • the fileSlug of the Markdown file (the filename without the extension in 11ty language) is the short URL. For example, the Markdown file nho.md you'll find in this template repository is used to create the https://<your-short-domain>/nho short URL.
  • the long URL is stored in the file's Front Matter, for example here the nho.md file only contains these 3 lines:
    ---
    url: https://nicolas-hoizey.com/
    ---

So for this example, when you go to https://<your-short-domain>/nho, it redirects you to https://nicolas-hoizey.com/.

If you don't want to manage many Markdown files for your short URLs, you can try Suri, another Eleventy based short URL manager, which uses one single JSON file.

Redirection rules are generated in 4 formats to ease usage on different environments:

You don't have to deal with any settings to chose which one to use, all 4 formats are generated at once.

What do I have to do to use it?

This repository is intended to be used as a template for creating your own repository.

The easiest: use Netlify Deploy Button

Deploy to Netlify

Clicking the button above will:

  • create a new repository in your own GitHub account with 1y code
  • and deploy a copy of this new repository to your Netlify account (you can create an account during this process if you don't have one).

Each time you push changes to your Github repository (or add files directly with Github's Web interface), Netlify will build the new redirection files.

If you want to use another hosting service: use the Github template

  1. Click the Use this template green button in Github interface to create your own 1y repository in your Github account
  2. Clone or download the new repository to your local computer
  3. (optional) If you don't have npm yet, install npm
  4. Install 1y dependencies with npm install
  5. Add new short URLs as Markdown files in the urls/ folder
  6. Generate the redirection files with this command: npm run build

Generated files to deploy are in the _site folder.

Contribution

You are welcome and encouraged to make changes to this website by submitting pull requests!

License

MIT

Copyright (c) 2020-present, Nicolas Hoizey

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].