Skip to content

u2v/uauli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uau.li

Uau is a temparory/permanent link shortener.

Have a try!*

* currently deployed on Workers, Workers KV & Pages

Usage

  • Generate a temporary shortened link for a link
  • ... or for some text
  • Generate permanent links for the administrator

Special Traits

Multiple levels of paths

Examples:

inheritPath - Append the paths after shortened link to the target URL

// PUT /_/pixiv

{
    "type": "link",
    "payload": "https://www.pixiv.net/artworks",
    "inheritPath": true
}

Result:

UAU link Target
two.li/pixiv/15308432 https://www.pixiv.net/en/artworks/15308432
two.li/pixiv/93067044 https://www.pixiv.net/en/artworks/93067044
two.li/pixiv/<any id> https://www.pixiv.net/en/artworks/<id>

inheritParam - Append the query parameters to the target URL (and preserve the ones in the target URL)

// PUT /_/1p3a

{
    "type": "link",
    "payload": "https://www.1point3acres.com/bbs/forum.php?mod=viewthread",
    "inheritParam": true
}

Result:

UAU link Target
two.li/1p3a?tid=4428 https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=4428
two.li/1p3a?tid=71069 https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=71069
two.li/1p3a?tid=<any id> https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=<id>

Use any database on your choice

e.g. Workers KV

Core API & Other Features

Check API doc.

License

MIT