Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonismoe/genshin-stats
Query Genshin Impact's game record data for CN server. 根据原神 UID 查询统计数据、角色列表、深境螺旋战绩
https://github.com/leonismoe/genshin-stats
genshin genshin-api genshin-impact mihoyo yuanshen
Last synced: about 2 months ago
JSON representation
Query Genshin Impact's game record data for CN server. 根据原神 UID 查询统计数据、角色列表、深境螺旋战绩
- Host: GitHub
- URL: https://github.com/leonismoe/genshin-stats
- Owner: leonismoe
- License: mit
- Created: 2021-09-07T19:22:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T11:52:05.000Z (8 months ago)
- Last Synced: 2024-05-02T01:36:41.141Z (8 months ago)
- Topics: genshin, genshin-api, genshin-impact, mihoyo, yuanshen
- Language: TypeScript
- Homepage: https://genshin-stats.leonis.dev/
- Size: 2.92 MB
- Stars: 43
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-genshin-impact - genshin-stats
README
Genshin Impact Stats
====================
EN
[中文](README_CHS.md)Query Genshin Impact game record data by UID, including characters, reliquaries, weapons, and spiral abyss statistics.
There's no need to set up a reverse proxy or download desktop applications.Only tested under Google Chrome and Chromium-based Edge browser.
See [packages/genshin-stats](packages/genshin-stats) for details.
Note: Currently only supports querying CN server.
## Features
* Grouping
![](packages/genshin-stats/screenshots/grouping.png)* Sorting
Click the button to toggle ascending and descending order, and drag and drop to modify the sorting priority.
![](packages/genshin-stats/screenshots/sorting.png)* Quickly Screenshot
This feature is only available with the browser extension.
Click the browser extension button to open the query page, and click the button again on the query page to take a screenshot.
![](packages/genshin-stats/screenshots/chrome-ext.png)## Usage
1. Access https://bbs.mihoyo.com/ys/, ensure you have logged in.
2. Open https://genshin-stats.pages.dev/
3. Input the target UID, and then click the query button.Make sure you have the [Tampermonkey](https://www.tampermonkey.net/) browser extension installed when using it for the first time.
and click https://genshin-stats.pages.dev/genshin-stats.user.js to install the user script for this project to Tampermonkey.This script is only used to support cross-domain requests to the miHoYo API, all data is stored locally in your browser and no personal data is uploaded or intercepted, you can audit the code yourself.
## Install as browser extension (unrecommend)
Download and unzip the extension zip file, open the developer mode in the browser extension page, then click "load unpacked", and select the directory you just unzipped.This project does not include the `HYWenHei-85W` font file due to the restriction of font license, to get a better display, please copy `YuanShen_Data/StreamingAssets/MiHoYoSDKRes/HttpServerResources/font/zh-cn.ttf` from Genshin Impact to `assets/fonts/HYWenHei-85W.ttf` manually.
Or download the font file from the Internet, then place it at the path mentioned above.If you are a developer, please select the `dist` directory when loading unpacked extension (you need to compile it first).
## Upgrade (browser extension)
Just extract the files of the new extension zip directly to the directory you previously installed.## Build
``` sh
npm run build:chrome-ext
```### Screenshots
Summary
![](packages/genshin-stats/screenshots/summary.jpg)Roles
![](packages/genshin-stats/screenshots/roles.jpg)Grouping roles
![](packages/genshin-stats/screenshots/roles-grouped-by-rarity.jpg)Sprial Abyss
![](packages/genshin-stats/screenshots/abyss.jpg)