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 🙏

© 2026 – Pkg Stats / Ryan Hefner

pikastatsapi

v1.1.1

Published

A simple package which lets you fetch results from PikaNetwork's Statistic API

Readme

PikaNetworkStatsAPI

This API uses PikaNetworks public API (accessible via https://stats.pika-network.net/api/profile/{username}/) to bring you a simple npm package to use for your project.

Installation

The easiest way to install this is by using npm install pikastatsapi.

Documentation

Here's a simple list of each function I have created so far. It should be pretty self explanatory what they return from their names, but I'll give a short summary anyway.

All functions return JSON


getRanks(username) Returns the players owned ranks in a list. The data includes the displayName, LuckPerms name (i.e, Titan is called games3), and the server it is owned on (i.e MiniGames is called games

Example: console.log(getRanks('not_Nuggets')); Output:

    [
        {
          name: 'games3',
          displayName: 'Titan',
          server: 'games',
          season: null
        },
        {
          name: 'practice3',
          displayName: 'Diamond',
          server: 'global',
          season: null
        }
      ]

getFriends(username) Returns the players friends in a list. The data includes the username of the friend, their lastSeen (in a long), and their online status (boolean).

Example: console.log(getFriends('not_Nuggets')); Output:

[
    { username: 'Titan_Leo', lastSeen: 1672495475354, online: false },
    { username: 'bene_e', lastSeen: 1678556917694, online: false },
    { username: 'Fournes_', lastSeen: 1674241486877, online: false },
    { username: 'Difficulted', lastSeen: 1679496093449, online: false },
    { username: 'Sanified', lastSeen: 1679691498358, online: true },
    { username: 'xDerpcat', lastSeen: 1679657065659, online: false },
    { username: 'Il1ann', lastSeen: 1676655494619, online: false },
    { username: 'CreamCheese', lastSeen: 1679602722638, online: false },
    { username: 'Jitterinq', lastSeen: 1679509235577, online: false },
    { username: 'zornk', lastSeen: 1675959709939, online: false }
]

getFriendStatus(username) Returns the players friend status. This will be either Online, Away, DND or Invisible.

Example: console.log(getFriendStatus('not_Nuggets')); Output: 'ONLINE'


getClan(username) Returns the data of the clan the player is currently in. This includes the name, tag, current trophies (not used on Pika), creation time in YYYY-MM-DD HH:MM:SS format, the members, owner (this includes the username, last seen, and if they're online status (boolean)), and the level of the clan (this includes the current level, EXP, and total EXP)

Example: console.log(getClan('not_Nuggets')); Output:

    {
        name: 'DEMONIC',
        tag: 'DEMONIC',
        currentTrophies: 0,
        creationTime: '2023-01-18T16:10:39',
        members: [
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object]
        ],
        owner: { username: 'Skq1er', lastSeen: 1679691834717, online: true },
        leveling: { level: 27, exp: 3458, totalExp: 205145 }
    }

isDiscordVerified(username) Pretty self explanatory. Returns a boolean based on whether the user has their discord verified by the discord bot or not.

Example: console.log(isDiscordVerified('not_Nuggets')); Output: true


TODO

  • [] Implement Leaderboard Statistics
  • [] Rename project and implement JartexNetwork support.
  • [] Python module
  • [] Gamemode Statistics

Contribution

If you want to contribute to this project, simply open a pull request with your code, and I'll decide if I want to add it. You can also suggest me ideas for the project by shooting me a DM via Discord. But don't just send me "hi". Send me the suggestion straight on. Discord Presence

Support Me

Lastly, if you want to support me for making this awful package, you can buy me a Kofi! https://ko-fi.com/nuggetsisswag