You can use it via the mobile friendly web UI or automate it with API already provided. I'm also thinking of building a browser extension to shorten any URL in a click (context menu for example).
Usage
Just visit urlssh.xyz. You can also integrate API for programmatic usage.
PS: https://urlssh.xyz/6OTMTS is short link to this article ๐
adhocore / urlsh
Golang URL shortener and bookmarker service with UI, API, Cache, Hits Counter and forwarder using postgres and redis in backend, bulma in frontend. Think of it as self hosting ready url shortener.
urlsh
urlsh is URL shortener application built on Go language.
It does not use external libraries except the gorm
for
postgres
database and minimal redis
module redigo.
Usage
Web client
Just visit urlssh.xyz. You can also integrate API for programmatic usage.
Terminal client
If you live inside the command line terminal, you can install a client:
go get github.com/adhocore/urlsh/cmd/urlshc
or, with newer go versions
go install github.com/adhocore/urlsh/cmd/urlshc
Make sure $GOPATH
or $HOME/go/bin
is in your $PATH
or %path%
, then use it like so:
# show help
urlshc -h
# shorten a url
urlshc -url 'https://your.long.url/here'
# shorten a url with keywords and expiry date
urlshc -url 'https://your.long.url/here' -keywords 'word-1,word2' -expires '2022-12-31'
# if you have self hosted or local instance of urlsh, pass in URLSH_HOST (with domain only)
URLSH_HOST=https://your.urlsh-instance.com urlshc -url 'https://your.long.url/here'
Read below for self hostingโฆ
Top comments (0)