Projects / Product · 2025
ShortLi
A URL shortener with analytics, redirected from the edge.

01 — The problem
A short link is only useful if the redirect is fast everywhere and you can see who clicked. Sending every click through the main application makes redirects slow and ties them to that server's uptime.
02 — The solution
ShortLi answers redirects from a Cloudflare Worker that reads the link from Workers KV, close to the visitor. The Next.js application handles sign-in, link management and analytics, and stays out of the redirect path.
- Next.js
- TypeScript
- Cloudflare Workers
- Workers KV
- MongoDB
- Redis
- NextAuth
03 — What it does
- Edge redirects through a Cloudflare Worker backed by Workers KV.
- Click analytics with charts for each link.
- Custom aliases and QR code generation.
- Email and Google sign-in.
- Redis cache in front of MongoDB for hot lookups.
- Input validation with Zod and a Jest test suite.
04 — How it's built
- App
- Next.js dashboard and API routes, with MongoDB for links and users and NextAuth for sign-in.
- Edge
- Cloudflare Worker that resolves short codes from KV and redirects.
- Cache
- Redis in front of the database.
05 — Screens



Next project
Event Ecosystem →