Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sxzz/jsr-api
An alternative API service of https://jsr.io
https://github.com/sxzz/jsr-api
Last synced: about 2 months ago
JSON representation
An alternative API service of https://jsr.io
- Host: GitHub
- URL: https://github.com/sxzz/jsr-api
- Owner: sxzz
- License: mit
- Created: 2024-03-03T20:46:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T08:04:43.000Z (about 2 months ago)
- Last Synced: 2024-11-04T09:18:51.923Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://jsr-api.sxzz.moe
- Size: 469 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# jsr-api
An alternative API of [jsr.io](https://jsr.io).
## Usage
API endpoint: https://jsr-api.sxzz.moe/
### Badge
API service for https://shields.io/badges/endpoint-badge.
- URL: `/badge/<@scope>/`
- Method: `GET`
- Response: see https://shields.io/badges/endpoint-badge
- Example: https://jsr-api.sxzz.moe/badge/@luca/flag#### Demo
```md
[![jsr](https://img.shields.io/endpoint?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fbadge%2F%40%2F)](https://jsr.io/@/)
```Replace `` and `` with the package's scope (without `@`) and name.
[![jsr](https://img.shields.io/endpoint?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fbadge%2F%40unplugin%2Fmacros)](https://jsr.io/@sxzz/ast-kit)
### Get Latest Version
- URL: `/version/<@scope>/`
- Method: `GET`
- Response:
```json
{
"version": "1.0.0"
}
```
- Example: https://jsr-api.sxzz.moe/version/@luca/flag#### Errors
```json
[{ "error": "Package not found" }, { "error": "Unknown error" }]
```### Get Version List
- URL: `/versions/<@scope>/`
- Method: `GET`
- Response:
```json
["0.0.0", "0.0.1"]
```
- Example: https://jsr-api.sxzz.moe/versions/@luca/flag#### Errors
```json
[{ "error": "Package not found" }, { "error": "Unknown error" }]
```## License
[MIT](./LICENSE) License © 2024 [三咲智子](https://github.com/sxzz)