Sink is a simple/fast/safe link shortener that runs 100% on Cloudflare. The core problem this project mainly addresses is compressing long links to the minimum length and provides the following features and advantages:
- URL shortening: Compress your URL to the minimum length.
- Analytical statistics: Monitor link analytics and gather insightful statistics.
- Serverless deployment: Deploy without traditional servers.
- Customizable Slug: Supports personalized Slugs.
- AI Slug: Generates Slugs using artificial intelligence.
- Link expiration time settings.
Screenshot Preview:#
DEMO#
Official Demo: https://sink.cool/dashboard (Site Token: SinkCool)
Create Link#
Analytics Interface#
Setup Tutorial:#
First, we need accounts on GitHub and Cloudflare, then fork the project to your own repository.
GitHub address: https://github.com/ccbikai/Sink If you want to set up a server, I recommend Wu Liu Qi Cloud: https://www.vps567.com Hong Kong 2H2G5M server 20/month, and high-defense CDN acceleration starts at only 18/month.
Create an application in Cloudflare under Workers and Pages:
Select Nuxt.js as the framework preset, make sure not to select next.js by mistake.
Configure environment variables:
There are three variables that need to be configured:
- NUXT_SITE_TOKEN: The password to access the project after launch.
- NUXT_CF_ACCOUNT_ID: The CF account ID.
NUXT_CF_API_TOKEN account token.
Select Account. Account Analytics. If your interface is in Chinese, you can change the language in the upper right corner to English for easier selection.
Save and Deploy#
However, the deployment at this point may fail, and you need to go back to the CF page settings to select Functions and then configure.
KV namespace binding:
If your KV does not have a namespace yet, you can create one here.
Bind Workers AI and Analytics Engine, variable name: ANALYTICS dataset: sink.
Go back to the deployment interface and redeploy to complete the setup.
Finally, you can bind a domain name that has been hosted on Cloudflare or use the assigned domain name to access it.
Text tutorial source: https://runnable.run/docs/devops/Cloudflare/wan-zhuan-cf-zhi-bu-shu-duan-lian-jie-sheng-cheng-qi-sink/