Code Monkey home page Code Monkey logo

js-sdk's Introduction

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';

const client = createClient({
    baseURL: 'https://charts.noelware.org/api',
    auth: new AuthenticationStrategy.Basic('username', 'password')
});

const noel = await client.users('noel').get();
// => User

const noelRepos = await noel.repositories.all();
// => Repository[]

// Create a repository for 'noel/my-repo'
const repo = await noel.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

js-sdk's People

Contributors

auguwu avatar renovate[bot] avatar

Stargazers

 avatar  avatar

js-sdk's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

Renovate tried to run on this repository, but found these problems.

  • WARN: Package lookup failures

Warning

Renovate failed to look up the following dependencies: Could not determine new digest for update (github-tags package actions/checkout).

Files affected: .github/workflows/Linting.yaml, .github/workflows/Release.yaml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/Linting.yaml
  • actions/checkout v4@8ade135a41bc03ea155e62e844d188df1ea18608
  • actions/setup-node v3
.github/workflows/Release.yaml
  • actions/checkout v4@8ade135a41bc03ea155e62e844d188df1ea18608
  • actions/setup-node v3
npm
package.json
  • @actions/core 1.10.1
  • @augu/eslint-config 4.0.1
  • @augu/tsconfig 1.1.1
  • @jsdevtools/npm-publish 2.2.2
  • @noelware/utils 2.4.0
  • @types/eslint 8.44.5
  • @types/node 20.8.6
  • @types/prettier 2.7.3
  • @types/signale 1.4.5
  • @typescript-eslint/eslint-plugin 6.8.0
  • @typescript-eslint/parser 6.8.0
  • colorette 2.0.20
  • eslint 8.51.0
  • eslint-config-prettier 9.0.0
  • log-symbols 5.1.0
  • openapi-typescript 6.7.0
  • prettier 3.0.3
  • rimraf 5.0.5
  • signale 1.4.0
  • tsup 7.2.0
  • tsx 3.12.6
  • typescript 5.2.2
  • yarn 3.6.4
packages/sdk/package.json
  • @noelware/utils 2.4.0
  • defu 6.1.2
  • @types/node 20.8.6
  • testcontainers 10.2.1
  • vitest 0.34.6
packages/types/package.json

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.