Giter VIP home page Giter VIP logo

wopian / kitsu-season-trends Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 4.0 142.38 MB

๐ŸฆŠ Kitsu seasonal anime trends

Home Page: https://season.moe

License: MIT License

JavaScript 85.50% HTML 3.81% Stylus 10.69%
kitsu anime react nodejs cron messagepack data-visualization statistics static-site statistical-analysis javascript ecmascript kitsu-io kitsu-api anime-website anime-list season-trends

kitsu-season-trends's Introduction

Season Trends

web badge uptime badge contributors badge actions badge

Kitsu season trends for the currently airing anime

Using the Data

All the data is free to use and available from:

  • JSON format in ./data or online at season.moe/data/{year}-{season}.json
  • MessagePack format online at season.moe/msgpack/{year}-{season}.msgpack

Data Format

Property names are compressed to save storage space and bandwidth.

Seasonal Data

Data grouped by airing season - Winter, Spring, Summer and Autumn/Fall.

As of January 2022, the previous season is updated in tandem with the current season.

{
  data: [
    {
      i: 12, // Kitsu anime ID
      t: 'One Piece', // Canonical title
      u: 0, // Subtype (0: TV, 1: ONA)
      n: 0, // 0: Leftover, 1: New
      d: [ // Data array containing each daily update
        {
          i: 0, // Index
          d: 450263, // Hours since epoch (x3600000 to get datetime)
          w: 82.19, // Wilson's confidence level (0.95) out of 100 (omitted if 0)
          l: 82.4, // Laplace smoothing out of 100 (omitted if 0)
          p: 100359.75, // Upvotes, ratings >= 3 out of 5, omitted if 0)
          o: 21433.25, // Downvotes, ratings < 3 out of 5, omitted if 0)
          r: 121793, // Users Rated (omitted if 0)
          u: 186101, // Users (omitted if 0)
          f: 6578 // Users Favourited (omitted if 0)
        }
      ]
    }
  ],
  meta: {
    current: 52, // Total started airing this season
    total: 226 // Total shows being tracked
  },
  updated: '2021-05-13T23:03:55.841Z' // ISO date of the last cron update
}

Anime Data

{
  data: [
    {
      i: 0 // index
      d: 450263, // Hours since epoch (x3600000 to get datetime)
      w: 82.19 // Wilson's confidence level (0.95) out of 100 (omitted if 0)
      l: 82.4 // Laplace smoothing out of 100 (omitted if 0)
      p: 100359.75 // Upvotes, ratings >= 3 out of 5, omitted if 0)
      o: 21433.25 // Downvotes, ratings < 3 out of 5, omitted if 0)
      r: 121793 // Users Rated (omitted if 0)
      u: 186101 // Users (omitted if 0)
      f: 6578 // Users Favourited (omitted if 0)
    }
  ],
  meta: {
    i: 12, // Kitsu anime ID
    t: 'One Piece', // Canonical title
    u: 0, // Subtype (0: TV, 1: ONA)
  }
}

Development

Requirements

Commands

  • yarn start - live reload local server
  • yarn lint - lint source code
  • yarn build - build from source
  • yarn cron - manually run cron task to fetch new data

Guide

  1. Fork the repo

  2. Clone the repo (git clone https://github.com/{yourusername}/api-docs.git)

  3. Create a new branch (git checkout -b improve-docs)

  4. Install dependencies (yarn install)

  5. Make the appropriate changes in the source files

  6. Check your changes for issues (yarn test)

  7. Commit your changes (git commit -am 'Improve docs')

  8. Push to your branch (git push origin improve-docs)

  9. Create a Pull Request

License

All code released under the MIT license

kitsu-season-trends's People

Contributors

dependabot[bot] avatar imgbot[bot] avatar renovate-bot avatar renovate[bot] avatar snyk-bot avatar wopian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kitsu-season-trends's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • build(deps): lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v3
  • wopian/netlify-actions-colors-fix b336c456c5b67c3f95e06fc1221725a657d896d6
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/cron.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v3
  • peter-evans/repository-dispatch v2
.github/workflows/lockfile.yml
  • actions/checkout v4
  • Simek/yarn-lock-changes c36e94d0c024da36a17d48e2247f35b1e1565f3b
npm
package.json
  • @loadable/component ^5.16.0
  • classnames ^2.3.0
  • fromnow ^3.0.0
  • lodash ^4.17.14
  • prop-types ^15.8.0
  • react-ga ^3.3.0
  • react-icons ^4.12.0
  • react-lazy-load ^4.0.0
  • recharts ^2.10.0
  • @babel/cli ^7.14.0
  • @babel/core ^7.14.0
  • @babel/eslint-parser ^7.14.7
  • @babel/node ^7.14.0
  • @babel/plugin-proposal-class-properties ^7.14.0
  • @babel/plugin-syntax-decorators ^7.14.0
  • @babel/plugin-syntax-dynamic-import ^7.8.3
  • @babel/plugin-transform-runtime ^7.14.0
  • @babel/preset-env ^7.14.0
  • @babel/preset-react ^7.14.0
  • @babel/runtime ^7.14.0
  • @loadable/babel-plugin ^5.13.0
  • autoprefixer ^10.2.0
  • axios-request-throttle ^1.0.0
  • babel-loader ^9.0.0
  • client-oauth2 ^4.3.0
  • copy-webpack-plugin ^11.0.0
  • cross-env ^7.0.0
  • css-loader ^6.0.0
  • css-minimizer-webpack-plugin ^5.0.0
  • date-fns ^2.28.0
  • eslint ^8.0.0
  • eslint-config-wopian-react ^3.0.0
  • html-webpack-plugin ^5.3.0
  • json5 ^2.2.0
  • kitsu 10.1.2
  • mini-css-extract-plugin ^2.4.2
  • msgpack-lite ^0.1.26
  • postcss ^8.4.31
  • react-hot-loader ^4.13.0
  • resource-hints-webpack-plugin ~0.0.2
  • style-loader ^3.0.0
  • stylus ~0.62.0
  • stylus-loader ^7.0.0
  • webpack ^5.39.0
  • webpack-cli ^5.0.0
  • webpack-dev-server ~4.15.0
  • webpack-pwa-manifest ^4.3.0
  • wilson-rate ^1.0.2
  • workbox-webpack-plugin ^7.0.0
  • yocto-queue ^1.0.0
  • yoctocolors ^1.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Vite Rewrite

  • Rewrite web app with Vite and Vue
  • Support existing filters
  • Allow clicking on a chart to show historical ratings (msgpack/id/12.msgpack)
    • Migrate 2017-2020 data to this format (#551)
    • Migrate 2021-2022 data to this format
    • Repository should be split to move cron/ and data/ to kitsu-season-trends-data repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: package.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: author, Invalid configuration option: homepage, Invalid configuration option: license, Invalid configuration option: name, Invalid configuration option: packageRules[0].@loadable/component, Invalid configuration option: packageRules[0].classnames, Invalid configuration option: packageRules[0].fromnow, Invalid configuration option: packageRules[0].lodash, Invalid configuration option: packageRules[0].prop-types, Invalid configuration option: packageRules[0].react, Invalid configuration option: packageRules[0].react-dom, Invalid configuration option: packageRules[0].react-ga, Invalid configuration option: packageRules[0].react-icons, Invalid configuration option: packageRules[0].react-lazy-load, Invalid configuration option: packageRules[0].react-router-dom, Invalid configuration option: packageRules[0].recharts, Invalid configuration option: packageRules[1].@babel/cli, Invalid configuration option: packageRules[1].@babel/core, Invalid configuration option: packageRules[1].@babel/node, Invalid configuration option: packageRules[1].@babel/plugin-proposal-class-properties, Invalid configuration option: packageRules[1].@babel/plugin-syntax-decorators, Invalid configuration option: packageRules[1].@babel/plugin-syntax-dynamic-import, Invalid configuration option: packageRules[1].@babel/plugin-transform-runtime, Invalid configuration option: packageRules[1].@babel/preset-env, Invalid configuration option: packageRules[1].@babel/preset-react, Invalid configuration option: packageRules[1].@babel/runtime, Invalid configuration option: packageRules[1].@loadable/babel-plugin, Invalid configuration option: packageRules[1].autoprefixer, Invalid configuration option: packageRules[1].babel-loader, Invalid configuration option: packageRules[1].chalk, Invalid configuration option: packageRules[1].client-oauth2, Invalid configuration option: packageRules[1].copy-webpack-plugin, Invalid configuration option: packageRules[1].cross-env, Invalid configuration option: packageRules[1].css-loader, Invalid configuration option: packageRules[1].css-minimizer-webpack-plugin, Invalid configuration option: packageRules[1].eslint, Invalid configuration option: packageRules[1].eslint-config-wopian-react, Invalid configuration option: packageRules[1].html-webpack-plugin, Invalid configuration option: packageRules[1].json5, Invalid configuration option: packageRules[1].kitsu, Invalid configuration option: packageRules[1].mini-css-extract-plugin, Invalid configuration option: packageRules[1].msgpack-lite, Invalid configuration option: packageRules[1].postcss, Invalid configuration option: packageRules[1].react-hot-loader, Invalid configuration option: packageRules[1].resource-hints-webpack-plugin, Invalid configuration option: packageRules[1].style-loader, Invalid configuration option: packageRules[1].stylus, Invalid configuration option: packageRules[1].stylus-loader, Invalid configuration option: packageRules[1].webpack, Invalid configuration option: packageRules[1].webpack-cli, Invalid configuration option: packageRules[1].webpack-dashboard, Invalid configuration option: packageRules[1].webpack-dev-server, Invalid configuration option: packageRules[1].webpack-pwa-manifest, Invalid configuration option: packageRules[1].wilson-rate, Invalid configuration option: packageRules[1].workbox-webpack-plugin, Invalid configuration option: renovate, Invalid configuration option: scripts, Invalid configuration option: version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.