open-index/open-npm huggingface dataset:
npm package: @rns-fe/webfetch
Description: web project fetch
Author: RNS, Inc.
Latest version: 0.1.10

# webFetch

apis for rns proj

## Usege

1. setting config data as follow

```
/*
    getLanguage?: () => string;     // get current language must be a func else is default 'en'
    baseUrl?: () => string;         // get base request url
    showMessage?: (content: string, type: string | 'success' | 'error' | 'normal' | 'warning') => void;             // set how to display error message
    noAuth?: () => void;            // when auth error will call this
    getToken?: () => string;        // get system token
    timeOutInterval?: number;       // get time out interval default 60s
    needLog?: boolean;              // whether need log
    headers?: () => RawAxiosRequestHeaders; // request headers
*/
 setConfigData({
    getLanguage: () => 'jp',
    getToken: () => state.user.token,
    baseUrl: () => Config.API_URL!,
    needLog: Config.ENV == 'dev',
    noAuth: () => dispatch({ type: userActions.logout, payload: { token: null } })
    headers: () => {return {sign: md5string, udid: udidstring}}
  })
```

2. call api when use

```
import { idendtfyService } from '@rns/webfetch'

idendtfyService.identityCard().then((res) => {
                // success
            }).catch((e: any) => {
                // fail
            })
```

## Build

```
// call build


```
npm package: @rnsc/homebridge-komfovent-ping2
Description: Homebridge plugin to control a Komfovent unit through a PING2 module over Modbus TCP.
Latest version: 0.3.2

# Homebridge Komfovent Ping2

![homebridge-logo](https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png)

Homebridge plugin that exposes a Komfovent Domekt ventilation unit (C4 controller) as a Fan accessory in HomeKit. Communicates directly with the PING2 module over **Modbus TCP** (port 502) — no middleware required.

## Features

* **ON/OFF** — start/stop the ventilation unit (register 1000)
* **Fan speed** — adjusts Mode 2 intake and exhaust fan intensity from 5% to 95% in 5% increments (registers 1104/1108). This modifies the default speed values for Mode 2 on the PING2 module — it does not switch between ventilation modes
* **Supply air temperature** — exposed as a read-only TemperatureSensor accessory in HomeKit (register 1200)
* **Clock sync** — syncs the PING2 clock from the Homebridge server on startup and every 24 hours, with optional timezone override for Docker deployments

## Requirements

* A Komfovent Domekt unit with a **C4 controller** and **PING2 network module**
* The PING2 module must be reachable over TCP on port 502 (Modbus TCP)
* Homebridge >= 1.8.0
* Node.js >= 20.18

## Configuration

Add the platform to your Homebridge `config.json`:

```json
{
  "platforms": [
    {
      "platform": "KomfoventPing2",
      "devices": [
        {
          "name": "Ventilation",
          "host": "192.168.1.100",
          "deviceId": "abcdef1234567890"
        }
      ]
    }
  ]
}
```

| Field | Required | Default | Description |
|-------|----------|---------|-------------|
| `name` | Yes | — | Display name in HomeKit |
| `host` | Yes | — | IP address or hostname of the PING2 module |
| `deviceId` | Yes | — | 16-character ID (A-Z, a-z, 0-9, _) for HomeKit UUID generation |
| `port` | No | `502` | Modbus TCP port |
| `slaveId` | No | `1` | Modbus slave ID (1-254) |
| `timezone` | No | system | IANA timezone for clock sync (e.g. `Europe/Luxembourg`) |

### Verifying Modbus connectivity

You can verify that your PING2 module is reachable over Modbus TCP using `mbpoll`:

```bash
brew install mbpoll  # or apt-get install mbpoll
mbpoll -m tcp -a 1 -r 1000 -c 10 -t 4 -1 <PING2_IP>
```

## Migration from v0.2.x

Version 0.3.0 replaces the Python middleware ([komfovent-ping2-json-server](https://github.com/rnsc/komfovent-ping2-json-server)) with direct Modbus TCP communication. The middleware server is no longer needed.

Update your config — replace `url` with `host`:

```diff
 {
   "platform": "KomfoventPing2",
   "devices": [
     {
       "name": "Ventilation",
-      "url": "http://192.168.1.100:5000",
+      "host": "192.168.1.100",
       "deviceId": "abcdef1234567890"
     }
   ]
 }
```

Your existing HomeKit accessory will be preserved as long as the `deviceId` stays the same.
npm package: @rnssolution/color-keys
Description: js version of color wallet signer and address generation
Author: Saad Rasool
Latest version: 2.0.3

# Color Keys

Color Keys is a library for creating keys and signing messages on Color. You can use it to generate keypairs and addresses and to sign messages for the Color Network. 

This library deals with tasks that are considered *security-critical* and should be used very carefully.

## Install

```bash
yarn add @rnssolution/color-keys
```

## Usage

### Create a wallet

```js
import { getNewWallet } from "@rnssolution/color-keys"

const { ColorAddress, privateKey, publicKey } = getNewWallet()
// Attention: protect the `privateKey` at all cost and never display it anywhere!!
```

### Import a seed

```js
import { generateWalletFromSeed } from "@rnssolution/color-keys"

const seed = ...24 seed words here

const { ColorAddress, privateKey, publicKey } = generateWalletFromSeed(seed)
// Attention: protect the `privateKey` at all cost and never display it anywhere!!
```

### Sign a message

```js
import { signWithPrivateKey } from "@rnssolution/color-keys"

const privateKey = Buffer.from(...)
const signMessage = ... message to sign, generate messages with "@lunie/Cosmos-js"
const signature = signWithPrivateKey(signMessage, privateKey)

```

### Using with Color-js

```js
import { signWithPrivateKey } from "@rnssolution/color-keys"
import Color from "@lunie/Cosmos-js"

const privateKey = Buffer.from(...)
const publicKey = Buffer.from(...)

// init Color sender
const Color = Color(STARGATE_URL, ADDRESS)

// create message
const msg = Color
  .MsgSend({toAddress: 'color1abcd09876', amounts: [{ denom: 'stake', amount: 10 }})

// create a signer from this local js signer library
const localSigner = (signMessage) => {
  const signature = signWithPrivateKey(signMessage, privateKey)

  return {
    signature,
    publicKey
  }
}

// send the transaction
const { included }= await msg.send({ gas: 200000 }, localSigner)

// await tx to be included in a block
await included()
```