Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacoblincool/certi
An configurable URL shortener for Certificates (and other things).
https://github.com/jacoblincool/certi
cli cloudflare-workers deta url-shortener
Last synced: 14 days ago
JSON representation
An configurable URL shortener for Certificates (and other things).
- Host: GitHub
- URL: https://github.com/jacoblincool/certi
- Owner: JacobLinCool
- License: mit
- Created: 2022-03-15T18:08:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T02:27:17.000Z (about 1 year ago)
- Last Synced: 2024-10-15T03:01:46.463Z (4 months ago)
- Topics: cli, cloudflare-workers, deta, url-shortener
- Language: TypeScript
- Homepage: https://certi.jacoblin.cool
- Size: 433 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Certi
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## Usage
### Create a short URL
```sh
curl https://certi.jacoblin.cool/create?cert=&prefix=
````cert`: The URL of the certificate.
`prefix`: The prefix of the short URL. (optional, length: 0-16)success:
```json
{
"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:
```json
{
"success": false,
"error": "Already Exists (or other error message)",
"url": "https://certi.jacoblin.cool/jacob-861523"
}
```### Delete a short URL
```sh
curl /delete?key=&del_code=
```success:
```json
{
"success": true,
"item": {
"cert": "https://www.coursera.org/account/accomplishments/certificate/RZU3FVL3SWJ4",
"created": 1647366594944,
"del_code": "lpq9h2",
"key": "jacob-861523",
"prefix": "jacob-"
}
}
```failed:
```json
{
"success": false,
"error": "Error Message"
}
```## Supported Certificates
Now it only supports [Coursera](https://www.coursera.org/) 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.
## Endpoints
Those are public endpoints:
- `cert.deta.dev` (Hosted on [Deta](https://deta.sh/))
- `certi.jacoblin.cool` (Alias of `cert.deta.dev`)
- `certi.jacob.workers.dev` (Hosted on [Cloudflare Workers](https://workers.cloudflare.com/))You can also host this service on your own domain.