{"id":18031700,"url":"https://github.com/stevekrouse/unbreakable-links","last_synced_at":"2025-08-18T06:31:46.012Z","repository":{"id":149825272,"uuid":"106214230","full_name":"stevekrouse/unbreakable-links","owner":"stevekrouse","description":"all github pages links can be permalinks","archived":false,"fork":false,"pushed_at":"2017-11-09T01:45:12.000Z","size":31,"stargazers_count":7,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T13:43:21.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/stevekrouse.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":"2017-10-08T22:25:11.000Z","updated_at":"2024-08-26T20:36:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"20c28413-dedf-4555-bf95-6ec9538ac5dd","html_url":"https://github.com/stevekrouse/unbreakable-links","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevekrouse%2Funbreakable-links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevekrouse%2Funbreakable-links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevekrouse%2Funbreakable-links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevekrouse%2Funbreakable-links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevekrouse","download_url":"https://codeload.github.com/stevekrouse/unbreakable-links/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230206221,"owners_count":18190017,"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":"2024-10-30T10:10:27.579Z","updated_at":"2024-12-18T01:43:51.476Z","avatar_url":"https://github.com/stevekrouse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unbreakable-links: rm without anxiety\n\nYou want to delete a page from your Github Pages site, but are worried about all of the countless links around the web this will break.\n\nUnbreakable-links to the rescue. \n\nBy associating your content with its git commit hash, it ensures your links never break. \n\n## How to install\n\nAdd the following script tag to every page in your website: \n\n```html\n\u003cscript repoPath=\"stevekrouse/unbreakable-links\" type=\"text/javascript\" src=\"https://cdn.rawgit.com/stevekrouse/unbreakable-links/master/index.js\"\u003e\u003c/script\u003e\n```\n\n**NOTE: don't forget to customize the `repoPath` attribute to what it is for you.**\n\nAlso, don't forget to add it to your `404.html` page if you want it to work for deleted pages!\n\n## We handle all the cases\n\n| File            | Commit Hash   | Output                                                                                            |\n| -------------   | ------------- |---------------------------------------------------------------------------------------------------|\n| currently exits | none in URL   | \"You are viewing the most recent version of this file.\" We also add the commit hash to the URL.   |\n| currently exits | current hash  | \"You are viewing the most recent version of this file.\"                                           |\n| currently exits | old hash      | \"There is a more recent version of this file.\"                                                    |\n| deleted         | none in URL   | \"This file was deleted. Here is the most recent version.\" We also add the commit hash to the URL. |\n| deleted         | current hash  | \"This file was deleted, but this is the most recent version that existed.\"                        |\n| deleted         | old hash      | \"This file was deleted, but there is a more recent version than this one.\"                        |\n| never existed   | N/A           | \"This file never existed\"                                                                         |\n| moved           | N/A           | not yet handled                                                                                   |\n\n## FAQ\n\n### Isn't this basically a server on the frontend?\n\nYes, yes it is. Someone probably should [turn this into a backend service at some point](https://github.com/stevekrouse/unbreakable-links/issues/11).\n\n### Why did you make this?\n\nI was tired of mapping out migration plans and wanted to be able to move around my content  with ease. \nYou can [read my full thought proccess here](https://github.com/stevekrouse/futureofcoding.org/issues/51).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevekrouse%2Funbreakable-links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevekrouse%2Funbreakable-links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevekrouse%2Funbreakable-links/lists"}