npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gbf-data

v0.0.28

Published

build granbluefantasy json files using yaml

Downloads

36

Readme

gbf-data

src/chars -> dist/chars.json

gbf-teamsimulatorで使用します。

src/raid -> dist/raid.json

gbf-raid-serverでtwitter検索に使用するボス名の一覧をjsonで出力しdistに保存しています。

用法

axiosを使用してunpkg.comから直接使用するか、jsonファイルをダウンロードしてrequire/importしてください。

import createIoClient from 'socket.io-client';
import bosses from './gbf-raid-bosses.json'

createIoClient('https://gbf-raid-server.herokuapp.com/')
  .emit('gbf-raid-server:cache', (error, tweets) => {
    console.log(tweets);
    // [{id: '451A60CE', name: 'Lv100 ティアマト・マグナ=エア', createdAt: '2018-07-06 10:26:56'}, {...}]
  })
  .on('gbf-raid-server:tweet', (tweet) => {
    console.log(tweet);
    // {"id":"685D3F6E","name":"Lvl 100 Tiamat Omega Ayr","memo":"","urlOrigin":"twitter.com/0chokdee0/status/1016741472874291200", /*...*/ ,"createdAt":"2018-07-11 02:50:31"}

    const boss = bosses.find(boss => tweet.name === boss.name || tweet.name === boss.name_en)
    console.log(boss)
    // {"alias":"lv100-tiamat-omega-ayr","category":"impossible1","id":"","name":"Lv100 ティアマト・マグナ=エア","name_en":"Lvl 100 Tiamat Omega Ayr","image":"https://pbs.twimg.com/media/CT6cNUBUAAETdz6.jpg","element":"Wind"}
  });

jsonは一次元配列でボスごとにオブジェクトで下記の情報を持ちます。

  • alias: stringidが定義できていないため、現状idの代わりに識別子として使用する文字列です
  • category: string共闘部屋を基準に見た共闘の種別。
  • id: string…実際のゲーム画像などで使用されている10桁の数値。ティアマトマグナHL…2040020000など。現在管理できていません。
  • name: string…twitterの救援ツイートで使用されるボスの正式名称(日本語版)。
  • name_en: string…twitterの救援ツイートで使用されるボスの正式名称(英語版)。
  • image: string…twitterで添付される画像。日本語のものを使用
  • element: "None" | "Fire" | "Water" | "Earth" | "Wind" | "Light" | "Dark"…ボスの属性。GBF-Raidersから転載しています

ライセンス

MIT