A local go links redirect service for URL shortcuts
Project description
Golinks
A simple local HTTP redirect service that turns short URLs like go/github into full URLs.
Installation
Install manually
# Clone the repository
git clone https://github.com/yourusername/golinks.git
cd golinks
# Run the install script
./install
# Edit the config
vim ~/.config/golinks/config.json
How it works
The ./install script automates the entire setup:
- Installs the Python package using uv
- Adds
127.0.0.1 goto your/etc/hostsfile (with sudo permission) - Sets up port forwarding from port 80 to 8888 using pfctl (macOS) or iptables (Linux), so you can use
go/shortcutinstead ofgo:8888/shortcut - Sets up a LaunchAgent (macOS) or systemd service (Linux) to run the server at startup
- Starts the golinks server immediately on port 8888
Once installed, golinks runs a lightweight HTTP server that reads shortcuts from a JSON config file at ~/.golinks/config.json and redirects http://go/shortcut to the configured destination URL. The config file is hot-reloaded, so you can add new shortcuts without restarting the server.
Project details
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 golinks-1.0.0.tar.gz.
File metadata
- Download URL: golinks-1.0.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a73779d22e7771c08e8b680d767fcd6537a5ca3b4e3945bb10d86d8a0283f04a
|
|
| MD5 |
7f24582ad3ff3528ff99519bf36ef204
|
|
| BLAKE2b-256 |
14cfa15d2d9a092caba5cfafcbdac868598e5047343437ef529b3dd191231a0c
|
File details
Details for the file golinks-1.0.0-py3-none-any.whl.
File metadata
- Download URL: golinks-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4dab0f0e1afef2052463a325c3040dd817bdf30b250c95c02eb33c4e764105
|
|
| MD5 |
254beb58a61afa66dffaf519fa77272d
|
|
| BLAKE2b-256 |
a9cbd2065e032e0e766c7ade30f5aa972a682f6d9d3ae7d6b520a81af5709248
|