open-index/open-npm huggingface dataset:
npm package: @irohalab/bgm-sdk-inversify
Description: An SDK for bgm.tv API
Author: IrohaLab
Latest version: 2.0.1

# bgm-sdk-inversify

A typescript sdk for bgm.tv API. for API reference, see: [https://bangumi.github.io/api/](https://bangumi.github.io/api/)

To use this SDK, you need to use with RxJS 6+ and Inversify.

## Install

```shell
npm install @irohalab/bgm-sdk-inversify --save
```

Optionally, install dependencies
```shell
npm install inversify reflect-metadata rxjs typescript --save,
```

## Usage

You need implement IAPIConfiguration and bind it to `IAPIConfiguration` serviceIdentifier
If you decide to use HttpClient from this SDK to bind `IApiHttpClient`, you also need to install `whatwg-fetch` package.

```typescript
import { DefaultService, DefaultServiceInterface, ApiServiceBinder } from '@irohalab/bgm-sdk-inversify';
import { injectable } from 'inversify';
import { Subject } from './subject';
import { lastValueFrom } from 'rxjs';
import IHttpClient from './IHttpClient';

const TYPES = {
    DefaultService: 'DefaultService'
}

@injectable()
export class YourInjectableService {
    constructor(@inject(TYPES.DefaultService) private _bgmClient: DefaultService) {
    }

    async getSubject(bgmId: number): Promise<Subject> {
        return await lastValueFrom(this._bgmClient.getSujectById(bgmId));
    }
}

const container = new Container();
container.bind<IAPIConfiguration>('IAPIConfiguration').to(YourAPIConfiguartion);
// there is a default implement of IHttpClient in the sdk. you can bind this
container.bind<IHttpClient>('IApiHttpClient').to(HttpClient);
ApiServiceBinder.with(container);
container.bind<YourInjectableService>(YourInjectableService).to(ApiServiceBinder);
const yourService = container.get<YourInjectableService>(YourInjectableService);
const subject = await yourService.getSubject(324295);
```
npm package: @irohalab/deneb-ui
Description: Building blocks for mira-ui
Author: Everett Summer
Latest version: 4.7.1

# DenebUI

This library is a fork from [Deneb-UI](https://github.com/lordfriend/Deneb-UI) with Angular 14 support

## Install

`npm i --save @irohalab/Deneb-UI`

## Usage

Please take a look at the [deneb-ui-demo](https://github.com/irohalab/Deneb-UI/tree/master/projects/deneb-ui-demo) application