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

oryx-js

v1.0.5

Published

Node module to communicate with an instance of Oryx

Readme

Oryx-JS

Basic module to communicate with Oryx.

Installation & configuration

Install Oryx

See the Oryx doc for installation, you can get releases here.

Install the module

npm install oryx-js

Run your Oryx server and computation instances

Create a file called oryx.conf with the following informations :

model=${als-model}
model.local-computation=false
model.local-data=false
model.instance-dir=/user/name/repo
model.features=25
model.lambda=0.065
serving-layer.api.port=8091
computation-layer.api.port=8092

And run the jars with the following lines :

java -Dconfig.file=oryx.conf -jar oryx-computation-x.y.z.jar
java -Dconfig.file=oryx.conf -jar oryx-serving-x.y.z.jar

Usage

var OryxService = require('oryx-js')({
    host: 'localhost',
    port: '8091',
    user: user,
    password: pwd
});

Functions

Core

ready

Parameters

  • func callback(err, res, body)

refresh

Parameters

  • [func callback(err, res, body)]

ingest

Parameters

  • data
  • func callback(err, res, body)

getBecause

Parameters

  • int user_id
  • int item_id
  • int count
  • func callback(err, res, body)

getMostSurprising

Parameters

  • int count
  • func callback(err, res, body)

getPopularRepresentativeItems

Parameters

  • func callback(err, res, body)

getMostActiveUsers

Parameters

  • int count
  • int offset
  • func callback(err, res, body)

getMostPopularItems

Parameters

  • int count
  • int offset
  • func callback(err, res, body)

getAllUsers

Parameters

  • func callback(err, res, body)

getAllItems

Parameters

  • func callback(err, res, body)

getKnownItems

Parameters

  • int user_id
  • func callback(err, res, body)

Recommendation

get

Parameters

  • int user_id
  • int count
  • int offset
  • func callback(err, res, body)

getToMany

Parameters

  • [int] user_ids
  • int count
  • int offset
  • func callback(err, res, body)

getForAnonymous

Parameters

  • [{ id: int, val: float }] score_params
  • int count
  • int offset
  • func callback(err, res, body)

Similiraty

get

Parameters

  • [int] item_ids
  • int count
  • int offset
  • func callback(err, res, body)

getToItem

Parameters

  • int main_item_id
  • [int] item_ids
  • func callback(err, res, body)

Estimation

get

Parameters

  • int user_id
  • [int] item_ids
  • func callback(err, res, body)

getForAnonymous

Parameters

Parameters

  • int item_id
  • [{ id: int, val: float }] score_params
  • func callback(err, res, body)

Preferences

set

Parameters

  • int user_id
  • int item_id
  • [float value]
  • [func callback(err, res, body)]

delete

Parameters

  • int user_id
  • int item_id
  • [func callback(err, res, body)]

DEVELOPMENT

Info

The code was developped and tested with Oryx 0.3.0, functions from Oryx 1.x were added but not tested for now.

TODO

Authentication

Handle authentication, none for now

Data format

Handle csv/ json parsing