A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
<img src="https://trendshift.io/api/badge/repositories/10421" alt="ccbikai/Sink | Trendshift" style="width: 250px; height: 55px;" width="250" height="55" /> <img src="https://hackernews-badge.vercel.app/api?id=40843683" alt="Featured on Hacker News" style="width: 250px; height: 55px;" width="250" height="55" />
Experience the demo at Sink.Cool. Log in using the Site Token below:
Site Token: SinkCool
We welcome your contributions and PRs.
Video tutorial: Watch here
Fork the repository to your GitHub account.
Create a project in Cloudflare Pages.
Select the Sink
repository and choose the Nuxt.js
preset.
Configure the following environment variables:
NUXT_SITE_TOKEN
: Must be longer than 8 characters. This token grants access to your dashboard.NUXT_CF_ACCOUNT_ID
: Locate your account ID.NUXT_CF_API_TOKEN
: Create a Cloudflare API token with at least Account.Account Analytics
permissions. See reference.Save and deploy the project.
Cancel the deployment, then navigate to Settings -> Bindings -> Add:
KV
to a KV namespace (create a new one under Workers & Pages -> KV).AI
to the Workers AI Catalog.Analytics Engine
, and click Set up
to enable the free version.ANALYTICS
to the sink
dataset.Redeploy the project.