{"id":18015363,"url":"https://github.com/hirbodbehnam/url-shorter","last_synced_at":"2026-02-17T16:32:50.019Z","repository":{"id":38075877,"uuid":"194266406","full_name":"HirbodBehnam/URL-Shorter","owner":"HirbodBehnam","description":"A small application to shorten URLs","archived":false,"fork":false,"pushed_at":"2022-12-08T05:45:40.000Z","size":19,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T00:51:18.108Z","etag":null,"topics":["netcore","server","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"C#","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/HirbodBehnam.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}},"created_at":"2019-06-28T11:58:56.000Z","updated_at":"2023-06-27T10:36:12.000Z","dependencies_parsed_at":"2023-01-24T15:15:15.544Z","dependency_job_id":null,"html_url":"https://github.com/HirbodBehnam/URL-Shorter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HirbodBehnam/URL-Shorter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FURL-Shorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FURL-Shorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FURL-Shorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FURL-Shorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HirbodBehnam","download_url":"https://codeload.github.com/HirbodBehnam/URL-Shorter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HirbodBehnam%2FURL-Shorter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29549795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["netcore","server","url-shortener"],"created_at":"2024-10-30T04:13:47.959Z","updated_at":"2026-02-17T16:32:45.003Z","avatar_url":"https://github.com/HirbodBehnam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shorter\nA small server and client application to shorten URLs\n## Installing\nSo at first on both client and server install .Net Core 2. Then clone the project and build it.\n## Running\n### Fast running\n#### Server\n```bash\n./server\n```\n_Also open the 3303/tcp port on your firewall._\n#### Client\n```bash\n./client short -s YOUR_SERVER_IP -u https://github.com/HirbodBehnam/URL-Shorter\n```\n### Detailed Usage\n#### Server\nHere is the options for server:\n```\n  -v, --verbose    Set output to verbose messages.\n\n  --db             Path to the database file.\n\n  -p, --port       (Default: 3303) Set the port that server must listen on it.\n\n  -b, --bind       (Default: 0.0.0.0) Set the IP to listen on.\n\n  --password       Sets a password for server. Anyone who wants to *SHORTEN URL* will be asked for password.\n\n  --help           Display this help screen.\n\n  --version        Display version information.\n```\nJust a small note about the password: People can still see shorten links _without_ password. It's is only required when you want to shorten a url.\n#### Client\nIn client you have 2 modes\n##### Shorten URL\nIf you want to shorten URL use this pattern:\n```\n  -u, --url        Required. URL to shorten\n\n  -s, --server     Required. The server to connect to.\n\n  -p, --port       (Default: 3303) The port to connect to for server.\n\n  -v, --verbose    Set output to verbose messages.\n\n  --password       The password for server. [If needed]\n\n  --help           Display this help screen.\n\n  --version        Display version information.\n```\nExample:\n```\n./client short -s 1.1.1.1 -u https://github.com/HirbodBehnam/URL-Shorter -p 33033 --password 1234\n```\nWith this command, client connects to 1.1.1.1:33033 with `1234` password and asks the server to shorten the `https://github.com/HirbodBehnam/URL-Shorter` url.\n##### Decode Shorted URL\nIf you want to know that is the url for a token, here is the help:\n```\n  -u, --url        Required. URL or token to decode\n\n  -s, --server     Required. The server to connect to.\n\n  -p, --port       (Default: 3303) The port to connect to for server.\n\n  -v, --verbose    Set output to verbose messages.\n\n  --help           Display this help screen.\n\n  --version        Display version information.\n```\nExample:\n```\n./client decode -u GI -s 1.1.1.1\n```\nWith this command, connects to 1.1.1.1:3303 and trys to search the database for `GI`. If found it will return the url for that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirbodbehnam%2Furl-shorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirbodbehnam%2Furl-shorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirbodbehnam%2Furl-shorter/lists"}