{"id":26566363,"url":"https://github.com/erolleddev/url-shortener","last_synced_at":"2025-03-22T18:34:47.932Z","repository":{"id":248891453,"uuid":"830099383","full_name":"ErolledDev/Url-Shortener","owner":"ErolledDev","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-19T15:20:38.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T15:28:25.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErolledDev.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-17T15:30:57.000Z","updated_at":"2025-03-19T15:20:42.000Z","dependencies_parsed_at":"2024-07-17T19:16:04.392Z","dependency_job_id":"788d63de-5c65-4194-95d3-968f365ccc0a","html_url":"https://github.com/ErolledDev/Url-Shortener","commit_stats":null,"previous_names":["erolleddev/url-shortener---static-url-shortener-","erolleddev/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErolledDev%2FUrl-Shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErolledDev%2FUrl-Shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErolledDev%2FUrl-Shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErolledDev%2FUrl-Shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErolledDev","download_url":"https://codeload.github.com/ErolledDev/Url-Shortener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245002682,"owners_count":20545474,"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-03-22T18:32:11.067Z","updated_at":"2025-03-22T18:34:47.920Z","avatar_url":"https://github.com/ErolledDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener\n\n## Author\n**ErolledDev**\n\n**Email for Donations:** [villarin_cedrick@yahoo.com](mailto:villarin_cedrick@yahoo.com)\n\n## Introduction\nThis project is a simple URL shortener that you can host as a static site using pure JavaScript. It allows you to input an original URL and generate a shortened URL without relying on external APIs, ensuring it is free of cost and entirely self-contained.\n\n## Features\n- **Static Site:** No server-side components required.\n- **Pure JavaScript:** Uses only HTML, CSS, and JavaScript.\n- **Local Storage:** Stores URLs in the browser's local storage.\n- **Unique Identifier:** Generates a unique identifier for each URL.\n- **Automatic Redirection:** Redirects to the original URL when the shortened URL is visited.\n\n## How It Works\n1. **Input URL:** User inputs the original URL.\n2. **Generate Shortened URL:** A unique identifier is generated using base64 encoding.\n3. **Store URL:** The original URL is stored in the browser's local storage with the unique identifier as the key.\n4. **Display Shortened URL:** The shortened URL is displayed to the user.\n5. **Redirection:** When the shortened URL is visited, the page checks the unique identifier and redirects to the original URL if found.\n\n## Usage\n1. **Open the Page:** Access the static site.\n2. **Enter URL:** Input the URL you want to shorten.\n3. **Get Shortened URL:** Click the button to generate and display the shortened URL.\n4. **Visit Shortened URL:** Share or use the shortened URL to be automatically redirected to the original URL.\n\n## Hosting\nTo host this as a static site, upload the HTML and JavaScript files to your preferred hosting provider, such as:\n- **GitHub Pages**\n- **Netlify**\n- **Vercel**\n\n## Note\nThis solution is purely client-side and suitable for personal or small-scale use. For production environments requiring security and scalability, consider implementing a server-side solution.\n\n---\n\nFor more information or to donate, please contact [ErolledDev](mailto:villarin_cedrick@yahoo.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferolleddev%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferolleddev%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferolleddev%2Furl-shortener/lists"}