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

@chkp/ai-security-sdk

v1.0.1

Published

Check Point AI Security Official JS/TS SDK (Workforce AI + Browse Security)

Readme

Check Point - AI Security JS/TS SDK (Workforce AI + Browse Security)

License Latest Release npm version

Build SDK Package Publish SDK to npm

This is the official Check Point AI Security SDK for JavaScript/TypeScript, covering both Workforce AI and Browse Security products.

The SDK is based on the public AI Security OpenAPI and Browse Security OpenAPI specifications.

With the SDK, you do not have to manage log in, send keep alive requests, or worry about session expiration.

The SDK supports simultaneous instances with different tenants, and both products can be used independently or together.

SDK installation

npm install @chkp/ai-security-sdk

Getting started

Import the SDK classes for the product(s) you need:

import { AISecurity, BrowseSecurity } from '@chkp/ai-security-sdk';
  • AISecurity — Workforce AI Security (Chats policy, Access policy, Agents policy, etc.)
  • BrowseSecurity — Browse Security (Secure Browsing policy, DLP policy, web access policy, etc.)

Each class manages its own session independently. Create an instance and provide CloudInfra API credentials to connect.

Obtaining API credentials

  1. Go to the Infinity Portal API Keys page.
  2. Click New > New Account API Key.
  3. In the Service dropdown select:
    • Workforce AI Security for AISecurity
    • Browser Security for BrowseSecurity
  4. Copy the Client ID, Secret Key, and Authentication URL (gateway).

For more information, see Infinity Portal Administration Guide.

Available gateways

| Region | Gateway URL | |---|---| | Europe | https://cloudinfra-gw.portal.checkpoint.com | | United States | https://cloudinfra-gw-us.portal.checkpoint.com |

Once the Client ID, Secret Key, and Authentication URL are obtained, the SDK can be used.

All API operations can be explored on SwaggerHub:

Workforce AI Security example

import { AISecurity } from '@chkp/ai-security-sdk';

const ai = new AISecurity();
await ai.connect({
    clientId: 'your-client-id',
    accessKey: 'your-secret-key',
    gateway: 'https://cloudinfra-gw-us.portal.checkpoint.com',
});

const rulebase = await ai.ChatsPolicyApi.getChatsRulebaseExternalV1ChatsRulebaseGet();
console.log(rulebase.data);

ai.disconnect();

Browse Security example

import { BrowseSecurity } from '@chkp/ai-security-sdk';

const browse = new BrowseSecurity();
await browse.connect({
    clientId: 'your-client-id',
    accessKey: 'your-secret-key',
    gateway: 'https://cloudinfra-gw-us.portal.checkpoint.com',
});

const rulebase = await browse.DLPPolicyApi.getDlpRulebaseExternalV1DlpRulebaseGet();
console.log(rulebase.data);

browse.disconnect();

Using both products together

import { AISecurity, BrowseSecurity } from '@chkp/ai-security-sdk';

const auth = {
    clientId: 'your-client-id',
    accessKey: 'your-secret-key',
    gateway: 'https://cloudinfra-gw-us.portal.checkpoint.com',
};

const ai = new AISecurity();
const browse = new BrowseSecurity();

await ai.connect(auth);
await browse.connect(auth);

// Workforce AI
const chats = await ai.ChatsPolicyApi.getChatsRulebaseExternalV1ChatsRulebaseGet();

// Browse Security
const dlp = await browse.DLPPolicyApi.getDlpRulebaseExternalV1DlpRulebaseGet();

ai.disconnect();
browse.disconnect();

Troubleshooting and logging

The full version and build info of the SDK is available via the info() static method on each class:

console.log(AISecurity.info());       // Workforce AI build info
console.log(BrowseSecurity.info());   // Browse Security build info

AI Security JS/TS SDK uses the debug package for logging.

There are 3 loggers, for general info, errors and to inspect network.

As default they will be disabled, in order to enable logging, set the DEBUG environment variable before running:

DEBUG="chkp_ai_security_sdk:*"

And for a specific/s logger set the logger name followed by a comma as following:

DEBUG="chkp_ai_security_sdk:info,chkp_ai_security_sdk:error,chkp_ai_security_sdk:network"

Report Bug

In case of an issue or a bug found in the SDK, please open an issue.

Contributors