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

fiftyone.ipintelligence.onpremise

v4.5.102

Published

IP intelligence on-premise services for the 51Degrees Pipeline API

Readme

51Degrees Node IP Intelligence On-Premise

Developer Documentation

Introduction

This project contains 51Degrees IP Intelligence engines that can be used with the Pipeline API.

The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)

This package - fiftyone.ipintelligence.onpremise

This package definitions for the on-premise IP intelligence engine. The on-premise engine requires a data file to be supplied. A free 'Lite' data file can be downloaded with the scripts in the data repository, which is the cxx/data submodule of this repository.

The on-premise engine performs processing using a native library which is built from the C/C++ code in the 51degrees-cxx repository. Binaries are included with the published NPM package for a set of supported platforms and Node versions. If your platform or Node version is not supported then you can build the native module yourself, see 'Building the native module' below.

It can be used like this:

const IpIntelligenceOnPremisePipelineBuilder =
  require('fiftyone.ipintelligence.onpremise').IpIntelligenceOnPremisePipelineBuilder;

const pipeline = new IpIntelligenceOnPremisePipelineBuilder({
  performanceProfile: 'MaxPerformance',
  dataFile: '51Degrees-LiteV41.ipi',
  autoUpdate: false
}).build();

const flowData = pipeline.createFlowData();
flowData.evidence.add('query.client-ip', '8.8.8.8');
flowData.process().then(function () {
  console.log(flowData.ip.registeredname.value);
});

Installation

To install, use NPM call:

npm install fiftyone.ipintelligence.onpremise

Building the native module

The native module is built from the 51degrees-cxx code which is included at the root of this repository as a git submodule. To build it locally you need:

  • Node.js and npm
  • node-gyp (npm install -g node-gyp)
  • A C/C++ tool chain. For example, MSVC build tools on Windows or g++ and make on Linux.

When working inside this repository, run node ensure-native-module.js from the repository root to perform all of the following steps automatically. The script works on Windows, Linux (including WSL) and MacOS. The manual steps from this directory are:

  1. Ensure the cxx submodule at the root of the repository is checked out, including its own submodules.
  2. Copy binding.51d to binding.gyp.
  3. Run node-gyp configure and node-gyp build.
  4. Copy the resulting build/Release/FiftyOneIpIntelligenceIpiV41.node to build/FiftyOneIpIntelligenceIpiV41-[platform]-[arch]-[node major version].node, where [arch] is the value of process.arch and [node major version] is the major version of the Node.js runtime the module was built with.

Process for rebuilding SWIG interfaces following an update to the IP intelligence cxx code (This is only intended to be run by 51Degrees developers internally):

  1. Ensure Swig is installed.
    1. Use the 51Degrees fork of Swig, built from source from the node-24-holder-this branch of https://github.com/51Degrees/swig. The fork emits This() in place of the FunctionCallbackInfo::Holder() V8 API removed in the V8 shipped with recent Node versions.
    2. All native modules loaded into one Node process must be generated by the same Swig version, so regenerate and release this package and fiftyone.devicedetection.onpremise together.
  2. Run the following command in this directory:
swig -c++ -javascript -node ipi_node.i

Find out more