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

survivio

v1.0.5

Published

An API for surviv.io

Downloads

9

Readme

node-survivio

An Node CLI for surviv.io. You can:

  • Read global stats
  • Read user stats

Global stat types

  • Most kills
    • today/week/all
    • solo/duo/squad

User stats

  • Games today
  • Kills today
  • Kills last match
  • Total games
  • Total kills

Output

┌────────────────────────────────┐
|          Global Stats          │
└────────────────────────────────┘
## SOLO ##
┌───────────────────────────────┬────────────────────────────────────────┬─────────────────────────────────┐
│ Field                         │ Value                                  │ Link                            │
├───────────────────────────────┼────────────────────────────────────────┼─────────────────────────────────┤
│ Today's most kills (SOLO)     │ momo10 (751 kills, 6.2 kills/game)     │ http://surviv.io/stats/momo10   │
├───────────────────────────────┼────────────────────────────────────────┼─────────────────────────────────┤
│ This week's most kills (SOLO) │ sasa2 (5341 kills, 10.1 kills/game)    │ http://surviv.io/stats/sasa2    │
├───────────────────────────────┼────────────────────────────────────────┼─────────────────────────────────┤
│ All time most kills (SOLO)    │ overmind (12475 kills, 8.1 kills/game) │ http://surviv.io/stats/overmind │
└───────────────────────────────┴────────────────────────────────────────┴─────────────────────────────────┘
## DUO ##
┌──────────────────────────────┬──────────────────────────────────────┬────────────────────────────────┐
│ Field                        │ Value                                │ Link                           │
├──────────────────────────────┼──────────────────────────────────────┼────────────────────────────────┤
│ Today's most kills (DUO)     │ noxor (483 kills, 2.5 kills/game)    │ http://surviv.io/stats/noxor   │
├──────────────────────────────┼──────────────────────────────────────┼────────────────────────────────┤
│ This week's most kills (DUO) │ td-klol (2158 kills, 9.7 kills/game) │ http://surviv.io/stats/td-klol │
├──────────────────────────────┼──────────────────────────────────────┼────────────────────────────────┤
│ All time most kills (DUO)    │ bubba3 (4762 kills, 4.5 kills/game)  │ http://surviv.io/stats/bubba3  │
└──────────────────────────────┴──────────────────────────────────────┴────────────────────────────────┘
## SQUAD ##
┌────────────────────────────────┬─────────────────────────────────────────────┬──────────────────────────────────────┐
│ Field                          │ Value                                       │ Link                                 │
├────────────────────────────────┼─────────────────────────────────────────────┼──────────────────────────────────────┤
│ Today's most kills (SQUAD)     │ offdutyninja2 (612 kills, 6.4 kills/game)   │ http://surviv.io/stats/offdutyninja2 │
├────────────────────────────────┼─────────────────────────────────────────────┼──────────────────────────────────────┤
│ This week's most kills (SQUAD) │ killedbyboar (3518 kills, 3.0 kills/game)   │ http://surviv.io/stats/killedbyboar  │
├────────────────────────────────┼─────────────────────────────────────────────┼──────────────────────────────────────┤
│ All time most kills (SQUAD)    │ offdutyninja2 (11303 kills, 5.9 kills/game) │ http://surviv.io/stats/offdutyninja2 │
└────────────────────────────────┴─────────────────────────────────────────────┴──────────────────────────────────────┘

User stats

node . grant

Outputs:

┌─────────────────────────────────┐
|          grant's Stats          │
└─────────────────────────────────┘
http://surviv.io/stats/grant

## Today
┌───────────────────┬─────────────────────┐
│ Field             │ Value               │
├───────────────────┼─────────────────────┤
│ Total games today │ 3                   │
├───────────────────┼─────────────────────┤
│ Kills today       │ 17 (5.7 kills/game) │
├───────────────────┼─────────────────────┤
│ Kills last match  │ 2                   │
└───────────────────┴─────────────────────┘

## All Time
┌─────────────┬───────────────────────┐
│ Field       │ Value                 │
├─────────────┼───────────────────────┤
│ Total games │ 530                   │
├─────────────┼───────────────────────┤
│ Total kills │ 1932 (3.6 kills/game) │
└─────────────┴───────────────────────┘

Build and Test

tsc && node .
# or
tsc && node . grant

Publish

git add -A
git commit
npm version patch
git push origin --tags
npm publish