2024-12-16 18:35:54 +05:30
2024-12-15 18:53:21 +05:30
2024-12-16 18:35:03 +05:30
2024-12-16 18:27:44 +05:30
2024-12-16 18:35:54 +05:30

Linky

A dead simple static site URL shortener.

For detailed usage, code explanation and hosting, see x.snehit.dev/linky.

How to use?

Create a links.json file with route and redirect specified as follows:

{
  "/": "https://snehit.dev",
  "tw": "https://x.com/flyingcakes85",
  "gh": "https://github.com/flyingcakes85"
}

You can add as many routes as you want, as long as there are no duplicates.

Now, invoke the bundled linky.py, passing path of the links.json file you just created.

python linky.py links.json

You can change the output folder via -o/--output-dir flag.

python linky.py links.json --ouptut-dir public

Additionally, any files in static folder will be copied as it is to the build output folder.

License

MIT

S
Description
Dead simple static site URL shortener
Readme MIT 37 KiB
Languages
Python 100%