An configurable URL shortener for Certificates (and other things).
It has a core library and multiple distributions: CLI Tool, Cloudflare Workers, and Deta Macro.
The URL of the Coursera certificate is too long, and putting it on the resume is breaking the layout, so I created this URL shortener.
Usage | Supported Certificates | Endpoints
curl https://certi.jacoblin.cool/create?cert=<certificate_url>&prefix=<prefix>
cert
: The URL of the certificate.
prefix
: The prefix of the short URL. (optional, length: 0-16)
success:
{
"success": true,
"item": {
"prefix": "jacob-",
"key": "861523",
"cert": "https://www.coursera.org/account/accomplishments/certificate/RZU3FVL3SWJ4",
"del_code": "lpq9h2",
"created": 1647366594944
},
"url": "https://certi.jacoblin.cool/jacob-861523"
}
failed:
{
"success": false,
"error": "Already Exists (or other error message)",
"url": "https://certi.jacoblin.cool/jacob-861523"
}
curl /delete?key=<key>&del_code=<delete_code>
success:
{
"success": true,
"item": {
"cert": "https://www.coursera.org/account/accomplishments/certificate/RZU3FVL3SWJ4",
"created": 1647366594944,
"del_code": "lpq9h2",
"key": "jacob-861523",
"prefix": "jacob-"
}
}
failed:
{
"success": false,
"error": "Error Message"
}
Now it only supports Coursera certificates:
https://www.coursera.org/account/accomplishments/certificate/ABCDEFGHIJKL
https://www.coursera.org/account/accomplishments/specialization/certificate/ABCDEFGHIJKL
Feel free to open an issue or pull request if you want to support other certificates.
Those are public endpoints:
cert.deta.dev
(Hosted on Deta)certi.jacoblin.cool
(Alias ofcert.deta.dev
)certi.jacob.workers.dev
(Hosted on Cloudflare Workers)
You can also host this service on your own domain.