open-index/open-npm huggingface dataset:
npm package: @fanmiles/nodejs-aws-secret-retriever
Description: Used for retrieving a secret from AWS Secrets Manager.
Latest version: 1.0.2

# @fanmiles/nodejs-aws-secret-retriever
Used for retrieving a secret from AWS Secrets Manager.
After successful retrieve the manager caches the secret
in memory for faster access.

## Usage

```javascript
const AWS = require('aws-sdk');
const SecretsRetriever = require('@fanmiles/nodejs-aws-secret-retriever');

const awsSecretsManager = new AWS.SecretsManager({
  apiVersion: '2017-10-17',
  region: 'eu-central-1',
});

const secretsRetriever = new SecretsRetriever({ awsSecretsManager });

secretsRetriever.retrieveSecret('your/secret/id')
  .then((secret) => {
    console.log(secret);
  })
  .catch((error) => {
    console.error(error);
  });
```
npm package: @fanny-pack-ui/svelte-kit
Description: <div align="center">     <img src="/src/assets/images/fanny-pack.svg" alt="fanny pack" width="512" /><br> </div>
Latest version: 0.0.123

<div align="center">
    <img src="/src/assets/images/fanny-pack.svg" alt="fanny pack" width="512" /><br>
</div>

---

# IMPORTANT
*This is a work in progress and is not ready for production yet.*

---

See the documentation website: https://fanny-pack-ui.pages.dev/
npm package: @fanny-pack/browser-extension
Description: [Fanny Pack](https://github.com/LinusU/fanny-pack) running in a browser extension on top of [the `storage` API](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage).
Latest version: 1.0.0-beta.2

# Fanny Pack Browser

[Fanny Pack](https://github.com/LinusU/fanny-pack) running in a browser extension on top of [the `storage` API](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage).

## Installation

```sh
npm install --save @fanny-pack/browser-extension
```

## Usage

```js
const FannyPack = require('@fanny-pack/browser-extension')

const fp = new FannyPack('sync', 'important-data')
```

You can now use `fp` as any other [Fanny Pack](https://github.com/LinusU/fanny-pack).

## API

### `new FannyPack(storageArea: string, databaseName: string)`

Create or open an existing database with the provided name, in the given storage area.

Valid storage areas:

- `local` - Items in `local` storage are local to the machine the extension was installed on.
- `sync` - Items in `sync` storage are synced by the browser, and are available across all instances of that browser that the user is logged into, across different devices.

The rest of the API follows the shared [Fanny Pack API](https://github.com/LinusU/fanny-pack#api).
npm package: @fanolabs/accobot
Description: sdk for fanolabs accobot
Author: henry.zheng@fano.ai
Latest version: 0.1.2

@fanolabs/accobot
==========

[![npm version][npm-image]][npm-url]

FanoLabs Accobot module for Node.js

<!-- TOC -->

- [Installation](#installation)
- [License](#license)
- [API](#api)
    - [chat(senderId, text, language)](#chat(senderId,text,language))


<!-- /TOC -->

## Installation

Current stable release (`0.1.1`)

```sh
$ npm install @fanolabs/accobot --save
```

## Common Usage
We suggest you load the module via `require`, pending the stabalizing of es modules in node:
```js
const ACCOBOT = require('@fanolabs/accobot');
const client = new ACCOBOT({
    url: 'https://acdev.fanoai.cn/chat',
    userName: 'xxx@fano.ai',
    password: 'xxxxxx',
    scope: 'xxx'
});

this.test = async function() {
    let response = await client.chat('senderId', 'text', 'language');
    if (response.status === 200) {
        console.info(response.content);
    }
}

this.test();
```

`Note`: `url`、`userName`、`password`、`scope` should set to the specific correct configuration.

## API

### chat(senderId,text,language)

- `senderId` A string representing the user for chatting with accobot
- `text` A string representing the user input content 
- `language` A string representing the language for the user input content, allowed languages to 'cantonese, mandarin, english-usa'
- Returns: 

    `Note`: successful response
    ```js
    {
        "content": [{
            "text": "你好，請您使用語音描述一下您想要報告的事故。您可以報告以下事故類型：水管爆裂，車輛故障，山泥傾瀉，洪水泛濫，塌樹，氣體洩漏，緊急維修以及交通事故。(例如: xxx路口因為交通意外，道路嚴重阻塞。）"
        }],
        "status": 200
    }
    ```

    `Note`: Error handling
    ```js
    {
        "status": 500,
        "error_msg": {
            "to": "https://fano_ms_bre:8080/bre?user_id=test_henry",
            "status": "error",
            "error_msg": "BRE Error: 'NoneType' object is not subscriptable"
        },
        "statusText": "Internal Server Error"
    }
    ```

## License

MIT

[npm-image]: https://flat.badgen.net/npm/v/babel-core
[npm-url]: https://www.npmjs.com/package/@fanolabs/accobot
npm package: @fanolabs/asr
Description: sdk for fanolabs asr
Author: henry.zheng@fano.ai
Latest version: 0.1.0

@fanolabs/asr
==========

[![npm version][npm-image]][npm-url]

FanoLabs Asr module for Node.js

<!-- TOC -->

- [Installation](#installation)
- [License](#license)
- [API](#api)
    - [stt(filepath, diarize, recognition_model)](#stt(filepath,diarize,recognition_model))


<!-- /TOC -->

## Installation

Current stable release (`0.1.0`)

```sh
$ npm install @fanolabs/asr --save
```

## Common Usage
We suggest you load the module via `require`, pending the stabalizing of es modules in node:
```js
const ASR = require('@fanolabs/asr');
const client = new ASR({
    url: 'https://acdev.fanoai.cn/asr'
});

this.test = async function() {
    let response = await client.stt('./test.wav', 'cantonese');
    if (response.status === 200) {
        console.info(response.content);
    }
}

this.test();
```

## API

### stt(filepath,diarize,recognition_model)

- `filepath` A string representing the local wav file path 
- `diarize` 'True'/'False', default 'False'
- `recognition_model` Choose which recognition model to use.
- Returns: 

    `Note`: successful response
    ```js
    {
        'status': 200,
        'content': [{
            'recording_id': 'speech',
            'start_time': 0.83,
            'end_time': 1.62,
            'n_bests': [{
                'text': '明白街',
                'confidence': 0.121796916
            }],
            'text': '明白街',
            'confidence': 0.121796916,
            'success': True
        }]
    }
    ```

    `Note`: Error handling
    ```js
    {
        'status': 500,
        'statusText': 'Internal Server Error'
    }
    ```

## License

MIT

[npm-image]: https://flat.badgen.net/npm/v/babel-core
[npm-url]: https://www.npmjs.com/package/@fanolabs/asr