| Crates.io | mubo |
| lib.rs | mubo |
| version | 0.1.8 |
| created_at | 2023-01-09 14:46:20.045375+00 |
| updated_at | 2024-12-16 18:05:12.013537+00 |
| description | A static url shortener generator |
| homepage | |
| repository | https://codeberg.org/adriantombu/mubo |
| max_upload_size | |
| id | 754574 |
| size | 13,184 |
Mubo allows you to host your own static url shortener on GitHub Pages (or Netlify, Vercel, GitLab Pages, ...) by populating a config.toml file.
To add a new link, append the following values to your config.toml file:
[[links]]
key = "otso"
url = "https://otso.fr"
The key represents the slug that will be used to redirect to the url.
Run the mubo command within the root directory of your project where lies the config.toml file.
It will generate all the pages and subdirectories under the r directory.
If we take the example above, you will need to go to the YOUR_BASE_URL/r/otso to be redirected to https://otso.fr
To see a live example of this script, you can have a look at my own url shortener.
mubo means 'short' in Cebunao