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

palette-sdk-typescript

v0.0.5

Published

TypeScript SDK for Spectro Cloud Palette API

Readme

Palette SDK TypeScript

A TypeScript SDK for the Spectro Cloud Palette API. This package provides a comprehensive set of functions to manage Kubernetes clusters, applications, and cloud resources through the Palette API.

[!WARNING] This is an experimental SDK and subject to change.

Features

  • Complete API Coverage: All Palette API endpoints are supported
  • Comprehensive TypeScript Support: Full type definitions for all API requests and responses.
  • No Type Casting Required: Clean, typed API calls without any casting
  • Fetch-based: Built on the modern Fetch API
  • Tree-shakable: Import only the functions you need

Installation

npm install palette-sdk-typescript

[!IMPORTANT] This package is published as TypeScript source code. You'll need TypeScript in your project to use it. If you're using JavaScript, you may need to configure your build tools to handle TypeScript files.

  • Node.js 22 or higher
  • TypeScript 5.5 or higher
  • A Palette API key and project UID

Getting Started

Authentication

To use the Palette API, you need an API key. Check the Create API Key guide for more information.

Set the API key as an environment variable:

export PALETTE_API_KEY="your-api-key-here"
export PROJECT_UID="your-project-uid-here"

Usage

Import the specific API functions and types you need.

import {
  spectroClustersMetadataGet,
  setPaletteBaseUrl,
  getPaletteBaseUrl,
  type SpectroClustersMetadata,
} from "palette-sdk-typescript";


// Configure authentication
const config = {
  headers: {
    ApiKey: process.env.PALETTE_API_KEY,
    "Content-Type": "application/json",
    ProjectUID: process.env.PROJECT_UID, // Optional, for project-scoped requests
  },
  // Configure custom base URL (optional)
  // By default, the SDK uses https://api.spectrocloud.com
  baseUrl: 'https://your-palette-host.com'
};

// Get all clusters
const response: SpectroClustersMetadata = await spectroClustersMetadataGet(
  {}, // no filter params provided in this example
  config
);

if (response.items && response.items.length > 0) {
  console.log("First cluster metadata:", response.items[0]);
}

If a project UID is not specified, then the Palette API will use the tenant scope. Keep this in mind when using the SDK. There may be some cases where you want to use the tenant scope.

Base URL Configuration

By default, the PaletteSDK targets https://api.spectrocloud.com. If you have a different Palette instance, such as a self-hosted Palette instance, you can configure the base URL.

const config = {
  headers: {
    ApiKey: process.env.PALETTE_API_KEY,
    "Content-Type": "application/json",
    ProjectUID: process.env.PROJECT_UID,
  },
  // Set custom base URL
  baseUrl: 'https://your-palette-host.com'
};

const response: SpectroClustersMetadata = await spectroClustersMetadataGet(
  {},
  config
);

The SDK will now use your custom URL(https://your-palette-host.com) for all API calls.

Contributing

This SDK is generated from the Palette OpenAPI specification. To contribute:

  1. Fork the repository
  2. Make your changes
  3. Run tests: npm test
  4. Submit a pull request

Requirements

  • Node.js 22 or higher
  • Python 3.10 or higher
  • Make
  • Copywrite
  • Docker

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Support

For issues and questions:

  • SDK Issues: Open an issue on GitHub
  • API Documentation: Visit the Palette API Documentation
  • Palette Support: Contact Spectro Cloud support

Related Projects