open-index/open-npm huggingface dataset:
npm package: @osoka.io/client
Description: Client for the osoka.io API suitable for Node.js server side applications
Author: Igor Sheko
Latest version: 0.0.2

# Osoka.io API client

Osoka.io is the universal UGC-video factory that's provide simple widgets that collects and 
sort customers voices for your own application.

## Quick start

Install library by your favorite package manager
```shell
npm install @osoka.io/client
```
or by yarn 
```shell
yarn add @osoka.io/client
```

Client is implemented by repository pattern. You must create Client instance that will generate all necessary auth tokens for you.

```typescript
const client = new OsokaClient(clientId, secret);
```
You can find your clientId at [the profile page](https://app.osoka.io/manage/profile). Secrets can be managed at [the api secrets page](https://app.osoka.io/manage/profile/secrets).

We are highly recommend not to store any secrets in your source code.

To manage any entity in the Osoka.io API use simple CRUD controllers which represent that entity.

```typescript
const widgetController = new WidgetController(client);

const widgetList = await widgetController.list(); // request first 20 widgets
```
npm package: @osome/eslint-config-backend
Description: [![slack](https://img.shields.io/badge/slack-platform-brightgreen.svg?logo=slack)](https://ooosome.slack.com/archives/CEK7WGGB0)
Author: Osome Ltd.
Latest version: 1.17.0

# eslint-config-backend

[![slack](https://img.shields.io/badge/slack-platform-brightgreen.svg?logo=slack)](https://ooosome.slack.com/archives/CEK7WGGB0)

## Install

```bash
npm install @osome/eslint-config-backend --save-dev
```

## Usage

Configure it in `.eslintrc.js`:

```javascript
{
  extends: [
    '@osome/eslint-config-backend',
  ]
}
```
npm package: @osome/eslint-config-frontend
Description: [![slack](https://img.shields.io/badge/slack-platform-brightgreen.svg?logo=slack)](https://ooosome.slack.com/archives/CEK7WGGB0)
Author: Osome Ltd.
Latest version: 1.26.0

# eslint-config-frontend

[![slack](https://img.shields.io/badge/slack-platform-brightgreen.svg?logo=slack)](https://ooosome.slack.com/archives/CEK7WGGB0)

## Install

```bash
npm install @osome/eslint-config-frontend --save-dev
```

## Usage

Configure it in `.eslintrc.js`:

```javascript
{
  extends: [
    '@osome/eslint-config-frontend',
  ]
}
```
npm package: @osome/iframe-channel
Description: Provides communication between iFrame and parent window (or web app) via postMessage
Latest version: 2.1.1

# Channel

Provides communication between iFrame and parent window (or web app) via postMessage

## Install

```shell
npm i --save @osome/iframe-channel
```

## Package API

init channel:

```js
import { getWidgetChannel, getParentChannel } from '@osome/channel';

// in widget:
const channel = getWidgetChannel();

// in parent:
const widgetIFrame = document.getElementById('widget-iframe');
const channel = getParentChannel(widgetIFrame);
```

methods & events:

```js
// on widget side:
channel.sendInit();
channel.sendReady();
channel.sendToChat(payload);
channel.sendClose();
channel.onInitData();
const initData = channel.initData;

// on parent side:
channel.onInit(console.log);
channel.onReady(console.log);
channel.onChatData(console.log);
channel.onClose(console.log);
channel.sendInitData();
```

direct work with channel:

```js
window.channel.setTransport(callbackFn) // listen events

window.channel.passMessage({event: 'initData', payload: {colorTheme: 'red'}}) // sendData
```


## Channel API

Channel sends data in stringified JSON:

```json
{
  "event": "event_type",
  "payload": "event_data"
}
```

### Events from iframe to parent:

`init` (optional) - widget's html and js is loaded and widget is ready to receive init data from parent (see `onInit` event in #events-from-parent-to-iframe)

`ready` (required) - widget is ready to be displayed

`sendToChat` - widget sends data for chat. Payload should have:

1. `message` - to be sent to chat **behalf of current user**
2. `data` - should have `widget` field with the widget code and any fields with widget specific information

For example, SSIC Widget will send:

```json
{
  "event": "sendToChat",
  "payload": {
    "message": "46900 - Wholesale trade of a variety of goods without a dominant product;\n62090 - Other information technology and computer service activities",
    "data": {
      "action": "submitCodes",
      "widget": "SSIC",
      "parameters": { "codes": ["46900", "62090"], "ids": [10229, 10408] }
    }
  }
}
```

with the appropriate backend data:

```json
({
  "id": 9679,
  "code": "01492",
  "title": "Bird breeding",
  "name": "Bird breeding, 01492",
  "status": "active"
},
{
  "id": 9680,
  "code": "01493",
  "title": "Crocodile farms",
  "name": "Crocodile farms, 01493",
  "status": "active"
})
```

`closeWebview` - iframe should be closed

### Events from parent to iframe

`initData` (optional) - initial data for widget. `payload` could be : `{"themeColor": "blue"}`

`initData` could also be set by query string: http://localhost:3000/?themeColor=blue (if you send then initData event it will be overridden)

initData is available as `channel.initData`
npm package: @osome/redux-data-preloader
Description: osome redux data preloader
Author: OsomePteLtd
Latest version: 1.1.0
Deprecated: this package has been deprecated

# @osome/redux-data-preloader

> osome redux data preloader

[![NPM](https://img.shields.io/npm/v/@osome/redux-data-preloader.svg)](https://www.npmjs.com/package/@osome/redux-data-preloader) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @osome/redux-data-preloader
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from '@osome/redux-data-preloader'

class Example extends Component {
  render () {
    return (
      <MyComponent />
    )
  }
}
```

## License

MIT © [OsomePteLtd](https://github.com/OsomePteLtd)
npm package: @osome/redux-preload
Description: Osome redux preload
Author: OsomePteLtd
Latest version: 1.0.0

# @osome/redux-preload

> osome redux preload

[![NPM](https://img.shields.io/npm/v/@osome/redux-preload.svg)](https://www.npmjs.com/package/@osome/redux-preload) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @osome/redux-preload
```

## Usage

```jsx
import React, { Component } from 'react'

import { preload } from '@osome/redux-preload'

const SimpleComponent = (props) => (<div>Simple component</div>)

const MyComponent = preload(
  users: {
    action: action.loadUsers,
    selector: selector.getUsers,
  },
)(SimpleComponent)
```

## License

MIT © [OsomePteLtd](https://github.com/OsomePteLtd)
npm package: @osovv/vvcode
Description: Packaged CLI for launching OpenCode with vvcode runtime semantics.
Latest version: 0.5.4

# vvcode

`vvcode` is a Bun-based CLI package for launching OpenCode with preset-driven runtime overlays.

## Install

```bash
bun add -g @osovv/vvcode
```

For local development from this repo:

```bash
bun install
bun run cli -- --help
```

## Config layout

Global config path:

```text
~/.config/vvcode/config.jsonc
```

Project config path:

```text
.vvcode/config.jsonc
```

The current behavior is:

1. Global config is the source of shared presets and profiles.
2. Project config is optional for launch if a project root already exists.
3. `vvcode init` creates a minimal project config scaffold.
4. `vvcode preset add <name>` copies a preset from global config into the project config.
5. `vvcode preset remove <name>` removes a copied project preset and prunes unused copied profiles.

## Quick start

Initialize a project-local config:

```bash
vvcode init
```

See which presets are available:

```bash
vvcode preset list
```

Copy a global preset into the current project:

```bash
vvcode preset add openai
```

Launch OpenCode with a preset:

```bash
vvcode opencode --preset openai
```

Or use the shorthand form:

```bash
vvcode --preset openai
```

## Commands

Show help:

```bash
vvcode help
vvcode --help
```

Initialize project config:

```bash
vvcode init
vvcode init --project-root /path/to/project
```

Launch OpenCode:

```bash
vvcode opencode --preset <name>
vvcode --preset <name>
```

Any extra arguments after the vvcode launch flags are forwarded to `opencode`.

Examples:

```bash
vvcode --preset openai run "say hello"
vvcode --preset openai run "say hello" --format json
vvcode --preset openai -p "say hello"
```

`-p` and `--prompt` are vvcode shorthand for launching `opencode run <message>`.

By default `vvcode` starts the shell with:

```bash
opencode
```

You can override the shell command, for example:

```bash
OPENCODE_SHELL_COMMAND='bun x opencode-ai' vvcode --preset openai
```

Options:

1. `--preset` for the preset name.
2. `--global-config`, `-c` to override the global config file path.
3. `--project-root`, `-r` to launch from a different project root.
4. `-p`, `--prompt` to shorthand into `opencode run <message>` for non-interactive tests.

Manage presets:

```bash
vvcode preset list
vvcode preset add <preset-name>
vvcode preset remove <preset-name>
```

`preset list` prints one preset per line with its source label:

1. `global`
2. `project`
3. `project-overrides-global`

## Runtime artifacts

- `.vvcode/local/runtime/overlays/`
- `.vvcode/local/runtime/traces/`
- `.vvcode/local/runtime/failures/`
- `.vvcode/memory/project/`
- `.vvcode/memory/agent/`
- `.vvcode/local/memory/session/`
- `.vvcode/local/memory/subagent/`

## Packaging notes

- Package name: `@osovv/vvcode`
- CLI bin: `vvcode`
- Published runtime entry: `dist/vvcode.js`
- Build command: `bun run build`
- Local dev command: `bun run cli -- --help`
- `prepack` builds `dist` automatically before publish or pack
- Scoped publish target: `npm publish --access=public`
npm package: @ospatil/markdown-it-nomnoml
Description: markdown-it plugin for text-based nomnoml diagrams
Author: Omkar Patil
Latest version: 1.0.0

# markdown-it nomnoml plugin

![npm (scoped)](https://img.shields.io/npm/v/ospatil/markdown-it-nomnoml?style=flat-square)
![GitHub](https://img.shields.io/github/license/ospatil/markdown-it-nomnoml?style=flat-square)

A *markdown-it* plugin for drawing UML diagrams using text-based [nomnoml](http://www.nomnoml.com/) syntax.

## Installation

```sh
npm i @ospatil/markdown-it-nomnoml
```

## Usage

```js
const md = require('markdown-it')()
  .use(require('@ospatil/markdown-it-nomnoml'));
```
npm package: @ospirentos/money
Description: A simple javascript Money class
Author: Ospirentos
Latest version: 1.1.1

# money ![NPM](https://img.shields.io/npm/l/@ospirentos/money) ![npm](https://img.shields.io/npm/v/@ospirentos/money) ![GitHub repo size](https://img.shields.io/github/repo-size/ospirentos/money)
A simple money class for javascript
npm package: @ospm/eslint-plugin-valibot
Description: ESLint plugin for Valibot with automatic schema conversion
Latest version: 1.0.1

# ESLint Plugin Valibot

ESLint plugin providing rules for working with Valibot schemas, including automatic conversion from other validation libraries.

At this moment only one rule is ready. Please send me your use cases not covered by this plugin in github issues.

## Installation

```bash
npm install --save-dev @ospm/eslint-plugin-valibot
```

## Usage

in your `eslint.config.mjs`

```mjs
import parser from "@typescript-eslint/parser";

import valibotPlugin from "@ospm/eslint-plugin-valibot";

/** @type {import('eslint').Linter.Config[]} */
export default [
 {
  files: ["**/*.tsx", "**/*.ts"],
  plugins: {
   valibot: valibotPlugin,
  },
  rules: {
   "valibot/zod-to-valibot": "warn",
  },
  languageOptions: {
   parser,
   parserOptions: {
    ecmaVersion: 2022,
    sourceType: "module",
    ecmaFeatures: {
     jsx: true,
    },
   },
  },
 },
];
```

## Rules

- `zod-to-valibot`: Done. Convert Zod schemas to Valibot
- `joi-to-valibot`: TODO: Convert Joi schemas to Valibot
- `arktype-to-valibot`: TODO: Convert Arktype schemas to Valibot
- `type-to-valibot`: TODO: Convert TypeScript types to Valibot schemas

## Autofix

Currently, only `zod-to-valibot` supports autofix. Run ESLint with `--fix` to automatically convert Zod schemas to Valibot.
Other rules will gain autofix support when implemented.

## Other eslint plugins you want to check

@ospm/eslint-plugin-react-signals-hooks <https://www.npmjs.com/package/@ospm/eslint-plugin-react-signals-hooks>

## License

MIT
npm package: @ospp/protocol
Description: OSPP Protocol TypeScript SDK
Latest version: 0.1.0

# @ospp/protocol

TypeScript SDK for the OSPP (Open Station Payment Protocol) v0.2.5.

## Install

```bash
npm install @ospp/protocol
```

## What's included

- **27 MQTT actions** with full TypeScript types for all request/response/event payloads
- **102 error codes** with severity, recoverable, and HTTP status metadata
- **41 configuration keys** with type, access mode, mutability, and default values
- **5 state machines** (Bay, Session, Reservation, Firmware, Diagnostics) with enforced transitions
- **HMAC-SHA256** canonical JSON serialization, signing, and timing-safe verification
- **ECDSA P-256** signing and verification
- **HMAC signing classification** per (action, messageType) with Critical/All/None modes
- **JSON Schema validation** (Ajv Draft 2020-12) with 64 bundled schemas
- **MQTT topic builders** with shared subscription support

## Usage

```typescript
import {
  OsppAction,
  createEnvelope,
  MessageType,
  MessageSource,
  SchemaValidator,
  BayStateMachine,
  computeMac,
  verifyMac,
  requiresHmac,
  toServerTopic,
} from '@ospp/protocol';
```

## Build

```bash
npm run build
```

## Test

```bash
npm test
```

## License

See LICENSE file.
npm package: @osqu/nivo-scales
Description: [![version](https://img.shields.io/npm/v/@nivo/scales.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/scales)
Author: Raphaël Benitte
Latest version: 0.62.2

# `@nivo/scales`

[![version](https://img.shields.io/npm/v/@nivo/scales.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/scales)
npm package: @osqu/nivo-scatterplot
Description: [![version](https://img.shields.io/npm/v/@nivo/scatterplot.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/scatterplot)
Author: Raphaël Benitte
Latest version: 0.62.5

# `@nivo/scatterplot`

[![version](https://img.shields.io/npm/v/@nivo/scatterplot.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/scatterplot)

## ScatterPlot

[documentation](http://nivo.rocks/scatterplot)

![ScatterPlot](https://raw.githubusercontent.com/plouc/nivo/master/packages/scatterplot/doc/scatterplot.png)

## ScatterPlotCanvas

[documentation](http://nivo.rocks/scatterplot/canvas)

![ScatterPlotCanvas](https://raw.githubusercontent.com/plouc/nivo/master/packages/scatterplot/doc/scatterplot-canvas.png)