Back to directory

Business Software · Marketing & Customer Engagement

Sink

Serverless link shortening and analytics on Cloudflare

Sink is an AGPL-3.0-only link shortener with visit analytics, smart routing, link controls, and a dashboard for individuals and small teams. It runs on Cloudflare Workers with D1, KV, and optional Analytics Engine, R2, and Workers AI. The project is self-hosted; no paid hosted plan is documented.

Key facts

License
AGPL-3.0-only
Main language
TypeScript, Vue
Maintainer
miantiao-me and contributors
First released
2024
Latest release
v0.3.1, September 27, 2026
GitHub stars
7.2k, October 2026
Hosted option
None

What Sink is

Sink is a self-hosted short-link application with visit analytics, designed for individuals and small teams running on Cloudflare. The repository was created in May 2024 and lists miantiao-me as its leading contributor, with 547 contributions, followed by contributors including MineraleYT and 7heMech. The repository lists 7,209 stars and 5,346 forks in October 2026. Sink’s homepage identifies HTML.ZONE as the product owner, while the README credits Cloudflare, NuxtHub, Astroship, and Tailark. The project does not publish a first-release year, so its repository creation year is the earliest dated project milestone documented here. Its latest listed release is v0.3.1, dated September 27, 2026.

How it works

Sink covers the complete short-link workflow in one dashboard. A user creates a destination URL, chooses a generated or custom slug, and can add UTM parameters, expiration, password protection, unsafe-link warnings, query handling, or social-preview metadata. Device and country routing can send visitors to different destinations, while QR generation supports offline distribution. Analytics presents counters, dimensions, event logs, exports, and a live 3D globe, using 10-second polling and client-side replay rather than SSE or WebSocket. Imports and exports use JSON and CSV. The dashboard supports multiple languages, and the API exposes link management, analytics, migration, backup, and redirect functions for automation.

Architecture and recent releases

The application uses TypeScript, JavaScript, Vue, and CSS with Nuxt 4, Tailwind CSS, shadcn-vue, and Drizzle ORM. Cloudflare D1 is the authoritative link store, while KV serves as a write-through redirect cache and Analytics Engine records visit data. R2 may hold backups and social-preview images, whereas Workers AI can optionally suggest slugs and OpenGraph content. Sink deploys to Cloudflare Workers, because Cloudflare Pages is deprecated. Version 0.3.0 moved authoritative storage from KV to D1 and required migration. Version 0.3.1 added a native MCP endpoint, reverse-proxy mode, configurable long URLs, and import previews. Upgrading to version 0.3.1 requires Node.js 24 or newer. D1 and KV remain required for deployment, while Analytics Engine, R2, and Workers AI are optional or recommended services.

License and pricing

Sink is licensed under AGPL-3.0-only, allowing copying, distribution, modification, and charging for copies. Modified versions that users access over a network must make the corresponding source available under the license. Sink does not document a proprietary enterprise edition, SaaS limitation, hosted subscription, or price. Its documented deployment model uses a fork connected to Cloudflare Workers Builds, with D1 and KV required, Analytics Engine recommended, and R2 and Workers AI optional. The homepage describes deployment as beginning without expenses, but the project text does not explain Cloudflare resource charges or account terms. Consequently, operating costs remain dependent on the selected Cloudflare services, usage, and account conditions, while the application itself remains available under the stated copyleft license.

Limitations and how it compares

Sink’s main constraint is platform dependence: self-hosting requires Cloudflare Workers, D1, and KV rather than a conventional VPS, while Cloudflare Pages deployment is deprecated. Setup also includes a one-time visit to the Dashboard and Links screens after deployment, and older KV-only installations require migration to D1 before ordinary management operations work. Compared with YOURLS, Sink emphasizes Cloudflare-native analytics and routing rather than PHP hosting. Compared with Shlink, it uses edge services rather than a conventional application stack. Compared with Dub, Sink offers an AGPL-3.0-only codebase rather than a managed commercial service. Choose Sink when Workers, D1, and an open copyleft license match the operating model, and when smart routing, link controls, analytics, and optional AI features justify dependence on Cloudflare.

Main features

  • URL shortening. Creates compact links using generated or personalized slugs, with optional case-sensitive matching controlled through configuration.
  • Visit analytics. Tracks counters, dimensions, event logs, geographic views, and time-series data through dashboards with near-real-time polling.
  • Smart routing. Routes visitors by device or country, with device routing taking precedence when both rules match.
  • Link controls. Supports expiration dates, password protection, unsafe-link warnings, cloaking, query handling, and custom redirects for pages that cannot be found.
  • AI assistance. Optionally uses Workers AI to suggest slugs and generate localized OpenGraph titles and descriptions from page content.
  • Import and export. Imports links from JSON with preview support and exports links or access analytics as CSV files.
  • MCP endpoint. Exposes link management and analytics tools through a native HTTP MCP endpoint for compatible AI clients.

Self-hosting Sink

Sink runs on Cloudflare Workers, with Cloudflare Pages deprecated. Deployment starts by forking the repository, connecting the fork through Workers Builds, and running the documented pnpm build and pnpm deploy:worker commands. D1 and KV are required. Analytics Engine is recommended, while R2 is optional for backups and social-preview images, and Workers AI is optional for suggestions. Set a stable NUXT_SITE_TOKEN with at least eight non-whitespace characters. After deployment, open Dashboard, then Links once to finish storage setup. Version 0.3.0 requires KV-to-D1 migration, and the v0.3.1 upgrade requires Node.js 24 or newer.

Strengths

  • Cloudflare Workers avoids managing a conventional VPS.
  • D1, KV, Analytics Engine, and R2 map cleanly to distinct application roles.
  • Smart routing, passwords, expiration, and analytics cover common campaign needs.
  • AGPL-3.0-only keeps the complete application source available for modification.

Drawbacks

  • Self-hosting depends on Cloudflare Workers and its storage products.
  • Cloudflare Pages deployment is deprecated.
  • KV-to-D1 migration adds upgrade work for older installations.

What teams replace with it

Teams usually evaluate Sink when they want to move off Bitly, Rebrandly, Short.io.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Sink

Frequently asked questions

Is Sink free to use?

Sink is published under AGPL-3.0-only, and its homepage describes deployment without expenses. The project does not publish a hosted subscription price or detail Cloudflare account charges. Running an instance still requires creating Cloudflare resources, including D1 and KV, so operational costs depend on the Cloudflare account and usage terms.

Can Sink be used commercially?

The AGPL permits copying, modifying, distributing, and charging for copies. Sink’s license also addresses software used over a network and requires a way for users to obtain corresponding source for covered modified versions. Organizations should review the full AGPL-3.0 terms before offering a modified network service.

How do I self-host Sink, and what does it require?

Fork the repository, connect it to Cloudflare Workers Builds, and deploy with the documented pnpm commands. D1 and KV are required. Analytics Engine is recommended, while R2 and Workers AI are optional. Set NUXT_SITE_TOKEN, deploy, then open Dashboard and Links once to complete storage setup.

How does Sink compare with Shlink?

Sink and Shlink both provide self-hosted short links and analytics, but their documented deployment models differ. Sink uses Cloudflare Workers with D1 and KV, while its project text does not describe Shlink’s implementation. Sink is a strong fit when Cloudflare services and an AGPL license suit the deployment; Shlink may fit a conventional server stack better.

Does Sink keep link data private?

Sink stores authoritative links in Cloudflare D1 and uses KV as a redirect cache. Analytics can use Cloudflare Analytics Engine, and R2 can store optional backups and social-preview images. Authentication uses NUXT_SITE_TOKEN, with optional Cloudflare Access authentication documented in release notes. The project does not publish a broader privacy policy here.

Similar projects to compare

Sources

Last updated 2026-10-22.