Skip to content

Repository files navigation

WARNING

@ncharts/types has been merged into the main repository under the types/js folder. @ncharts/sdk is deprecated and shouldn't be used.

πŸ»β€β„οΈπŸ“¦ @ncharts/sdk

SDK bindings and typings for charted-server

@ncharts/sdk is a fully-typed SDK for interacting with charted-server. This is used by the web interface to send API calls to the API server.

Note: Since we couldn't have charted-dev or charted as the NPM organization, we went with @ncharts/, which is meant to be Noelware Charts Platform.

Usage

# NPM
$ npm i @ncharts/sdk
# Yarn
$ yarn add @ncharts/sdk
# pnpm
$ pnpm i @ncharts/sdk
import{createClient,AuthStrategy}from'@ncharts/sdk';constclient=createClient({baseURL: 'https://charts.noelware.org/api',auth: newAuthenticationStrategy.Basic('username','password')});constnoel=awaitclient.users('noel').get();// => UserconstnoelRepos=awaitnoel.repositories.all();// => Repository[]// Create a repository for 'noel/my-repo'constrepo=awaitnoel.repositories.create({name: 'my-repo',description: 'Basic description for my repository',readme: `# Hello, world! This is the README for my repository that is available at https://charts.noelware.org/r/username/my-repo We can do *very* **wacky** ***things*** that is available for us to do.`});// => Repository

License

@ncharts/sdk is released under the MIT License with love by Noelware. <3

About

πŸ»β€β„οΈπŸ“¦ TypeScript SDK bindings and typings for charted-server

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages