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

@healthcloudai/hc-assets-connector

v0.0.5

Published

Healthcheck Assets SDK with TypeScript

Readme

Healthcheck Assets Connector

This connector lets you fetch authenticated content, fetch tenant-scoped public content, and update the stored user image reference. It reuses the configured login client together with the shared Healthcheck HTTP client.


Features

  1. Get authenticated patient content
  2. Get public content for the configured tenant
  3. Update the stored user image reference
  4. Reuse the configured login client for base URL, tenant context, and auth headers where needed

Installation

npm install @healthcloudai/hc-assets-connector \
@healthcloudai/hc-login-connector \
@healthcloudai/hc-http

Import

import { HCAssetsClient } from "@healthcloudai/hc-assets-connector";
import { HCLoginClient } from "@healthcloudai/hc-login-connector";
import { FetchClient } from "@healthcloudai/hc-http";

Usage

Configuration

const httpClient = new FetchClient();
const loginClient = new HCLoginClient(httpClient);

loginClient.configure("demo-tenant", "dev");
await loginClient.login("[email protected]", "ExamplePassword123!");

const assetsClient = new HCAssetsClient(httpClient, loginClient);

Reuse the same configured HCLoginClient instance when creating HCAssetsClient so both connectors use the same tenant and auth state.


Methods

Get Content

Public signature: assetsClient.getContent(type?)

Returns authenticated content for the current patient context. If type is provided, the client appends it as a query string. Current supported content categories are: Article, Video, LegalNotice, FAQ, Guide, News, PrivacyPolicy, Announcement, and HealthTip.

const content = await assetsClient.getContent();
const privacyPolicy = await assetsClient.getContent("privacypolicy");

Full API request

This method performs an authenticated GET request internally and does not send a request body. If type is provided, the client appends it as a query string.

API response

Status:

200
{
  "Data": [
    {
      "ID": "content-id-example",
      "Name": "What causes COVID?",
      "Description": "<p>Example content body.</p>",
      "ImageURL": null,
      "ContentType": "FAQ",
      "PublicationDate": "2026-03-18T08:15:20.987Z",
      "ExpirationDate": null,
      "ExternalLink": null,
      "Article": null,
      "Featured": false,
      "Status": "ACTIVE",
      "ThumbnailURL": null,
      "VideoURL": null,
      "IsFirstDocument": false,
      "SelectedAccountTenantIDs": [
        "demo-tenant",
        "other-tenant-example"
      ],
      "TenantID": "platformadmin"
    }
  ],
  "ErrorMessage": null,
  "IsOK": true
}

Get Public Content

Public signature: assetsClient.getPublicContent(type?)

Returns public content for the configured tenant. This method sends a POST body with TenantID from loginClient.getTenantId() and does not use getAuthHeader(). If type is provided, the client appends it as a query string. At the moment, registrationFAQ is the only valid type for this method because it is used before the user is logged in.

const publicContent = await assetsClient.getPublicContent("registrationFAQ");

Full API request

{
  "Data": {
    "TenantID": "demo-tenant"
  }
}

API response

Status:

200
{
  "Data": [
    {
      "ID": "content-id-example",
      "Name": "Where can I go for other questions or support?",
      "Description": "<pre><code>Contact [email protected] for help.</code></pre>",
      "ImageURL": null,
      "ContentType": "Registration FAQ",
      "PublicationDate": "2026-03-27T09:53:47.239Z",
      "ExpirationDate": null,
      "ExternalLink": null,
      "Article": null,
      "Featured": false,
      "Status": "ACTIVE",
      "ThumbnailURL": null,
      "VideoURL": null,
      "IsFirstDocument": false,
      "SelectedAccountTenantIDs": [
        "demo-tenant"
      ],
      "TenantID": "platformadmin"
    }
  ],
  "ErrorMessage": null,
  "IsOK": true
}

How It Works

  • HCAssetsClient builds requests from loginClient.getBaseUrl().
  • getContent() uses authenticated headers from loginClient.getAuthHeader().
  • getPublicContent() builds a public POST body from loginClient.getTenantId() and does not send auth headers.

Notes

  • HCLoginClient must already be configured before using this connector.
  • getContent() requires an authenticated login client.
  • getPublicContent() uses tenant context from the configured login client and sends a POST body.
  • The optional type argument is appended as a query string when provided.
  • For getPublicContent(), registrationFAQ is currently the only valid type. This method is used before the user is logged in.