Installing the PageSense Node.js SDK

Installing the PageSense Node.js SDK

Installation

The SDK is on npm.
Run this in your project root:
  1. npm install @zohopagesense/pagesense-node-sdk
That's it. The SDK is added to node_modules and your package.json is updated automatically.

Your package.json will include:
  1. json
  2. {
    "dependencies": {
    "@zohopagesense/pagesense-node-sdk": "^1.0.0"
    }
    }

What gets installed with it

These dependencies come bundled — you don't need to install them separately.

Dependency

What it does

winston

Handles structured logging and debug output inside the SDK.

murmurhash

Powers deterministic user bucketing and traffic allocation.

axios / http client

Manages secure REST API calls between the SDK and PageSense.

Verify the installation

Once installed, check that:
  • @zohopagesense/pagesense-node-sdk appears in your package.json dependencies.
  • The package is present in node_modules.
  • Your app starts without any missing module errors.
NotesNote: Node.js 16 or higher is recommended. You'll need internet access to pull packages from the npm registry.





We’ve designed this documentation to guide you every step of the way. If you need further assistance or have any questions, don’t hesitate to contact us at support@zohopagesense.com - we’re always here to help!