Skip to content

KusionStack/kusion-typescript-sdk

Repository files navigation

Kusion API Client SDK

A TypeScript SDK for interacting with the Kusion Server API.

Installation

Using npm:

npm install @kusionstack/kusion-api-client-sdk

Using yarn:

yarn add @kusionstack/kusion-api-client-sdk

Quick Start

import { client, SourceService } from '@kusionstack/kusion-api-client-sdk';

// Configure the client
client.setConfig({
    baseUrl: 'http://localhost:80'
});

// Use the SDK
async function example() {
    try {
        const sources = await SourceService.listSource();
        console.log('Sources:', sources.data);
    } catch (error) {
        console.error('Error:', error);
    }
}

Features

  • 🔒 Type-safe API interactions
  • 🚀 Promise-based async operations
  • ⚡️ Modern TypeScript support
  • 🛠 Built-in error handling

Documentation

Visit our API documentation For examples, please refer to:

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

License

This project is licensed under the Apache License 2.0.

Support

If you encounter any issues or have questions:

Related Projects

About

A TypeScript SDK for interacting with the Kusion Server API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published