Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shirakaba/seiyuu-ranker
Visualise which seiyuus were the most prolific in a given year or season.
https://github.com/shirakaba/seiyuu-ranker
anilist graphql svelte
Last synced: 18 days ago
JSON representation
Visualise which seiyuus were the most prolific in a given year or season.
- Host: GitHub
- URL: https://github.com/shirakaba/seiyuu-ranker
- Owner: shirakaba
- License: mit
- Created: 2021-03-07T15:31:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T18:48:02.000Z (over 3 years ago)
- Last Synced: 2024-10-03T23:41:31.208Z (about 1 month ago)
- Topics: anilist, graphql, svelte
- Language: Svelte
- Homepage:
- Size: 2.96 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Seiyuu ranker
A form to determine which seiyuus (voice actors/actresses) were the most prolific in a given year or season. It gets all its information by querying the [AniList](https://anilist.co) database.
## Example
Form
Example output for whole of 2020
## Get started
Install the dependencies...
```bash
cd seiyuu-ranker
npm install
```...then start [Rollup](https://rollupjs.org):
```bash
npm run dev
```Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
## Usage
Just fill in the form and submit it! For whole-year queries, you will likely have to wait an extra minute for all the requests to complete due to [AniList's rate-limiting](https://anilist.gitbook.io/anilist-apiv2-docs/overview/rate-limiting). But don't worry; the app will tell you at the time if it does have to wait due to rate limiting.
Submitting this form executes a fair few queries; it's easy to go over 100, for example. So as not to pummel the AniList DB too hard, I run requests back-to-back and use mock data where possible during development (see the `.json` files in the `public` folder, which I don't guarantee to all follow the latest schema).
* You can switch to using existing mock data by editing `src/App.svelte` to switch the `mock` param to `true`.
* You can print out mock data of your own by editing `src/App.svelte` to switch the `printResponse` param to `true`. This will cause the response data to be written into an element at the start of the results section.