A simple URL shortener
Project description
golink - git powered go-links
Host your own "go-links" via git and github pages
pip install golink
What: golink is a command line tool that maps custom shortlinks to URLs via
Git and GitHub Pages. This free software is licensed under GPLv3 and is a fork of gitlink.
How: golink works by storing state on GitHub
and rendering structured redirects on GitHub pages. Add, remove, and visualize link mappings through the command line!
Commands
$ golink set zoom https://mit.zoom.us/j/95091088705
=> Success: Set key "zoom" → "https://mit.zoom.us/j/95091088705".
$ golink hide zoom
=> Success: Removed key "zoom".
$ golink show
=> Checking for changes from remote...
== golink (Remote: git@github.com:lengstrom/goto.git) ==
calendly → https://calendly.com/loganengstrom
classes/18.102 → http://math.mit.edu/~rbm/18-102-S17/
classes/6.005 → http://web.mit.edu/6.031/www/fa18/general/
ffcv_slack → https://ffcv-workspace.slack.com/join/shared_invite/zt-11olgvyfl-dfFerPxlm6WtmlgdMuw_2A#/shared-invite/email
papers/bugsnotfeatures → https://arxiv.org/abs/1905.02175
zombocom → https://www.zombo.com
zoom → https://mit.zoom.us/j/95091088705c
Setup
Configure golink in two steps!
Set-up GitHub Repository
First, visit https://github.com/new and choose a short, memorable name like go for your golink repository.
Now, check the box "Add a README file" (the repository can't be empty).
Make the repository, then go your repository's GitHub pages settings: https://github.com/<USERNAME>/go/settings/pages and enable GitHub pages for the master/main branch:
Install golink
pip
pip install golink
pipx
git clone https://github.com/Mehvix/golink.git
cd golink
pipx install .
Initialize golink
golink init <remote_url>
Your <remote_url> can be found here:
After this step, you should be able to make go-links to your heart's content.
todos
- Dark theme (OneDark?)
- Migration CLI function
- Faster forwarding?
- Proper arg parsing
- Mobile support
- Silly header
- Forward link metadata
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file golink-0.5.9.tar.gz.
File metadata
- Download URL: golink-0.5.9.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.9.18 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfda6bd6f0df3ab34e145e7801b2ad8cb1053c239ad57cfcc912c87401e549a9
|
|
| MD5 |
1879f655c3ece91ac6e16cba298dbe25
|
|
| BLAKE2b-256 |
1bcebe3a5789e52b83256943b0e03c039383d07276a5bc8db1b1d272b586aab1
|
File details
Details for the file golink-0.5.9-py3-none-any.whl.
File metadata
- Download URL: golink-0.5.9-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.9.18 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d8213e780b817e93b165857b01dd09d1ca039b18d6dcd14bafa66fb40b408a5
|
|
| MD5 |
910a8495bea767c5521cb42eee09c451
|
|
| BLAKE2b-256 |
e249bec71f76a06975df1939a1b17cb4239f1a51cbc980f5ebf105ac63d2a7da
|