https://github.com/danilppzz/node-badge-api
This is a badge api for make svg with custom text, color and border to POST it into your projects docs and make it look better.
https://github.com/danilppzz/node-badge-api
badge-generator honojs svg typescript
Last synced: 2 months ago
JSON representation
This is a badge api for make svg with custom text, color and border to POST it into your projects docs and make it look better.
- Host: GitHub
- URL: https://github.com/danilppzz/node-badge-api
- Owner: danilppzz
- License: mit
- Created: 2024-01-02T17:16:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-11T23:17:36.000Z (10 months ago)
- Last Synced: 2024-07-12T01:34:28.309Z (10 months ago)
- Topics: badge-generator, honojs, svg, typescript
- Language: JavaScript
- Homepage: https://hono-badge-api.vercel.app/
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node-Badge-API
To copy this project you have to paste this command in your terminal.
```cmd
git clone https://github.com/danilppzz/Node-Badge-API.git
```
Next thing you should do is look if you have nodejs v20 or higher.In this porject I use .tsx files by HonoJS, because is better to return code as html.
### This is the default root response ```http://localhost:3000/```
```json
{
"owner": "danilppzz",
"license": {
"custom": "http://localhost:3000/license"
},
"versions": "1.0.0",
"api": [
{
"default": "http://localhost:3000/badge/default"
},
{
"presets": "http://localhost:3000/presets"
}
]
}
```> [!NOTE]
> This api also has a presets endpoint with information and copy links to the presets at ```http://localhost:3000/presets```
> Here your can find 5 presets made by me (danilppzz).```js
var color = req.query.color || 'dark';
var ct = req.query.ct || 'white';
var text = req.query.text || 'EXAMPLE';
var rd = req.query.rd || false;
```