{"id":31111869,"url":"https://github.com/jonathanwthom/earl","last_synced_at":"2025-09-17T08:27:02.608Z","repository":{"id":82273180,"uuid":"290122092","full_name":"JonathanWThom/earl","owner":"JonathanWThom","description":"Link shortener and view metrics logger.","archived":false,"fork":false,"pushed_at":"2021-06-22T03:42:32.000Z","size":4513,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T02:05:07.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonathanWThom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-25T05:29:12.000Z","updated_at":"2021-06-22T03:42:34.000Z","dependencies_parsed_at":"2023-03-01T21:15:50.209Z","dependency_job_id":null,"html_url":"https://github.com/JonathanWThom/earl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JonathanWThom/earl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanWThom%2Fearl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanWThom%2Fearl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanWThom%2Fearl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanWThom%2Fearl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonathanWThom","download_url":"https://codeload.github.com/JonathanWThom/earl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanWThom%2Fearl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275558362,"owners_count":25486432,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-17T08:27:01.380Z","updated_at":"2025-09-17T08:27:02.601Z","avatar_url":"https://github.com/JonathanWThom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Earl\n\nLink shortener and view logger\n\n# Endpoints\n\n### POST /accounts\n\nCreate an account, receive a token back\n\nExample request:\n```\ncurl -X POST http://localhost:8000/accounts`\n```\n\nExample response:\n```\n{\"token\":\"WS1kVlNQRk5fV003Nzh2MFozSUl3\"}\n```\n\n### POST /links\n\nCreate links associated with an account, or not.\n\nExample request, with account:\n```\ncurl -X POST http://localhost:8000/links \\\n-d \"url=https://jonathanthom.com\" \\\n-H \"Authorization: basic token-from-account-creation\"\n```\n\nExample request, without account:\n```\ncurl -X POST http://localhost:8000/links \\\n-d \"url=https://jonathanthom.com\" \n```\n\nExample response:\n```\n{\"original\":\"https://jonathanthom.com\",\"shortened\":\"http://localhost:8000/orxHsI\",\"views\":null}\n```\n\n### GET /links\n\nInspect Links \u0026 Views (only works with account)\n\nExample request:\n```\ncurl http://localhost:8000/links \\\n-H \"Authorization: basic token-from-account-creation\"\n```\n\nExample response:\n```\n[{\"original\":\"https://jonathanthom.com\",\"shortened\":\"http://localhost:8000/R-KMIa\",\"views\":[{\"createdAt\":\"2020-08-29T21:42:56.706419Z\",\"referer\":\"\",\"country\":\"United States of America\",\"city\":\"Bellingham\",\"zipCode\":\"98225\"}]}]\n```\n\n### Visit Link\n\n`curl -L http://localhost:8000/{identifier}` or just use a browser, of\ncourse!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanwthom%2Fearl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanwthom%2Fearl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanwthom%2Fearl/lists"}