Snip
A link shortener with honest analytics: custom codes, per-day click charts, referrer breakdowns and a JSON API. A complete little product in one small codebase.
Try it, live
This isn’t a mock-up. It’s the real application, running on this server with its own database. You get a private copy. Shorten something, click it, watch the chart move.
Snip is the developer-tool end of the portfolio: a tiny product surface with a real data model underneath. Every visit to a short link is stored as its own event, so the numbers are computed from what actually happened rather than a counter that might drift.
What it shows
The stats page draws its charts as SVG on the server. No charting library, and no JavaScript needed to see your numbers. The same figures come back as JSON from a documented API, rate-limited the way a public endpoint should be.
A safety decision worth reading
A public demo of a link shortener is, technically, an open redirect, which is exactly what phishing links love. So the demo lands on a page that shows where the link goes before you continue. Real deployments redirect instantly. Knowing when not to is part of the job.
What it does
- Short links with optional custom codes
- Every click stored as an event with day and referrer
- Per-day click chart rendered as SVG on the server
- Documented JSON API with rate limiting
- Open-redirect abuse designed out of the public demo