Skip to content
/ tp Public

📜 tp is a serverless URL shortener based on Cloudflare Workers.

License

Notifications You must be signed in to change notification settings

jerryshell/tp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

townportal icon

tp is a serverless URL shortener based on Cloudflare Workers.

"tp" stands for "Town Portal Scroll" in DotA.

Bilibili Video: https://www.bilibili.com/video/BV1jc411T7Cf

Example

# 1. Create link
curl -X POST -d '{ "url": "https://google.com" }' https://tp.jerryshell.workers.dev/create
# 2. Get response /goto/cXB3HpG
# 3. Open in browser https://tp.jerryshell.workers.dev/goto/cXB3HpG

Wrangler cmd

Login

npx wrangler login

Create KV namespace

wrangler kv:namespace create tp
wrangler kv:namespace create tp --preview

Dev

npx wrangler dev

Publish

npx wrangler publish

LICENSE

GNU Affero General Public License v3.0

About

📜 tp is a serverless URL shortener based on Cloudflare Workers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages