open-index/open-npm huggingface dataset:
npm package: @nornir/rest
Description: A nornir library
Latest version: 2.4.1

# Nornir Rest

**A REST framework based on Nornir with an uninspiring name**

Build strongly typed APIs exactly in sync with your documentation.
You can either implement your handlers based on a typed OpenAPI schema OR generate a schema from your handlers.

## [OpenAPI Router Documentation](openapi.md)

## [Code Generation Documentation](codegen.md)
npm package: @norniras/eslint-config-base-ts
Description: ## Installation
Author: Jevgeni Glazunov
Latest version: 1.0.3

# ESlint config with TypeScript support

## Installation

```shell
pnpm add -D @norniras/eslint-config-base-ts
```

## Usage

Create **.eslintrc.json** file inside project root directory and add object from below.

```json
{
  "extends": ["@norniras/eslint-config-base-ts"]
}
```
npm package: @norniras/hive-agent
Description: Library that helps to send and receive data to/from Hive using different protocols.
Author: Jevgeni Glazunov
Latest version: 3.0.0

# Hive Agent

Library that helps to send and receive data to/from Hive using different protocols.

## Documentation

[HTTP](./src/http/README.md)

[WebSocket](./src/ws/README.md)
npm package: @norniras/prettier-config
Description: ## Installation
Author: Jevgeni Glazunov
Latest version: 1.0.2

# Prettier config

## Installation

```shell
pnpm add -D @norniras/prettier-config
```

## Usage

Inside **package.json** add:

```json
{
  "prettier": "@norniras/prettier-config"
}
```
npm package: @norniras/service-agent
Description: Service agent made for handling incoming data and commands.
Author: Jevgeni Glazunov
Latest version: 0.2.6

# Service Agent for NodeJS

An agent should be used by the service owners for handling (send/receive) the data and commands.

## Installation

### npm

```
npm i @norniras/service-agent
```

### yarn

```
yarn add @norniras/service-agent
```

### pnpm

```
pnpm add @norniras/service-agent
```

## How to

### Initialize the agent

```javascript
import { ServiceAgent } from '@norniras/service-agent';

const agent = new ServiceAgent({
  serviceUrl: 'https://demo.cioty.com/service', // service URL
  token: 'aToken', // token
  ghostId: '0', // ghost id
  restartStream: true // Optional, default is true.
});
```

### Agent - listen

Takes callback as an argument that will handle incoming data and commands.
This is where all logic should be defined.

```javascript
agent.listen(({ data, command }) => {
  if (typeof data !== 'undefined') {
    // DATA HANDLER
    console.log(data);
  }

  if (typeof command !== 'undefined') {
    // COMMAND HANDLER
    console.log(command);
  }
});
```

### Agent - send data

The service owner can send data to any ghost of his service.

```javascript
agent.sendData({
  ghostId: 'id', // Ghost ID where you want to send data
  dataString: 'key=value&key1=value1' // data is sent as query string
});
```

### Agent - send command

The service owner can send commands only to the service he is linking to. Command schema defined by the service owner and can be found on micropage. We send to turn on lamp id 5 with a red color to a lamp service. The service agent of lamp service should handle this command.

```javascript
agent.sendCommand({
  targetUrl: 'https://demo.cioty.com/lamp', // service URL
  commandString: 'action=on&id=5&color=red'
});
```

### Agent - get query string from an object

From the examples above you can see that both data and commands should be sent as a query string. The method will convert objects into a query string.

```javascript
const command = {
  action: 'on',
  id: 5,
  color: 'red'
};
const commandString = agent.getQueryStringFromObject(command);

// commandString // action=on&id=5&color=red

agent.sendCommand({
  targetUrl: 'https://demo.cioty.com/lamp', // service URL
  commandString
});
```

## For developers

1. Clone repo on GitHub
2. Inside **src/config** folder create **_.env_** and copy from **_example.env_**
3. Fill up **_.env_** file
4. Run **_pnpm dev_** to start an agent
5. Using **CURLs** u can send some data to your agent and see how does it work
npm package: @norniras/ts-config
Description: ## Installation
Author: Jevgeni Glazunov
Latest version: 1.0.1

# TypeScript config

## Installation

```shell
pnpm add -D @norniras/ts-config
```

## Usage

Inside **tsconfig.json** add:

```json
{
  "extends": ["@norniras/ts-config/base.json"],
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "dist",
  },
  "include": [
    "src/**/*.ts",
  ]
}
```
npm package: @noroff/biome-config
Description: Noroff Biome configurations
Author: Noroff School of Technology and Digital Media
Latest version: 0.0.1

# `@noroff/biome-config`

Collection of Biome configurations.

## Installation

```bash
npm install -D @noroff/biome-config
```

## Usage

Using `biome.json`

```json
{
  "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
  "extends": ["@noroff/biome-config"]
}
```
npm package: @noroff/prettier-config
Description: Noroff Prettier configurations
Author: Noroff School of Technology and Digital Media
Latest version: 0.0.1

# `@noroff/prettier-config`

Collection of Prettier configurations.

## Installation

```bash
npm install -D @noroff/prettier-config
```

## Usage

Using `.prettierrc.js`

```js
module.exports = {
  extends: ["@noroff/prettier-config"]
}
```

Using `.prettierrc.json`

```json
{
  "extends": ["@noroff/prettier-config"]
}
```
npm package: @norr/components
Description: Norr is just another monorepo with a bunch of packages
Latest version: 4.1.1

# `@norr/components`

[![npm version](https://img.shields.io/npm/v/@norr/components.svg)](https://www.npmjs.com/package/@norr/components)
[![npm downloads](https://img.shields.io/npm/dm/@norr/components.svg)](https://www.npmjs.com/package/@norr/components)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/components)](https://www.npmjs.com/package/@norr/components)
[![npm license](https://img.shields.io/npm/l/@norr/components)](https://www.npmjs.com/package/@norr/components)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/components/overview/).
npm package: @norr/eslint-config-eslint-react-typescript
Description: Norr is just another monorepo with a bunch of packages
Latest version: 2.1.0

# `@norr/eslint-config-eslint-react-typescript`

[![npm version](https://img.shields.io/npm/v/@norr/eslint-config-eslint-react-typescript.svg)](https://www.npmjs.com/package/@norr/eslint-config-eslint-react-typescript)
[![npm downloads](https://img.shields.io/npm/dm/@norr/eslint-config-eslint-react-typescript.svg)](https://www.npmjs.com/package/@norr/eslint-config-eslint-react-typescript)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/eslint-config-eslint-react-typescript)](https://www.npmjs.com/package/@norr/eslint-config-eslint-react-typescript)
[![npm license](https://img.shields.io/npm/l/@norr/eslint-config-eslint-react-typescript)](https://www.npmjs.com/package/@norr/eslint-config-eslint-react-typescript)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/eslint/react-with-typescript/).
npm package: @norr/hooks
Description: Norr is just another monorepo with a bunch of packages
Latest version: 4.5.0

# `@norr/hooks`

[![npm version](https://img.shields.io/npm/v/@norr/hooks.svg)](https://www.npmjs.com/package/@norr/hooks)
[![npm downloads](https://img.shields.io/npm/dm/@norr/hooks.svg)](https://www.npmjs.com/package/@norr/hooks)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/hooks)](https://www.npmjs.com/package/@norr/hooks)
[![npm license](https://img.shields.io/npm/l/@norr/hooks)](https://www.npmjs.com/package/@norr/hooks)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/hooks/overview/).
npm package: @norr/prettier
Description: Norr is just another monorepo with a bunch of packages
Latest version: 1.4.0

# `@norr/prettier`

[![npm version](https://img.shields.io/npm/v/@norr/prettier.svg)](https://www.npmjs.com/package/@norr/prettier)
[![npm downloads](https://img.shields.io/npm/dm/@norr/prettier.svg)](https://www.npmjs.com/package/@norr/prettier)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/prettier)](https://www.npmjs.com/package/@norr/prettier)
[![npm license](https://img.shields.io/npm/l/@norr/prettier)](https://www.npmjs.com/package/@norr/prettier)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/prettier/overview/).
npm package: @norr/stylelint-emotion
Description: Norr is just another monorepo with a bunch of packages
Latest version: 1.0.0

# `@norr/stylelint-emotion`

[![npm version](https://img.shields.io/npm/v/@norr/stylelint-emotion.svg)](https://www.npmjs.com/package/@norr/stylelint-emotion)
[![npm downloads](https://img.shields.io/npm/dm/@norr/stylelint-emotion.svg)](https://www.npmjs.com/package/@norr/stylelint-emotion)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/stylelint-emotion)](https://www.npmjs.com/package/@norr/stylelint-emotion)
[![npm license](https://img.shields.io/npm/l/@norr/stylelint-emotion)](https://www.npmjs.com/package/@norr/stylelint-emotion)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/stylelint/emotion/).
npm package: @norr/stylelint-styled-jsx
Description: Norr is just another monorepo with a bunch of packages
Latest version: 1.0.4

# `@norr/stylelint-styled-jsx`

[![npm version](https://img.shields.io/npm/v/@norr/stylelint-styled-jsx.svg)](https://www.npmjs.com/package/@norr/stylelint-styled-jsx)
[![npm downloads](https://img.shields.io/npm/dm/@norr/stylelint-styled-jsx.svg)](https://www.npmjs.com/package/@norr/stylelint-styled-jsx)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/stylelint-styled-jsx)](https://www.npmjs.com/package/@norr/stylelint-styled-jsx)
[![npm license](https://img.shields.io/npm/l/@norr/stylelint-styled-jsx)](https://www.npmjs.com/package/@norr/stylelint-styled-jsx)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/stylelint/styled-jsx/).
npm package: @norr/typescript
Description: Norr is just another monorepo with a bunch of packages
Latest version: 1.2.1

# `@norr/typescript`

[![npm version](https://img.shields.io/npm/v/@norr/typescript.svg)](https://www.npmjs.com/package/@norr/typescript)
[![npm downloads](https://img.shields.io/npm/dm/@norr/typescript.svg)](https://www.npmjs.com/package/@norr/typescript)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/typescript)](https://www.npmjs.com/package/@norr/typescript)
[![npm license](https://img.shields.io/npm/l/@norr/typescript)](https://www.npmjs.com/package/@norr/typescript)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/typescript/overview/).
npm package: @norr/utilities
Description: Norr is just another monorepo with a bunch of packages
Latest version: 1.3.0

# `@norr/utilities`

[![npm version](https://img.shields.io/npm/v/@norr/utilities.svg)](https://www.npmjs.com/package/@norr/utilities)
[![npm downloads](https://img.shields.io/npm/dm/@norr/utilities.svg)](https://www.npmjs.com/package/@norr/utilities)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@norr/utilities)](https://www.npmjs.com/package/@norr/utilities)
[![npm license](https://img.shields.io/npm/l/@norr/utilities)](https://www.npmjs.com/package/@norr/utilities)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

See [documentation](https://norr.vercel.app/utilities/overview/).