Rafif Muchsin
Link Shortener
Error
Something went wrong
Link Shortener
Ready to share
Something went wrong
This is a completely serverless link shortener that uses GitHub as a decentralized database. It offers 100% data ownership with zero database hosting costs. Anyone can use this tool by only providing a Target URL, User, Repo, and GitHub Token.
It's also possible to use it by cloning the repository.
my-links).repo scope.Your GitHub Token is stored locally in your browser to avoid repeated typing. To keep your credentials safe from casual inspection or malicious browser scrapers, we use a Symmetric XOR Obfuscation layer:
localStorage, your token is processed via a bitwise XOR cipher and Base64 encoded. It never exists as plain text in your storage.api.github.com. It never touches any third-party analytics or backend servers.The "Preset" dropdown reads from a file called domains.json located in the project's root. The Default (Root) option is auto-filled to save you time if you have a primary repository you use constantly.
Why add a new option? If you want to categorize your links (e.g., one repo for /blog/ and another for /dl/ by modifying its "prefix"), you can clone this project and edit domains.json to add custom prefixes.
[
{
"prefix": "",
"name": "Default",
"user": "rafifmsn",
"repo": "rmsn-link-base",
"default": true
},
{
"prefix": "tr",
"name": "Trash",
"user": "rafifmsn",
"repo": "trash-bin",
"default": false
}
] The system uses a Smart Match routing logic. The generated link adapts based on whether your repository is registered in domains.json or not:
s.domain.com/01JG... (or /prefix/01JG...)s.domain.com/01JG...#u=user&r=repoNote: Using Cloudflare Zero Trust to gate this dashboard is highly recommended if you are deploying this publicly.