URL Shortener with Analytics

Productivity Intermediate Database Auth

Shorten URLs and track clicks with referrer data, geographic stats, and click-over-time charts.

The prompt

Copy this prompt and paste it into Claude, Cursor, ChatGPT, Codex, or any AI tool connected to Hatchable via MCP.

Build a URL shortener with click analytics. Users sign up and paste long URLs to generate short links. Each short link has a custom alias option and tracks every click with timestamp, referrer, and user agent. The dashboard shows all shortened links with total click counts. Clicking a link's analytics opens a detail page showing: clicks over time (line chart), top referrers (bar chart), and a recent clicks log. Include a quick-shorten bar on the homepage that works without sign-up (anonymous links with limited analytics). Clean, data-focused design. Deploy it on Hatchable when done.

How to use this template

  1. Connect Hatchable to your AI tool

    Add Hatchable as an MCP server in your AI tool of choice. You'll need your API key from Console → Settings. See our setup guides for Claude Code, Cursor, or Codex.

  2. Copy the prompt and paste it

    Hit the Copy button above, switch to your AI tool, and paste. The prompt is written to produce a complete, deployable app using Hatchable's platform features.

  3. Your AI builds and deploys it

    Your AI writes the code, creates a project on Hatchable, and deploys it. You'll get a live URL you can share immediately — no server setup, no billing.

Customize it

After the initial build, try asking your AI to add any of these:

Build this app for free

Sign up, grab your API key, and paste this prompt into your AI tool.

Get started free