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

@myvciso/cac-sdk

v0.1.0

Published

Community-maintained Node.js SDK for CISO Assistant Community (not affiliated with or endorsed by Intuitem). Full REST API coverage.

Readme

@myvciso/cac-sdk

Community-maintained SDK. This project is not affiliated with, endorsed by, or sponsored by Intuitem or the CISO Assistant project and its maintainers.

Trademarks. "CISO Assistant" and related names, logos, and marks are trademarks of their respective owners. Their use here is for identification and interoperability only and does not imply affiliation, sponsorship, or endorsement.

Disclaimer. This software is provided "as is", without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from use of this software.

Node.js SDK for CISO Assistant Community — the open-source GRC platform for risk management, compliance, audit, TPRM, and more.

This package provides full coverage of the CISO Assistant REST API (~1,565 operations), generated from the vendored OpenAPI spec. Methods are grouped into 19 domain clients that mirror the official API documentation.

Requirements

  • Node.js 18+
  • A running CISO Assistant instance (local Docker, self-hosted, or cloud trial)
  • A Personal Access Token (PAT) or user credentials

Installation

npm install @myvciso/cac-sdk

Quick start

import { CisoAssistant } from '@myvciso/cac-sdk';

const ca = new CisoAssistant({
  baseUrl: 'https://localhost:8443',  // your instance URL (no /api suffix)
  token: process.env.CISO_ASSISTANT_TOKEN,
  verifySsl: false,                   // common for local Docker with self-signed certs
});

// List all assets (auto-paginates DRF list endpoints)
const { data: assets } = await ca.assets.apiAssetsList({ paginate: true });

// Check API health / build version
const { data: build } = await ca.integrations.apiBuildRetrieve();
console.log(build);

Login with email and password

Instead of a PAT, exchange credentials for a Knox session token:

const ca = new CisoAssistant({
  baseUrl: 'http://localhost:8000',
  email: '[email protected]',
  password: process.env.CISO_ASSISTANT_PASSWORD,
});

// Token is obtained automatically on the first API call, or explicitly:
await ca.login();

Environment variables

| Variable | Description | |----------|-------------| | CISO_ASSISTANT_URL | Backend base URL (default: http://localhost:8000) | | CISO_ASSISTANT_TOKEN | Personal Access Token | | CISO_ASSISTANT_EMAIL | Email for login | | CISO_ASSISTANT_USERNAME | Alias for email | | CISO_ASSISTANT_PASSWORD | Password for login | | CISO_ASSISTANT_VERIFY_SSL | Set to false to allow self-signed certificates |

API domains

All operations are available through namespaced clients on the main CisoAssistant instance:

| Client property | Domain | |-----------------|--------| | analyticsMetrology | Analytics & metrology | | assets | Assets & asset classes | | authUsers | Authentication & users | | chat | AI chat | | compliance | Compliance assessments, controls, requirements | | crq | Quantitative risk (CRQ) | | ebiosRm | EBIOS RM | | evidence | Evidence & attachments | | frameworksLibraries | Frameworks & libraries | | governance | Folders, perimeters, governance | | incidents | Incidents & timeline | | integrations | Integrations, health, search, build info | | privacy | Privacy module | | resilience | Resilience & PMBOK | | riskManagement | Risk assessments, scenarios, threats | | securityFindings | Findings & security exceptions | | settings | Global settings | | tasksTimeline | Tasks, campaigns, questionnaires | | thirdParty | TPRM — entities, contracts, assessments |

Method names follow the OpenAPI operationId in camelCase (e.g. api_assets_listapiAssetsList).

Pagination

DRF list endpoints support automatic pagination:

// Fetch all pages (default cap: 50 pages)
const { data } = await ca.compliance.apiComplianceAssessmentsList({ paginate: true });

// Custom page cap
const { data } = await ca.compliance.apiComplianceAssessmentsList({
  paginate: true,
  maxPages: 10,
  page: 1,
});

Raw requests

For endpoints not yet in the spec, use the escape hatch:

const { data } = await ca.request('GET', '/api/custom-endpoint/', {
  params: { search: 'iso' },
});

Error handling

import { CisoAssistant, AuthError, CisoAssistantError } from '@myvciso/cac-sdk';

try {
  await ca.assets.apiAssetsRetrieve({ id: 'unknown-id' });
} catch (err) {
  if (err instanceof AuthError) {
    // 401 — invalid or expired token
  } else if (err instanceof CisoAssistantError) {
    console.error(err.statusCode, err.body);
  }
}

Authentication notes

CISO Assistant uses Knox token authentication. Include the token as:

Authorization: Token <your_token>

Use Token, not Bearer. PATs respect MFA — they are issued from an authenticated session.

Always include trailing slashes on paths (/api/assets/, not /api/assets).

Development

git clone https://github.com/myvciso/cac-sdk.git
cd cac-sdk
npm install
npm run generate   # regenerate clients from specs/ciso_assistant.json
npm run build
npm test

To refresh the API spec from the upstream Python SDK:

curl -o specs/ciso_assistant.json \
  https://raw.githubusercontent.com/Knuckles-Team/ciso-assistant-api/main/ciso_assistant_api/specs/ciso_assistant.json
npm run generate

Related projects

License

MIT — see LICENSE.

For affiliation, trademark, and warranty disclaimers, see NOTICE.