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

fryd

v1.0.1

Published

A JavaScript library for Fryd

Downloads

21

Readme

Fryd

Disclaimer: Fryd is in Beta and we can not guarantee everything working. We appreciate any feedback and bug reports a lot.

About

This library is meant to help you implement the Fryd gamification platform into your Javascript project.

You can find an API description in german here: http://publicwiki.fryd.zone/index.php?title=Schnittstellen_Beschreibung

To use it you have to create a developer account on https://www.fryd.zone/register

Installation

Install with yarn or npm install.

Usage

The Fryd API is limited to 10 requests per second and a burst of 20 requests right now which are defaulted to if you instantiate a Fryd class without parameters.

It is promised based and based on the request library.

Basically you use it like this:

var Fryd = require('fryd');

var fryd = new Fryd(20, 10);

fryd.getTrophiesFromList('<token>', '<id>')
  .then((r) => console.log(r))
  .catch((e) => console.log(e));

Methods

Application

getTrophiesFromList(appToken, id)

Returns all trophies provided a valid trophy list id.

getTrophyLists(appToken, id)

Returns all tropy lists provided a valid location id.

getLocationInfo(appToken, id)

Returns the location info from a valid location id.

getTrophyInfo(appToken, id)

Returns the info provided a valid trophy id.

User

getUserInfo(userToken)

As the token has the user information encoded you can call this method to get all public info.

postTrophySuccess(userToken, appToken, location, secret)

Method to post a successfull achievment. Find the trophy information in the developer dashboard.

getAllUserTrophies(userToken)

Get all trophies a user achieved.

OAuth2

You can find Info to the OAuth2 implementation on Fryd here http://publicwiki.fryd.zone/index.php?title=OAuth2

Use the passport-fryd library for easy authentication in every middleware based framework like express. https://www.npmjs.com/package/passport-fryd

getTokenFromClientCred(clientId, clientSecret, state)

Use to request an access token from client credentials that you can find in the developer dashboard.

getTokenFromCode(code, redUri, clientId, clientSecret, state)

You get a code from the first OAuth2 callback if you need access to a user method For example for authentification with Fryd directly from your application). With that code and a redirection url you can call this method to be granted an access token and refresh token.

####getTokenFromCodeRefreshToken(refreshToken, clientId, clientSecret, state)

Get a new access token from a refresh token. Access token expire after 24h and refresh token expire after 72h.