Skip to content

Sn0wo2/character-picker

Repository files navigation

character-picker

随机从图库中获取一个立绘并展示~
展示在我的Github 主页 README的脑婆


CI CodeQL Advanced Dependabot Updates

FOSSA Status


Demo

https://picker.me0wo.cc/character


开发顺序

首先开发了Sn0wo2/img-302部署在Vercel
随后因为Vercel100k/mServerless请求限制写了个基于Cloudflare Worker Sn0wo2/character-img
发现302跳原资源不仅慢还会被源站的缓存策略限制 (而且跑源站流量不道德)
随后就有了这个项目


Installation

Requirements:

  • git
  • Node.js >= 22(?)
  • pnpm
git clone https://github.com/Sn0wo2/character-picker.git
cd character-picker
pnpm install

API

GET /character

Query Parameters
Name Type Required Description Example
custom string... No 手动取character, 用","分隔 hitori.png,hiyori.png

GET /v1/characters

Response
{
  "msg": "/:image",
  "data": {
    "characters": [
      "hitori.png",
      "ikuyo.png",
      "asumi.png",
      "hiyori.png",
      "ameri.png",
      "murasame.png",
      "mako.png",
      "neri.png",
      "noir.png"
    ]
  }
}

/:image


如有侵权请发 Issue
If there is any infringement, please submit an Issue

License

FOSSA Status

Contributors 4

  •  
  •  
  •  
  •