Skip to content
/ unfurl Public

Unfurl URLs / follow redirects. A link expander. Because our office network blocks affiliate link domains.

License

Notifications You must be signed in to change notification settings

bnnanet/unfurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unfurl URLs / follow redirects. A link expander.
(because my network blocks ads, and therefore sometimes legitimate links)

http://<address>:<port>/api/unfurl
   ?url=<url>
   &depth=[10]

Usage

CLI

unfurl --depth 1 'https://tinyurl.com/2u7bcuny'
https://unfurl.bnna.net

Server

unfurld --bind 'localhost' --port '8080' --max-redirects 10
curl 'http://127.0.0.1:8080/api/unfurl?url=https://tinyurl.com/2u7bcuny&depth=1' |
   jq -r .result[0].url
https://unfurl.bnna.net

Build

  1. Install Go

    curl https://webi.sh/go | sh
    source ~/.config/envman/PATH.env
  2. Clone the repo

    git clone https://github.com/bnnanet/unfurl
  3. Dev build for the your local machine:

    go build ./cmd/unfurld/
    ./unfurld --version
    
    go build ./cmd/unfurl/
    ./unfurl --version
  4. Build with version info, for all targets:

    goreleaser release --snapshot --clean --skip=publish

Note: at least on macOS, Android only builds for arm64, see #1.

Built Live on YouTube & Twitch

This started out as a "vibe coding" session with Grok 3:

About

Unfurl URLs / follow redirects. A link expander. Because our office network blocks affiliate link domains.

Resources

License

Security policy

Stars

Watchers

Forks

Languages