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 🙏

© 2025 – Pkg Stats / Ryan Hefner

princess-api-sdk

v1.1.0

Published

TypeScript SDK at https://api.matsurihi.me/docs/.

Downloads

6

Readme

princess-api-sdk

TypeScript SDK at https://api.matsurihi.me/docs/.

https://api.matsurihi.me/docs/の API クライアントです。未実装のエンドポイントがあります。PR 待ってます。

インストール

npm install princess-api-sdk

使い方

最新のアプリ・アセットバージョンの取得

import { PrincessApiSdk } from 'princess-api-sdk';

const princessApiSdk = new PrincessApiSdk();
const response = await princessApiSdk.getLatestAppAssetVersion();

responseの値

{
  "app": {
    "version": "5.1.050",
    "updatedAt": "2022-11-26T12:00:00+09:00",
    "revision": 749332
  },
  "asset": {
    "version": 773000,
    "updatedAt": "2022-11-26T12:00:00+09:00",
    "indexName": "41f0f6c8d80bc95f405c66875a0b1308b6e67443.data"
  }
}

アプリバージョンの取得

import { PrincessApiSdk } from 'princess-api-sdk';

// バージョン指定
const response = await princessApiSdk.getAppVersion('1.0.6');

responseの値

{
  "version": "1.0.6",
  "updatedAt": "2017-06-28T00:00:00+09:00",
  "revision": 63141
}
import { PrincessApiSdk } from 'princess-api-sdk';

// バージョン未指定
const response = await princessApiSdk.getAppVersion();

responseの値

[
  {
    "version": "1.0.6",
    "updatedAt": "2017-06-28T00:00:00+09:00",
    "revision": 63141
  },
  {
    "version": "1.0.7",
    "updatedAt": "2017-07-15T15:00:00+09:00",
    "revision": 66894
  },
  {
    "version": "1.0.9",
    "updatedAt": "2017-07-27T15:00:00+09:00",
    "revision": 70661
  },
  {
    "version": "1.1.0",
    "updatedAt": "2017-08-09T15:00:00+09:00",
    "revision": 76059
  }
]

アセットバージョンの取得

import { PrincessApiSdk } from 'princess-api-sdk';

// バージョン指定
const response = await princessApiSdk.getAssetVersion(1);

responseの値

{
  "version": 1,
  "updatedAt": "2017-06-29T12:00:00+09:00",
  "indexName": "6b976a4c875a1984592a66b621872ce44c944e72.data"
}
import { PrincessApiSdk } from 'princess-api-sdk';
// バージョン未指定
const response = await princessApiSdk.getAssetVersion();

responseの値

[
  {
    "version": 1,
    "updatedAt": "2017-06-29T12:00:00+09:00",
    "indexName": "6b976a4c875a1984592a66b621872ce44c944e72.data"
  },
  {
    "version": 2,
    "updatedAt": "2017-07-11T17:00:00+09:00",
    "indexName": "83a751e34531a81e83ac5e47393bbb7d483c3da5.data"
  },
  {
    "version": 3,
    "updatedAt": "2017-07-13T15:00:00+09:00",
    "indexName": "77104ecc982fd2344e965f6aba2e83c35a4d49f2.data"
  }
]

アイドルの情報の取得

import { PrincessApiSdk } from 'princess-api-sdk';

// id指定
const response = await princessApiSdk.getIdolInfo(1);

responseの値

{
  "id": 21,
  "sortId": 21,
  "resourceId": "021mat",
  "type": 1,
  "fullName": "徳川 まつり",
  "displayName": "徳川 まつり",
  "lastName": "徳川",
  "firstName": "まつり",
  "alphabetName": "MATSURI TOKUGAWA",
  "fullNameRuby": "とくがわ まつり",
  "age": 19,
  "birthplace": {
    "id": 23,
    "name": "愛知県"
  },
  "handednessType": {
    "id": 1,
    "name": "右"
  },
  "height": 163.0,
  "weight": 44.0,
  "hobby": "漫画あつめ",
  "speciality": "演技",
  "favorites": "焼きマシュマロ、ウミウシ",
  "cv": "諏訪彩花",
  "colorCode": "#5abfb7",
  "birthday": {
    "month": 2,
    "day": 4
  },
  "constellation": {
    "id": 11,
    "name": "水瓶座"
  },
  "bloodType": {
    "id": 4,
    "name": "AB"
  },
  "measurements": {
    "bust": 85.0,
    "waist": 59.0,
    "hip": 85.0
  }
}
import { PrincessApiSdk } from 'princess-api-sdk';

// id指定なし
const response = await princessApiSdk.getIdolInfo();

responseの値

[
  {
    "id": 1,
    "sortId": 1,
    "resourceId": "001har",
    "type": 1,
    "fullName": "天海 春香",
    "displayName": "天海 春香",
    "lastName": "天海",
    "firstName": "春香",
    "alphabetName": "HARUKA AMAMI",
    "fullNameRuby": "あまみ はるか",
    "age": 17,
    "birthplace": {
      "id": 14,
      "name": "神奈川県"
    },
    "handednessType": {
      "id": 1,
      "name": "右"
    },
    "height": 158.0,
    "weight": 46.0,
    "hobby": "カラオケ、長電話",
    "speciality": "お菓子作り",
    "favorites": "歌うこと",
    "cv": "中村繪里子",
    "colorCode": "#e22b30",
    "birthday": {
      "month": 4,
      "day": 3
    },
    "constellation": {
      "id": 1,
      "name": "牡羊座"
    },
    "bloodType": {
      "id": 3,
      "name": "O"
    },
    "measurements": {
      "bust": 83.0,
      "waist": 56.0,
      "hip": 82.0
    }
  },
  {
    "id": 2,
    "sortId": 2,
    "resourceId": "002chi",
    "type": 2,
    "fullName": "如月 千早",
    "displayName": "如月 千早",
    "lastName": "如月",
    "firstName": "千早",
    "alphabetName": "CHIHAYA KISARAGI",
    "fullNameRuby": "きさらぎ ちはや",
    "age": 16,
    "birthplace": {
      "id": 13,
      "name": "東京都"
    },
    "handednessType": {
      "id": 1,
      "name": "右"
    },
    "height": 162.0,
    "weight": 41.0,
    "hobby": "音楽鑑賞、写真",
    "speciality": "歌",
    "favorites": "トレーニング",
    "cv": "今井麻美",
    "colorCode": "#2743d2",
    "birthday": {
      "month": 2,
      "day": 25
    },
    "constellation": {
      "id": 12,
      "name": "魚座"
    },
    "bloodType": {
      "id": 1,
      "name": "A"
    },
    "measurements": {
      "bust": 72.0,
      "waist": 55.0,
      "hip": 78.0
    }
  }
]