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

@kelvininc/js-client-sdk

v8.16.0

Published

Kelvin SDK Client creates a communication layer that abstract all business logic

Readme

Kelvin SDK Client - JavaScript Overview

Kelvin SDK Client abstracts all the communication layer with the KICS Platform, so the developers can be more focused on building what provides value for their applications - the user experience (UX) and business logic. This approach increases developer productivity and aims to enable higher quality apps by leveraging the server communication with this library.

Supported Platforms

We currently support the following JavaScript platforms:

Kelvin SDK Client API Documentation

You can find the full Client API reference here.

Kelvin Resource Name (KRN) Parsing

The KRN parser provides multiple parsing options optimized for different use cases, with significant performance improvements (3-308x speedup) through caching and specialized parsing.

General KRN Parsing

Parse any KRN using the general parser with automatic optimizations:

const textToParse = 'krn:asset:test';

const result = KvKRNParser.parse(textToParse);

If the krn is valid, the expected result should return the content of the resource asset.

export type KrnParseSuccessResult<T> = {
	parseState: EKrnParseState.ValidKRN;
	resource: EKrnResource;
	resourceContent: T;
};

Where T is from type IAssetKrnResource, represented by:

export interface IAssetKrnResource {
	name: string;
}

High-Performance Specialized Parsing

For maximum performance when you know the KRN type, use specialized resource parsers:

import { AppKRN, AssetKRN, UserKRN } from '@kelvininc/js-client-sdk';

// Direct parsing - up to 308x faster for known resource types
const appResult = AppKRN.parse('krn:app:my-app');
const assetResult = AssetKRN.parse('krn:asset:sensor-001');
const userResult = UserKRN.parse('krn:user:[email protected]');

// Direct KRN creation
const appKrn = AppKRN.build({ app: 'my-app' });
const assetKrn = AssetKRN.build({ asset: 'sensor-001' });

Available specialized parsers:

  • ActionKRN, AppKRN, AppParameterKRN, AppVersionKRN
  • AssetKRN, AssetCustomActionKRN, AssetDatastreamKRN, AssetParameterKRN, AssetTypeKRN
  • DatastreamKRN, JobKRN, RecommendationKRN, ScheduleKRN
  • ServiceAccountKRN, TaskKRN, UserKRN, WorkloadKRN, WorkloadAppVersionKRN

Performance Features

  • Automatic Caching: Frequently parsed KRNs are cached for 3-6x speedup
  • Fast Path Detection: Common patterns are automatically detected and use optimized parsing
  • Memory Management: Built-in cache size limits prevent memory leaks
  • Type Safety: Full TypeScript support with proper resource typing
// Clear cache if needed (useful for long-running applications)
KvKRNParser.clearCache();

// Check cache statistics
console.log('Cache size:', KvKRNParser.getCacheSize());

Error Handling

If the krn is invalid, the result is going to be represented by the type:

export type IKrnParseError = {
	parseState: EKrnParseState.InvalidKRN;
	errorMessage: string;
};

Both general parsing and specialized parsing provide consistent error messages and validation.

Recommended approach:

// Use specialized parsers instead
const appKrn = AppKRN.build({ app: 'api-name' });
const userKrn = UserKRN.build({ user: '[email protected]' });