Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.36 KB

README.md

File metadata and controls

76 lines (53 loc) · 1.36 KB

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: