open-index/open-npm huggingface dataset:
npm package: @iobroker/i18n
Description: Core module to be used in ioBroker adapters. Acts as the bridge to js-controller.
Author: bluefox
Latest version: 1.0.0

# I18n

Developers can use internationalisation in backend.

For that call

```javascript
const I18n = require('@iobroker/i18n');

// later in "ready" method
await I18n.init(__dirname, adapter);
// If you use class syntax, you can use `this` instead of `adapter`
await I18n.init(__dirname, this);
// You can provide the language directly
await I18n.init(__dirname, 'de');
```

and then in code

```javascript
console.log(I18n.translate('text to translate %s', 'argument1'));
// short form (similar to GUI)
console.log(I18n.t('text to translate %s', 'argument1'));
// or to get the ioBroker.Translated object
console.log(JSON.stringify(I18n.getTranslatedObject('text to translate %s and %s', 'argument1', 'argument2')));
```

You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` files are in `lib` directory, so call the `init` function like this:

```javascript
const { join } = require('node:path');
const I18n = require('@iobroker/i18n');

await I18n.init(join(__dirname, 'lib'), adapter);
```

Expected structure of `i18n` directory

```
+ i18n
  - de.json
  - en.json
  - es.json
  - fr.json
  - it.json
  - nl.json
  - pl.json
  - pt.json
  - ru.json
  - uk.json
  - zh-cn.json
```

And an example of i18n files could be found [here](test/i18n/de.json)

## Changelog

<!--
	Placeholder for the next version (at the beginning of the line):
	### **WORK IN PROGRESS**
-->
### 1.0.0 (2025-07-09)

-   (@GermanBluefox) Added shorten form of `translate` function `t`
-   (@GermanBluefox) Allowed usage of patterns in unknown translations too

### 0.3.1 (2024-11-16)

-   (@GermanBluefox) Support root directory given as '.../i18n'

### 0.2.2 (2024-10-01)

-   (@GermanBluefox) Initial release

## MIT License

Copyright (c) 2024-2025 @GermanBluefox <dogafox@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
npm package: @iobroker/javascript-rules-dev
Description: Required for ioBroker Javascript Rules Block development
Author: bluefox
Latest version: 0.0.6

# ioBroker JavaScript Rules Block
This module is required to develop Rule Blocks for ioBroker.javascript Adapter.

Samples could be found in ioBroker.iot or ioBroker.telegram Adapters

## Changelog
<!--
	Placeholder for the next version (at the beginning of the line):
	### **WORK IN PROGRESS**
-->
### 0.0.6 (2025-01-15)

* (@GermanBluefox) Initial commit

## License

The MIT License (MIT)

Copyright (c) 2025 Denis Haev <dogafox@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
npm package: @iobroker/jsonltool
Description: A tool for working with JSONL files
Author: ioBroker
Latest version: 0.0.7

# jsonltool
Small JSONl Tool for ioBroker JSONL databases

## With npm >= 7

```bash
npm x --yes @iobroker/jsonltool@latest /opt/iobroker/iobroker-data
```

## With npm < 7

```bash
cd /opt/iobroker/iobroker-data
npx @iobroker/jsonltool@latest
```

## Changelog

### 0.0.7
* optimize read error handling

### 0.0.6
* optimize read error handling

### 0.0.5
* ignore read errors when opening the database

### 0.0.4
* initial release
npm package: @iobroker/socket-client-backend
Description: Client libraries for ioBroker using web sockets
Latest version: 5.0.3

# ioBroker Backend SocketIO client
This library allows communication with `ioBroker.admin` backend or any WebSocket (not socket.io) based ioBroker server.

## Example
You can find the code here: [example](src/example.ts).

Include the following packages in your project:
```bash
npm install @iobroker/socket-client-backend ws
```

Then you can use the following code to connect to the ioBroker backend:

```ts
import WebSocket from 'ws';
import { AdminConnection, SocketClient } from '@iobroker/socket-client-backend';

const socket = new AdminConnection({
    host: 'localhost',
    port: 5680,
    doNotLoadAllObjects: true,
    doNotLoadACL: true,
    onProgress: progress => console.log(`Progress: ${progress}`),
    onReady: async _objects => {
        console.log(`Ready with ${Object.keys(_objects).length} objects`);
        const objects = await socket.getObjects(true);
        console.log('Received objects:', Object.keys(objects).length);
        void socket.subscribeState('system.adapter.admin.0.cputime', (id, state) => {
            console.log(`State changed for ${id}:`, state);
        });
    },
    onLog: message => console.log(`Log: ${message.message}`),
    onError: error => console.error(`Error: ${error}`),
    connect: (url: string): any => {
        const socketClient = new SocketClient();
        socketClient.connect(url.replace(/^http/, 'ws'), {
            name: 'TestClient',
            // pongTimeout: 10000,
            // pingInterval: 5000,
            // connectTimeout: 5000,
            // authTimeout: 5000,
            // connectInterval: 1000,
            // connectMaxAttempt: 10,
            WebSocket,
        });
        return socketClient;
    },
});
```
npm package: @iobroker/vis-widgets-react-dev
Description: React classes to develop vis widgets interfaces for ioBroker with react.
Author: bluefox
Latest version: 0.2.3

# Help ReactJS classes for development of vis widgets based on react

## Development
How to develop a vis widget based on react?

See here: https://github.com/ioBroker/ioBroker.vis-widgets-react-template

<!--
	Placeholder for the next version (at the beginning of the line):
	### **WORK IN PROGRESS**
-->

## Changelog
### 0.2.3 (2022-08-02)
* (bluefox) Corrected simulation of `data` and `style`

### 0.2.2 (2022-07-25)
* (bluefox) Added search for i18n keys in the code

### 0.1.7 (2022-07-22)
* (bluefox) Added `modulefederation` and `craco` config files

### 0.1.5 (2022-07-20)
* (bluefox) visRxWidget was optimized

### 0.1.1 (2022-07-08)
* (bluefox) initial commit

## License
The MIT License (MIT)

Copyright (c) 2022 bluefox <dogafox@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
npm package: @iobroker/ws
Description: ioBroker client side of web sockets
Author: bluefox
Latest version: 3.0.5

# ioBroker.ws.client - @iobroker/ws

This library is used for communication with the back-end via pure web-sockets.

It simulates `socket.io` interface.

It is used normally together with `@iobroker/ws-server` on server side, and it is not compatible with `socket.io` (server) library.

## Usage

In the same way as `socket.io.client` library

<!--
	Placeholder for the next version (at the beginning of the line):
	### **WORK IN PROGRESS**
-->

## Changelog
### 3.0.5 (2026-02-25)

-   (@GermanBluefox) Updated packages

### 3.0.4 (2025-10-25)

-   (@GermanBluefox) Updated packages

### 3.0.3 (2025-06-21)

-   (@GermanBluefox) Allowed to use the code in node.js too

### 2.1.0 (2025-03-05)

-   (@GermanBluefox) Fixed lint warnings
-   (@GermanBluefox) Used TypeScript 5.8

### 2.0.2 (2025-02-24)

-   (@GermanBluefox) Added support for OAuth2 authentication

### 2.0.0 (2024-10-02)

-   (@GermanBluefox) Code was rewritten with TypeScript

### 1.1.2 (2022-08-18)

-   (@GermanBluefox) improved `writeFile` call

### 1.1.1 (2022-05-22)

-   (@GermanBluefox) Cosmetic change done

### 1.1.0 (2022-02-21)

-   (@GermanBluefox) Made it possible to have more than one socket from one page

### 1.0.4 (2022-02-13)

-   (@GermanBluefox) Added disconnect for back compatibility

### 1.0.3 (2022-02-02)

-   (@GermanBluefox) Fixed error if URL contains #

### 1.0.2 (2022-01-30)

-   (@GermanBluefox) initial commit

## License

The MIT License (MIT)

Copyright (c) 2020-2026 @GermanBluefox <dogafox@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.