Skip to content

Sn0wo2/character-picker

Repository files navigation

character-pickup

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


CI CodeQL Advanced Dependabot Updates


Demo

https://char.me0wo.top/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-pickup.git
cd character-pickup
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

Sponsor this project

Contributors 3

  •  
  •  
  •