A type-safe URL shortener in Haskell.
Built with Servant + SQLite via persistent.
Live demo: curtail.fly.dev
| Method | Route | Description |
|---|---|---|
POST |
/api/shorten |
Create a short URL |
GET |
/:code |
Redirect to original URL |
GET |
/api/stats/:code |
View click stats |
export BASE_URL=http://localhost:8080
stack runOptional env vars: PORT (default 8080), DB_PATH (default urls.db).
Deployed on Fly.io with a persistent volume for SQLite.
fly deploy