{"id":29482709,"url":"https://github.com/ajarmoszuk/krtk","last_synced_at":"2025-07-15T02:02:14.435Z","repository":{"id":280562038,"uuid":"942408507","full_name":"ajarmoszuk/krtk","owner":"ajarmoszuk","description":"krtk.ee is an easy-to-use url shortener written in go","archived":false,"fork":false,"pushed_at":"2025-04-02T15:41:37.000Z","size":44,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T16:33:16.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajarmoszuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T04:10:26.000Z","updated_at":"2025-04-02T15:41:41.000Z","dependencies_parsed_at":"2025-04-02T16:38:16.833Z","dependency_job_id":null,"html_url":"https://github.com/ajarmoszuk/krtk","commit_stats":null,"previous_names":["ajarmoszuk/krtk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajarmoszuk/krtk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajarmoszuk%2Fkrtk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajarmoszuk%2Fkrtk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajarmoszuk%2Fkrtk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajarmoszuk%2Fkrtk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajarmoszuk","download_url":"https://codeload.github.com/ajarmoszuk/krtk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajarmoszuk%2Fkrtk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265386079,"owners_count":23756747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-15T02:01:30.589Z","updated_at":"2025-07-15T02:02:14.427Z","avatar_url":"https://github.com/ajarmoszuk.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# krtk.ee - Simple URL Shortener\n\nkrtk.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.\n\n[![Go](https://github.com/ajarmoszuk/krtk/actions/workflows/go.yml/badge.svg)](https://github.com/ajarmoszuk/krtk/actions/workflows/go.yml)\n\n## Live Demo\n\nTry it out: [https://krtk.ee/](https://krtk.ee/)\n\n## Features\n\n- **Shorten URLs** – Quickly generate short links.\n- **CAPTCHA Protection** – Prevents automated abuse.\n- **SQLite Database** – Lightweight and easy to deploy.\n- **Minimalist Web UI** – Simple and functional interface.\n\n## Screenshot\n![Web UI](https://github.com/ajarmoszuk/krtk/blob/master/screenshot.png?raw=true)\n\n## Installation\n\n### Prerequisites\n\n- Go (latest version recommended)\n- SQLite3\n\n### Setup\n\n```\ngit clone https://github.com/ajarmoszuk/krtk.git\ncd krtk\n```\n\nBuild and run:\n\n```\ngo get\ngo build -o krtk\n./krtk\n```\n\nThe server runs on port `:2137` by default. Open `http://localhost:2137/` in your browser.\n\n## API Endpoints\n\n### Shorten a URL\n```\nPOST /shorten\n```\n**Request Body:**\n```\n{\n  \"original\": \"https://example.com\",\n  \"captcha_id\": \"captcha_id\",\n  \"captcha\": \"captcha_text\"\n}\n```\n**Response:**\n```\n{\n  \"short\": \"/go/abc12\"\n}\n```\n\n### Redirect to the Original URL\n```\nGET /go/{short}\n```\n\n### Generate a New CAPTCHA\n```\nGET /captcha\n```\n**Response:**\n```\n{\n  \"captcha_id\": \"abc123\"\n}\n```\n\n### Retrieve a CAPTCHA Image\n```\nGET /captcha/{id}\n```\n**Response:** CAPTCHA image\n\n## License\n\nThis project is open-source under the WTFPL License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajarmoszuk%2Fkrtk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajarmoszuk%2Fkrtk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajarmoszuk%2Fkrtk/lists"}