Corty.co is a tiny and Open Source URL shortener service written in Go.
- Go 1.24+
- Tailwind CLI helper for rebuilding CSS in development
- Install with
go tool tailo download
- Install with
- Leapkit
- Htmx
- Gomponents
- Gomui
- Lucide
- Beszel
- Shorten long URLs
- Redirect shortened URLs to original URLs
- Simple and clean codebase
- Easy to set up and run
- Uses SHA-256 hashing for URL shortening
- Install deps:
go mod download - Create a database and run migrations:
go tool db create && go tool db migrate - Run the app:
go tool dev --watch.extensions=.go,.css,.js - Visit http://localhost:3000 and paste a URL you want to short.
- Build:
docker build -t cortyco . - Run:
docker run --rm -p 3000:3000 cortyco
- Beszel
- Run:
$ docker compose up -d - Open:
http://localhost:8090

