open-index/open-npm huggingface dataset:
npm package: @genaiscript/api
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript API

API for the GenAIScript project, which provides a set of endpoints to interact with the GenAIScript service.

- [Documentation](https://microsoft.github.io/genaiscript/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/core
Description: Core package for the GenAIScript project, which provides the foundational libraries and tools to build and execute GenAIScript code.
Latest version: 2.5.1

# GenAIScript Core

Core package for the GenAIScript project, which provides the foundational libraries and tools to build and execute GenAIScript code.

- [Documentation](https://microsoft.github.io/genaiscript/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-ast-grep
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript ast-grep

Friendly wrapper around [ast-grep](https://ast-grep.github.io) for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-ast-grep/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-mdast
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript mdast

Friendly wrapper around mdast, unified, remark parsers for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-mdast/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-mermaid
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript mermaid

Friendly wrapper around [MermaidJS](https://mermaid-js.github.io/mermaid/) for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-mermaid/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-playwright
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript Playwright

Friendly wrapper around the [Playwright](https://playwright.dev/) for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-playwright/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-pyodide
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript Pyodide

Friendly wrapper around the [Pyodide](https://pyodide.org/en/stable/) for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-pyodide/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/plugin-z3
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript Z3

Friendly wrapper around the [Z3 solver](https://github.com/Z3Prover/z3) for the GenAIScript runtime.

- [Documentation](https://microsoft.github.io/genaiscript/runtime/plugin-z3/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genaiscript/runtime
Description: The runtime for GenAIScript, providing the core functionality and APIs for executing scripts.
Author: Microsoft Corporation
Latest version: 2.5.1

# GenAIScript Runtime

Independent runtime for the GenAIScript project, which provides a set of tools and libraries to execute GenAIScript code.

- [Documentation](https://microsoft.github.io/genaiscript/)

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
npm package: @genapi/core
Description: <!-- automd:badges -->
Author: Hairyf
Latest version: 4.1.0

# @genapi/core

<!-- automd:badges -->

[![npm version](https://img.shields.io/npm/v/@genapi/core)](https://npmjs.com/package/@genapi/core)
[![npm downloads](https://img.shields.io/npm/dm/@genapi/core)](https://npm.chart.dev/@genapi/core)

<!-- /automd -->

CLI and config entry for generating TypeScript/JavaScript API code from OpenAPI/Swagger and other inputs.

## Installation

```bash
pnpm add -D @genapi/core @genapi/presets
```

## Usage

Create `genapi.config.ts` or `genapi.config.js` in your project root, then run the `genapi` command.

## API

<!-- automd:jsdocs src=src/index.ts -->

## Core

### `generate(config)`

Runs the GenAPI pipeline for one or more configs. Resolves pipeline by name (e.g. `swag-axios-ts`), then runs config → original → parser → compiler → generate → dest.

**Example:**

```ts
await generate(defineConfig({ preset: 'swag-axios-ts', input: 'openapi.json', output: { main: 'src/api.ts' } }))
await generate([config1, config2])
```

## Inject

### `inject(scope)`

Gets the current pipeline context for the given scope (default: `'default'`). Used inside pipeline steps to read config/graphs.

**Example:**

```ts
const { configRead, interfaces } = inject()
const config = inject('get/user/1')
```

### `absolutePath(_path)`

Resolves a path to an absolute path; relative paths are resolved against cwd().

**Example:**

```ts
absolutePath('./presets/axios') // path.resolve(cwd(), './presets/axios')
absolutePath('/etc/config') // '/etc/config'
```

### `ApiPipeline`

- **Type**: `undefined`
- **Default**: `undefined`

### `context`

- **Type**: `any`
- **Default**: `{}`

### `defineConfig(config)`

Defines GenAPI config for `genapi.config.ts` / `genapi.config.js`. Supports single-service config or multi-service `servers` config.

**Example:**

```ts
export default defineConfig({
  preset: axios.ts,
  input: 'http://example.com/api-docs',
  output: { main: 'src/api/index.ts', type: 'src/api/index.type.ts' },
})
```

### `inPipeline(pipe)`

Resolves a pipeline from a preset name or function. Tries @genapi/presets/{name}, genapi-{name}, then local path.

**Example:**

```ts
const pipeline = await inPipeline('swag-axios-ts')
await pipeline(config)
```

### `provide()`

<!-- /automd -->

## License

[MIT](https://github.com/hairyf/genapi/blob/main/LICENSE)

<!-- automd:with-automd -->

---

_🤖 auto updated with [automd](https://automd.unjs.io)_

<!-- /automd -->
npm package: @genapi/pipeline
Description: <!-- automd:badges -->
Author: Hairyf
Latest version: 4.1.0

# @genapi/pipeline

<!-- automd:badges -->

[![npm version](https://img.shields.io/npm/v/@genapi/pipeline)](https://npmjs.com/package/@genapi/pipeline)
[![npm downloads](https://img.shields.io/npm/dm/@genapi/pipeline)](https://npm.chart.dev/@genapi/pipeline)

<!-- /automd -->

GenAPI pipeline core: config reading, data source fetching, parsing, compilation, generation, and output. Composable for custom generation flows.

## Installation

```bash
pnpm add @genapi/pipeline
```

## API

<!-- automd:jsdocs src=src/index.ts -->

## Pipeline

### `compiler(configRead)`

Compiles graphs to code string: request and typings for each output.

**Example:**

```ts
compiler(configRead)
configRead.outputs.forEach(o => console.log(o.code))
```

### `config(userConfig)`

Normalizes pipeline config: output paths, responseType, baseURL, and builds ConfigRead with inputs/outputs.

**Example:**

```ts
const configRead = config(defineConfig({ input: 'openapi.json', output: { main: 'src/api.ts' } }))
```

### `default(config, original, parser, compiler, generate, dest)`

Builds a GenAPI pipeline from five steps: config → original → parser → compiler → generate → dest.

**Example:**

```ts
const run = pipeline(config, original, parser, compiler, generate, dest)
await run(defineConfig({ input: 'openapi.json', output: { main: 'src/api.ts' } }))
```

### `dest(configRead)`

Writes output files from configRead.outputs (code to path).

**Example:**

```ts
await dest(configRead)
// Writes configRead.outputs[].code to configRead.outputs[].path
```

### `generate(configRead, options?)`

Formats code for each output with Prettier.

**Example:**

```ts
await generate(configRead)
await generate(configRead, { printWidth: 100 })
```

### `original(configRead)`

Fetches source: resolves uri/http/json from configRead.inputs and sets configRead.source. Transforms the source based on parser configuration (wpapi -> swagger2, swagger -> unchanged). Supports YAML source URLs (e.g. .yaml / .yml); uses confbox for parsing (same as undocs).

**Example:**

```ts
await original(configRead)
// configRead.source is set from uri/http/json; wpapi transformed to swagger2 if parser is 'wpapi'
```

### `formatTypescript(code, options?)`

Formats TypeScript/JavaScript code string with Prettier.

**Example:**

```ts
const formatted = await formatTypescript('const x=1')
```

<!-- /automd -->

## License

[MIT](https://github.com/hairyf/genapi/blob/main/LICENSE)

<!-- automd:with-automd -->

---

_🤖 auto updated with [automd](https://automd.unjs.io)_

<!-- /automd -->
npm package: @genapi/presets
Description: <!-- automd:badges -->
Author: Hairyf
Latest version: 4.1.0

# @genapi/presets

<!-- automd:badges -->

[![npm version](https://img.shields.io/npm/v/@genapi/presets)](https://npmjs.com/package/@genapi/presets)
[![npm downloads](https://img.shields.io/npm/dm/@genapi/presets)](https://npm.chart.dev/@genapi/presets)

<!-- /automd -->

Prebuilt HTTP client pipelines (axios, fetch, ky, got, ofetch, uni) with TypeScript/JavaScript generation support.

## Installation

```bash
pnpm add @genapi/presets
```

## API

<!-- automd:jsdocs src=src/index.ts -->

<!-- ⚠️  (jsdocs) (0 , _parser.createParser) is not a function -->

<!-- /automd -->

## License

[MIT](https://github.com/hairyf/genapi/blob/main/LICENSE)

<!-- automd:with-automd -->

---

_🤖 auto updated with [automd](https://automd.unjs.io)_

<!-- /automd -->
npm package: @genapi/shared
Description: <!-- automd:badges -->
Author: Hairyf
Latest version: 4.1.0

# @genapi/shared

<!-- automd:badges -->

[![npm version](https://img.shields.io/npm/v/@genapi/shared)](https://npmjs.com/package/@genapi/shared)
[![npm downloads](https://img.shields.io/npm/dm/@genapi/shared)](https://npm.chart.dev/@genapi/shared)

<!-- /automd -->

Shared types and utilities for GenAPI: config types, AST statement types, inject/provide context, etc.

## Installation

```bash
pnpm add @genapi/shared
```

## API

<!-- automd:jsdocs src=src/index.ts -->

## Inject

### `inject(scope)`

Gets the current pipeline context for the given scope (default: `'default'`). Used inside pipeline steps to read config/graphs.

**Example:**

```ts
const { configRead, interfaces } = inject()
const config = inject('get/user/1')
```

### `ApiPipeline`

- **Type**: `undefined`
- **Default**: `undefined`

### `context`

- **Type**: `any`
- **Default**: `{}`

### `provide()`

<!-- /automd -->

## License

[MIT](https://github.com/hairyf/genapi/blob/main/LICENSE)

<!-- automd:with-automd -->

---

_🤖 auto updated with [automd](https://automd.unjs.io)_

<!-- /automd -->
npm package: @genapi/transform
Description: <!-- automd:badges -->
Author: Hairyf
Latest version: 4.1.0

# @genapi/transform

<!-- automd:badges -->

[![npm version](https://img.shields.io/npm/v/@genapi/transform)](https://npmjs.com/package/@genapi/transform)
[![npm downloads](https://img.shields.io/npm/dm/@genapi/transform)](https://npm.chart.dev/@genapi/transform)

<!-- /automd -->

Spec transforms: Swagger 2 ↔ OpenAPI 3, WordPress REST API → Swagger 2, etc., so the parser works with a unified format.

## Installation

```bash
pnpm add @genapi/transform
```

## API

<!-- automd:jsdocs src=src/index.ts -->

## Transform

### `swagger2ToSwagger3(source)`

Normalizes OpenAPI 3.x to a Swagger 2–like shape (host, basePath, schemes, definitions from components.schemas). Mutates and returns the same object for use with Swagger 2–based tooling.

**Example:**

```ts
const swagger2Like = swagger2ToSwagger3(openApi3Spec)
// swagger2Like.host, basePath, definitions, schemes set from servers/components
```

### `wpapiToSwagger2(source)`

Converts WordPress REST API schema to Swagger 2.0 format.

**Example:**

```ts
const swagger = wpapiToSwagger2({ routes: { '/wp/v2': { namespace: 'wp/v2', endpoints: [...] } } })
// Use with parser or pipeline as OpenAPI 2.0 input
```

### `buildParam(name, method, endpoint, detail)`

Builds a single OpenAPI parameter from WordPress argument definition.

**Example:**

```ts
buildParam('id', 'GET', '/posts/{id}', { type: 'integer' }) // { name: 'id', in: 'path', type: 'integer', ... }
```

### `convertEndpoint(endpoint)`

eslint-disable no-cond-assign

Converts WordPress-style path patterns to Swagger path format.

**Example:**

```ts
convertEndpoint('/wp/v2/posts/(?P<id>[\\d]+)') // '/wp/v2/posts/{id}'
```

### `default`

### Transform

#### `swagger2ToSwagger3(source)`

Normalizes OpenAPI 3.x to a Swagger 2–like shape (host, basePath, schemes, definitions from components.schemas). Mutates and returns the same object for use with Swagger 2–based tooling.

**Example:**

```ts
const swagger2Like = swagger2ToSwagger3(openApi3Spec)
// swagger2Like.host, basePath, definitions, schemes set from servers/components
```

#### `wpapiToSwagger2(source)`

Converts WordPress REST API schema to Swagger 2.0 format.

**Example:**

```ts
const swagger = wpapiToSwagger2({ routes: { '/wp/v2': { namespace: 'wp/v2', endpoints: [...] } } })
// Use with parser or pipeline as OpenAPI 2.0 input
```

### `getParametersFromArgs(endpoint, args, method)`

Builds OpenAPI parameters from WordPress endpoint args.

**Example:**

```ts
getParametersFromArgs('/posts/{id}', { id: { type: 'integer' } }, 'GET')
```

### `getParametersFromEndpoint(endpoint)`

Extracts path parameters from a WordPress-style endpoint pattern.

**Example:**

```ts
getParametersFromEndpoint('/posts/(?P<id>[\\d]+)') // [{ name: 'id', in: 'path', type: 'integer', required: true }]
```

<!-- /automd -->

## License

[MIT](https://github.com/hairyf/genapi/blob/main/LICENSE)

<!-- automd:with-automd -->

---

_🤖 auto updated with [automd](https://automd.unjs.io)_

<!-- /automd -->
npm package: @genario/walterjs
Description: A javascript modern service manager
Author: Sheoak
Latest version: 1.0.0

# Walterjs

Walterjs is a javascript service manager. It has been written for vue framework
(see [vue-walterjs](https://github.com/genario-ai/vue-walterjs#readme)) but can be use with any.


## Install:

```
yarn add @genario/walterjs
```

## Usage

```
import SeviceManager, { importHelper } from '@genario/walterjs'

// importing using vite globEager
const modules = import.meta.globEager('../services/*/index.js')

// services configuration, one key per service
const config = {}
// can be anything, but initially made for passing vue app
const app = {}

// a helper to transform vite auto import into a modules list
const modules = importHelper(modules, config.services.boot)

// start the services
await ServiceManager.bootstrap(modules, app, config)

// we get an object to handle services
const services = ServiceManager.services
```
npm package: @genart-dev/plugin-layout-composition
Description: Advanced composition guide plugin for genart.dev — golden spiral, armature, dynamic symmetry, and more
Author: genart.dev
Latest version: 0.2.0

# @genart-dev/plugin-layout-composition

Advanced composition guide plugin for [genart.dev](https://genart.dev) — classical painting systems, photography overlays, and agent-friendly coordinate tools.

## Guides

| Guide | Description |
|-------|-------------|
| **Golden Spiral** | Quarter-arc spiral in golden rectangles, 4 orientations |
| **Golden Triangle** | Main diagonal + perpendiculars, 2 focal intersections |
| **Harmonic Armature** | 14-line system with "eye" intersections (full/major/reciprocals) |
| **Rabatment** | Square overlays showing compositional core |
| **Safe Margins** | Action-safe, title-safe, broadcast, print-bleed, custom |
| **Flow Path** | S-curve, Z-pattern, C-curve, circular, diagonal with arrows |
| **Musical Ratios** | Albertism — diatessaron, diapente, diapason, double-diatessaron |
| **Dynamic Symmetry** | Root rectangle grids with baroque/sinister diagonals + reciprocals |
| **Phi Grid** | Lines at 1/φ positions (tighter center than thirds) |
| **Diagonal Grid** | Corner-to-midpoint diagonals with center diamond |

All 10 guide types render as `test-renders/composition-guides.png`:

![All 10 composition guides](test-renders/composition-guides.png)

![Composition guide variations](test-renders/composition-guides-variations.png)

Source files: [composition-guides.genart](test-renders/composition-guides.genart) · [composition-guides-variations.genart](test-renders/composition-guides-variations.genart)

## MCP Tools

| Tool | Description |
|------|-------------|
| `add_composition_guide` | Add any of the 10 guide types with property overrides |
| `suggest_focal_points` | Return focal point coordinates (thirds, golden-ratio, armature, phi-grid) |
| `suggest_flow_path` | Return flow path waypoints for a visual goal |
| `clear_composition_guides` | Remove all composition guide layers |

All guides use the `guides:` typeId prefix, so `toggle_guides` and `clear_guides` from `@genart-dev/plugin-layout-guides` work with them too.

## Install

```bash
npm install @genart-dev/plugin-layout-composition
```

## Build

```bash
yarn build    # tsup → CJS + ESM + DTS
yarn test     # vitest
```

## License

MIT
npm package: @genata/shooter
Description: Simple stress load shooter
Latest version: 0.1.0

# @genata/shooter

[![npm (scoped)](https://img.shields.io/npm/v/@genata/shooter.svg)](https://www.npmjs.com/package/@genata/shooter)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@genata/shooter.svg)](https://www.npmjs.com/package/@genata/shooter)

Simple stress load shooter. Sends asynchronous requests with shooting technique.  
Aim it at targets, and shoot them.

## Install

```
$ npm install @genata/shooter
```

## Usage

```js
const Shooter = require("@genata/shooter");
const params = require('./params');

const shooter = new Shooter();

shooter.setError(onError);

shooter.aim(15, 'get', 'https://www.google.com/');
shooter.aim(15, 'post', 'http://localhost:8002/api/v1/account', params.searchAccountParams);

shooter.shoot(afterShoot);

const onError = function (error) {
    if (error.response && error.response.status != '400') {
        return {
            err: error.response.data.error.message
        };
    } else {
        console.log(error);
        return {
            err: error.message
        };
    }
};

const afterShoot = data => {
    const totalResponses = data.length;
    data = data.filter(i => i);
    const grouped = {};
    grouped['totalErrors'] = data.length;
    grouped['totalResponses'] = totalResponses;
    grouped['byMessages'] = data.reduce((memo, next) => {
        if (!memo[next.err]) memo[next.err] = 0;
        if (typeof next.err === 'undefined') {
            console.log(next);
        }
        memo[next.err] += 1;
        return memo;
    }, {});
    console.log(grouped);
};
```

## Api

* `setTimeout(Number)` - in mileseconds
* `setError(fn)` - callback when request returns error(4xx, 5xx HTTP Status codes)
* `setSucecss(fn)` - callback when request returns success(2xx HTTP Status codes)
* `shoot(fn)` - method that performs all "aimed" operations. It accepts optional callback function. After shoot() is performed same instance of `Shooter` can be reused for new aims.