krtk.ee (/ˈkrut.kʲɛ/) or KROOT-kyeh was created because I didn't see any easy-to-use or easy-to-deploy URL shorteners, so I made my own.
Try it out: https://krtk.ee/
- Shorten URLs – Quickly generate short links.
- CAPTCHA Protection – Prevents automated abuse.
- SQLite Database – Lightweight and easy to deploy.
- Minimalist Web UI – Simple and functional interface.
- Go (latest version recommended)
- SQLite3
git clone https://github.com/ajarmoszuk/krtk.git
cd krtk
Build and run:
go get
go build -o krtk
./krtk
The server runs on port :2137
by default. Open http://localhost:2137/
in your browser.
POST /shorten
Request Body:
{
"original": "https://example.com",
"captcha_id": "captcha_id",
"captcha": "captcha_text"
}
Response:
{
"short": "/go/abc12"
}
GET /go/{short}
GET /captcha
Response:
{
"captcha_id": "abc123"
}
GET /captcha/{id}
Response: CAPTCHA image
This project is open-source under the WTFPL License.