open-index/open-npm huggingface dataset:
npm package: @kota-yata/miller-rabin
Description: TypeScript implementation of a probabilistic primality testing on the basis of Fermat's Little Theorem and Miller Rabin Theorem
Author: Kota Yatagai
Latest version: 1.0.0

## Miller-Rabin Primality Test
TypeScript implementation of a probabilistic primality testing on the basis of Fermat's Little Theorem and Miller Rabin Theorem

## Test

```
yarn install
yarn test
```

Only tests for the power function and the main one are written
npm package: @kotakodelab/eslint-config
Description: eslint config based on airbnb
Author: @kotakodelab/ichsan
Latest version: 0.1.0

# @kotakodelab/eslint-config

## Install

1) ```npm install --save-dev @kotakodelab/eslint-config```

2) Create .eslintrc file in your project root with following content:

```
{
    "extends": "@kotakodelab"
}
```

3) Then add eslint script in the project package.json scripts:

```
scripts": {
	"lint": "eslint ./example-app"
},
```

## Usage

Run ```npm run lint``` to check your code using eslint.

## License

[MIT](LICENSE)
npm package: @kotao/api
Description: Type-safe API client for Kotao - Built with Elysia and Eden Treaty
Latest version: 1.2.0

# @kotao/api

Type-safe API client for Kotao built with Elysia and Eden Treaty.

## Installation

```bash
npm install @kotao/api
```

## Usage

```typescript
import { createApiClient } from '@kotao/api/client'

// Uses https://api.kotao.com by default
const api = createApiClient()

// Or specify a custom URL
const api = createApiClient('https://api.staging.kotao.com')

// Full type safety and autocomplete for all endpoints
const { data, error } = await api.v1.workspaces.get()

if (error) {
  console.error('Failed to fetch workspaces:', error)
} else {
  console.log('Workspaces:', data)
}
```

## TypeScript Support

This package provides full TypeScript support with autocomplete for all API endpoints:

- Request parameters are type-checked
- Response types are inferred automatically
- Error types are strongly typed

## Requirements

- Node.js 18+ or Bun 1.0+
- TypeScript 5.0+

## License

MIT
npm package: @kotchi-ui/cli
Description: Command line interface for KotchiUI framwork
Author: Ahmad Rida Igbariya
Latest version: 0.1.4

# Create Component

This command will create a complete component files in a specific folder structure. 
Using a descriptor JSON, that descripes how to exactly create the component. 
You can find the scheme here, and here are couple of examples. (view full descriptors list)

### kui-button descriptor
```json
{
  "name": "Button",
  "description": "`{{toTagName name}}` is a button that has predefined styles and sizes to serve different semantic purposes with few extras.",
  "allowedChildren": [],
  "allowedParents": [],
  "attributes": [
    {
      "name": "kui-style",
      "description": "Predefined styles that serves different semantic purposes",
      "type": "Style",
      "defaultValue": "Style.Secondary",
      "values": {
        "Primary": "{{toTagName name}}-primary",
        "Secondary": "{{toTagName name}}-secondary",
        "Information": "{{toTagName name}}-info",
        "Danger": "{{toTagName name}}-danger",
        "Warning": "{{toTagName name}}-warning",
        "Success": "{{toTagName name}}-success",
        "Link": "{{toTagName name}}-link"
      }
    },
    {
      "name": "kui-size",
      "description": "Predefined sizes smaller or bigger than the default one",
      "type": "Size",
      "defaultValue": "Size.Normal",
      "values": {
        "Normal": "null",
        "Small": "{{toTagName name}}-small",
        "Large": "{{toTagName name}}-large",
        "Block": "{{toTagName name}}-block"
      }
    },
    {
      "name": "kui-outline",
      "description": "Display the button in an outline style",
      "type": "Boolean",
      "defaultValue": "false"
    },
    {
      "name": "kui-disabled",
      "description": "Sets the button in a disabled state",
      "type": "Boolean",
      "defaultValue": "false"
    }
  ],
  "publicAPI": [
    {
      "name": "addClickHandler",
      "description": "Adds a click handler to the button handlers list",
      "params": [
        {
          "name": "handler",
          "type": "function",
          "description": "The handler method to be added"
        }
      ]
    },
    {
      "name": "removeClickHandler",
      "description": "Removes the given handler from the button handlers list",
      "params": [
        {
          "name": "handler",
          "type": "function",
          "description": "The handler method to be removed"
        }
      ]
    }
  ]
}
```

kui-accordion descriptor
```json

```

### how to use the command

```ssh
node kui.js generate component --config PATH_TO_DESCRIPTOR
```

### Folders structure

```text
COMPONENT_NAME/
├── docs/
|   ├── configuration.json
|   ├── example-attributes.html
|   ├── example-basic.html
│   └── example-*.html //one for each attribute
├── _story.js
├── _test.js
├── index.js
├── kui-COMPONENT_NAME.js
├── README.md
├── style.scss
└── template.js
```
npm package: @kotdath_dev/aurocode-darwin-arm64
Description: This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
Latest version: 0.1.1

# Prebuilt package

This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
npm package: @kotdath_dev/aurocode-darwin-x64
Description: This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
Latest version: 0.1.1

# Prebuilt package

This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
npm package: @kotdath_dev/aurocode-linux-arm64
Description: This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
Latest version: 0.1.1

# Prebuilt package

This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
npm package: @kotdath_dev/aurocode-linux-x64
Description: This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
Latest version: 0.1.1

# Prebuilt package

This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
npm package: @kotdath_dev/aurocode-win32-x64
Description: This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
Latest version: 0.1.1

# Prebuilt package

This package contains a platform-specific `aurocode` binary and is installed automatically as an optional dependency of `@kotdath_dev/aurocode`.
npm package: @kotenbu/genshin-calc
Description: Genshin Impact damage calculator — WASM bindings with GOOD format import
Latest version: 0.2.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @kotenbu/genshin-calc

Genshin Impact damage calculator — WASM bindings for the browser.

Built on [genshin-calc](https://crates.io/crates/genshin-calc-core), a Rust-based calculation engine.

## Install

```bash
npm install @kotenbu/genshin-calc
```

## Usage

```js
import init, {
  game_version,
  find_character,
  calculate_damage,
  calculate_transformative,
  calculate_lunar,
  resolve_team_stats,
  import_good,
} from "@kotenbu/genshin-calc";

// Initialize the WASM module first
await init();

// Game data version
console.log(game_version()); // "5.8"

// Look up a character
const diluc = find_character("diluc");
console.log(diluc.name); // "Diluc"

// Calculate damage
const result = calculate_damage(
  {
    character_level: 90,
    stats: {
      hp: 20000,
      atk: 2000,
      def: 800,
      elemental_mastery: 100,
      crit_rate: 0.75,
      crit_dmg: 1.5,
      energy_recharge: 1.2,
      dmg_bonus: 0.466,
    },
    talent_multiplier: 1.76,
    scaling_stat: "Atk",
    damage_type: "Skill",
    element: "Pyro",
    reaction: null,
    reaction_bonus: 0,
    flat_dmg: 0,
  },
  { level: 90, resistance: 0.1, def_reduction: 0 }
);
console.log(result); // { non_crit, crit, average, reaction }
```

## API

### Data Lookup

| Function | Description |
|---|---|
| `game_version()` | Returns the game data version string |
| `find_character(id)` | Find character by ID (e.g. `"hu_tao"`) |
| `find_weapon(id)` | Find weapon by ID (e.g. `"wolfs_gravestone"`) |
| `find_artifact_set(id)` | Find artifact set by ID (e.g. `"crimson_witch"`) |
| `find_enemy(id)` | Find enemy by ID (e.g. `"hilichurl"`) |
| `characters_by_element(el)` | List characters by element (e.g. `"pyro"`) |
| `weapons_by_type(type)` | List weapons by type (e.g. `"claymore"`) |

### Calculation

| Function | Description |
|---|---|
| `calculate_damage(input, enemy)` | Standard damage (ATK/HP/DEF scaling) |
| `calculate_transformative(input, enemy)` | Transformative reactions (overloaded, swirl, etc.) |
| `calculate_lunar(input, enemy)` | Lunar reactions (Nod-Krai crittable reactions) |
| `resolve_team_stats(members, target_index)` | Resolve team buffs into final stats |

### GOOD Format Import

| Function | Description |
|---|---|
| `import_good(json)` | Import GOOD JSON string → `GoodImport` with character builds |

```js
// Import from Genshin Optimizer, Scanner tools, etc.
const goodJson = '{"format":"GOOD","source":"GenshinOptimizer","version":2,...}';
const imported = import_good(goodJson);
console.log(imported.builds); // Array of CharacterBuild objects
console.log(imported.warnings); // Any import warnings
```

## TypeScript

Type definitions for all input/output objects are available at `types.ts`.

```ts
import type { DamageInput, Enemy, DamageResult } from "@kotenbu/genshin-calc/types";
```

## License

MIT
npm package: @kotenbu135/genshin-calc-wasm
Description: WASM bindings for genshin-calc damage calculator
Latest version: 0.5.12

# @kotenbu135/genshin-calc-wasm

Genshin Impact damage calculator — WASM bindings for the browser.

Built on [genshin-calc](https://crates.io/crates/genshin-calc-core), a Rust-based calculation engine.

## Install

```bash
npm install @kotenbu135/genshin-calc-wasm
```

## Usage

```js
import init, {
  game_version,
  find_character,
  calculate_damage,
  calculate_transformative,
  calculate_lunar,
  resolve_team_stats,
  import_good,
} from "@kotenbu135/genshin-calc-wasm";

// Initialize the WASM module first
await init();

// Game data version
console.log(game_version()); // "6.4"

// Look up a character
const diluc = find_character("diluc");
console.log(diluc.name); // "Diluc"

// Calculate damage
const result = calculate_damage(
  {
    character_level: 90,
    stats: {
      hp: 20000,
      atk: 2000,
      def: 800,
      elemental_mastery: 100,
      crit_rate: 0.75,
      crit_dmg: 1.5,
      energy_recharge: 1.2,
      dmg_bonus: 0.466,
    },
    talent_multiplier: 1.76,
    scaling_stat: "Atk",
    damage_type: "Skill",
    element: "Pyro",
    reaction: null,
    reaction_bonus: 0,
    flat_dmg: 0,
  },
  { level: 90, resistance: 0.1, def_reduction: 0 }
);
console.log(result); // { non_crit, crit, average, reaction }
```

## API

### Data Lookup

| Function | Description |
|---|---|
| `game_version()` | Returns the game data version string |
| `find_character(id)` | Find character by ID (e.g. `"hu_tao"`) |
| `find_weapon(id)` | Find weapon by ID (e.g. `"wolfs_gravestone"`) |
| `find_artifact_set(id)` | Find artifact set by ID (e.g. `"crimson_witch"`) |
| `find_enemy(id)` | Find enemy by ID (e.g. `"hilichurl"`) |
| `characters_by_element(el)` | List characters by element (e.g. `"pyro"`) |
| `weapons_by_type(type)` | List weapons by type (e.g. `"claymore"`) |

### Calculation

| Function | Description |
|---|---|
| `calculate_damage(input, enemy)` | Standard damage (ATK/HP/DEF scaling) |
| `calculate_transformative(input, enemy)` | Transformative reactions (overloaded, swirl, etc.) |
| `calculate_lunar(input, enemy)` | Lunar reactions (Nod-Krai crittable reactions) |
| `resolve_team_stats(members, target_index)` | Resolve team buffs into final stats, returns `TeamResolveResult` |
| `apply_team_debuffs(members, target_element)` | Apply pre-resolved team debuffs to enemy |

### GOOD Format Import

| Function | Description |
|---|---|
| `import_good(json)` | Import GOOD JSON string → `GoodImport` with character builds |

```js
// Import from Genshin Optimizer, Scanner tools, etc.
const goodJson = '{"format":"GOOD","source":"GenshinOptimizer","version":2,...}';
const imported = import_good(goodJson);
console.log(imported.builds); // Array of CharacterBuild objects
console.log(imported.warnings); // Any import warnings
```

## TypeScript

Type definitions for all input/output objects are available at `types.ts`.

```ts
import type { DamageInput, Enemy, DamageResult } from "@kotenbu135/genshin-calc-wasm/types";
```

## License

MIT
npm package: @koterion/country_list
Description: A react component for entering mobile numbers
Author: koterion
Latest version: 3.0.0

# React Country List
`country_list` is a React Component for entering mobile numbers with code of choosing country.

## Live demo

All examples on the [demo page](https://koterion.github.io/countryList/)

## Installing

```shell
npm install --save @koterion/country_list
```

## Examples

### Flags image

```css
.cntr-flag {
  background-image: url('@koterion/country_list/dist/img/flags.png')
}
```

### Basic usage

```jsx
import CountryList from '@koterion/country_list';
import '@koterion/country_list/dist/styles.css';

const phone = (<CountryList />);
```

### options

option | type | default | desc |
:--- | :---: | :---: | :--- |
countryAll | array | `[]` | Array of countries iso |
remove | boolean | `false` | If `true` remove countries using `countryAll`
list | boolean | `false` | If `true` create list of country using `countryAll`
flagInInput | boolean | `false` | If `true` add flags to current selector
flagInSelect | boolean | `false` | If `true`  add flags to dropdown
[geo](#geo) | object | | Use for checked country by ip |
closestForm | string | `form` | Closest form or selector |
hasPhone | boolean | `false` | Using your custom phone input from `inputPhoneName` |
inputCountryName | string | `country` | Name for `input` with country name (auto create `type=hidden`)
inputPhoneName | string | `phone` | Name for `input` with phone number
search | boolean | `false` | If `true` create input with name from `inputCountryName`, live search in country list
select | boolean | `false` | If `true` create list like select
required | boolean | `false` | If `true` add required for input
[countries](#countries) | json |  | Countries in json format
                 
### countryAll

Use with `delete` or `list`

Example:

```jsx
<CountryList delete countryAll={['ua', 'us']} />
<CountryList list countryAll={['ua', 'us']} />
```

### geo
For define country by ip we use service [Sypexgeo](https://api.sypexgeo.net/)

You can rewrite method, it option `geo` by default it's object with this parameters: 
```js
{
  url: 'https://api.sypexgeo.net/',
  getIso: response => response.country.iso
}
```
`url` - api for service, `getIso` - return country iso

Also you can use `current` with current country in ISO format. Example:
```jsx
<CountryList current='ua' />
```

### countries
Format for custom countries

```json
{
  "name": "Afghanistan",
  "iso": "af",
  "code": "93"
},
{
  "name": "Albania",
  "iso": "al",
  "code": "355"
},
```
npm package: @koterion/page_builder
Description: Plugin for create page structure
Author: koterion
Latest version: 1.2.2

# Page Builder
plugin for create pages structure using wysiwyg (TinyMCE). [Examples](https://koterion.github.io/pageBuilder/)

## install

```shell
npm install @koterion/page_builder
```

## use

Include [TinyMCE](https://www.tiny.cloud/docs/quick-start/#step1includethetinymcescript)

```html
<script src="https://cloud.tinymce.com/5/tinymce.min.js?apiKey=your_API_key"></script>
```

Include [Material Icons](https://material.io/resources/icons/?style=baseline)

```html
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
```

### css
```css
@import url('~@koterion/page_builder/dist/css/pageBuilder.css');
```

or (if use Postcss import)

```css
@import url('@koterion/page_builder');
```

### js
```js
import '@koterion/page_builder'

pageBuilder.create(selector, options)
```

### html
```html
<div class="YourUniqueClass" data-yourData="dataInfo">HTML</div>
```

or

```html
<textarea class="YourUniqueClass" name="YourUniqueName" data-yourData="dataInfo">HTML</textarea>
```

## Options

option | type | desc |
:--- | :---: | :--- |
[tinymceSettings](#tinymce) | object | TinyMCE settings |
height| string | Workplace height|
[rowClasses](#rowclasses) | string | Row class names. Can use from html data.|
[colClasses](#colClasses) | string | Col class names. Can use from html data.|
edit | boolean | Turn on/off editing blocks. Can use from html data.|
draggable | boolean | Turn on/off dragged cols & row

You can use option in dataset like:

```html
<div data-height="500px">HTML</div>
```

##Methods

method | desc |
:--- | :--- |
`pageBuilder.create(selector, options)` | Create workplace |
`pageBuilder.getContent(id)` | Get content of current by `id` field |
`pageBuilder.rebuild(id)` | Rebuild current by `id` field |

## Examples:

### use:

```js
import '@koterion/page_builder'

pageBuilder.create(document.querySelector('.textarea'))
```
### tinymce
Initialize TinyMCE. Use `className` for selector
```js
{
  tinymceSettings: (className) => {
    tinymce.init({selector: className})
  }
}
```

### rowClasses
Use in current format, separator ', '
```js
{
  rowClasses: 'first, second, third'
}
```

or

```html
<div data-rowClasses="first, second, third">HTML</div>
```

### colClasses
Use in current format, separator ', '
```js
{
  colClasses: 'full, text'
}
```

or

```html
<div data-colClasses="full, text">HTML</div>
```