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

laby.net

v0.0.8

Published

JS wrapper for https://laby.net

Downloads

15

Readme

laby.net npm npm install size

Installation

npm i -s laby.net

The unofficial JavaScript API wrapper for laby.net.

Please keep in mind: This version is not nearly finished and has many bugs, problems etc. Since the API is not intended to be a public API schemas can change at any time making this package or some functions of it useless. I will also not work that actively on this package since I mainly created it for my own private usage.

User

| Function | Description | Returns | | -------- | ----------- | ------- | | badges | Get Badges | Array | | friends | Get Friends | Array | | role | Get Role | String | | background | Get Background | String | | head | Get Head | String | | skin | Get Skin | String |

Server

| Function | Description | Returns | | -------- | ----------- | ------- | | votes | Get Server-Votes | Number | | checkVote | Get Server-User-Votes | String |

Search

| Function | Description | Returns | | -------- | ----------- | ------- | | search | Search Name | Array |

User-Examples

The argument can either be a username or the users UUID (dashes required).

Array example

const laby = require('laby.net');

async function test() {
  console.log(await laby.badges('Niklas'));
}

test();

Returns:

[
  'OG Name',
  'LabyMod Staff',
  'Translator',
  'All LabyMod Cosmetics',
  'Tag Contributor'
]

String example

const laby = require('laby.net');

async function test() {
  console.log(await laby.role('Niklas'));
}

test();

Returns:

Administrator

Server-Examples

Number example

const laby = require('laby.net');

async function test() {
  console.log(await laby.votes('gommehd.net'));
}

test();

Returns:

92

Date example

const laby = require('laby.net');

async function test() {
  console.log(await laby.checkVote('gommehd.net', 'Niklas'));
}

test();

Returns:

2021-08-23T20:15:55

Search-Examples

Name example

const laby = require('laby.net');

async function test() {
  console.log(await laby.search('Niklas', 'name'));
}

test();

Returns:

[ 'Niklas', 'niklas_', 'Niklas__', 'niklas___', 'niklas____' ]

UUID example

const laby = require('laby.net');

async function test() {
  console.log(await laby.search('Niklas', 'uuid'));
}

test();

Returns:

[
  'e0276ad9-1cd6-4c8d-b8f7-ff97e75c5982',
  '1418ddff-41b5-46fa-94d6-3b30dfd89158',
  '932f1d36-dc7e-42f5-88f5-0b4238e0486f',
  '262229d3-8b08-4899-931f-a386a0431118',
  '9b4d916c-c2a8-4a6f-ab8b-698d171a6a5a'
]

Still to be fixed

| Bug / Problem | Urgency | | ------------- | ------- | | Error handeling | ⚠️ High | | ~Accepting UUIDs without dashes~ | ✅ Added | | ~Custom user agent argument~ | ✅ Added | | ~Adding search endpoint~ | ✅ Added | | ~Adding fixed endpoint~ | ✅ Added |

Acknowledgements

LICENSE

MIT © 2022 schnappi21