open-index/open-npm huggingface dataset:
npm package: @mediaeventservices/jest-environment-jsdom-external-scripts
Description: >  A Jest environment which loads and runs external scripts
Author: Christian Becker
Latest version: 21.2.2

# jest-environment-jsdom-external-scripts

>  A Jest environment which loads and runs external scripts

## Install

```
$ npm install --save-dev @mediaeventservices/jest-environment-jsdom-external-scripts
```

## Usage

In `package.json`:

```
"scripts": {
  "test": "jest prefix --env @mediaeventservices/jest-environment-jsdom-external-scripts"
},
```
## Motivation

Loading and execution of external scripts is not enabled by default in `JSDom`,
and `Jest` [currently does not expose a way to control this setting](https://github.com/facebook/jest/issues/2460).

This environment adds the following two `JSDom` config options on initialization:
{
    runScripts: "dangerously",
    resources: "usable"
}

The build script is as close as possible from the one of Facebook's [Jest repo](https://github.com/facebook/jest).
More on Jest environments: [http://facebook.github.io/jest/docs/configuration.html#testenvironment-string](http://facebook.github.io/jest/docs/configuration.html#testenvironment-string

## Credits

Based on [jest-environment-jsdom-latest](https://github.com/dmnsgn/jest-environment-jsdom-latest) by [Damien Seguin](https://github.com/dmnsgn)

## License

MIT © [MediaEvent Services GmbH & Co. KG](https://github.com/mes), originally [Damien Seguin](https://github.com/dmnsgn)
npm package: @mediafish/amf0
Description: A library to read/write AMF0 binary format
Author: Kuu Miyazaki
Latest version: 0.0.5

[![Build Status](https://travis-ci.org/media-fish/amf0.svg?branch=master)](https://travis-ci.org/media-fish/amf0)
[![Coverage Status](https://coveralls.io/repos/github/media-fish/amf0/badge.svg?branch=master)](https://coveralls.io/github/media-fish/amf0?branch=master)
[![Dependency Status](https://david-dm.org/media-fish/amf0.svg)](https://david-dm.org/media-fish/amf0)
[![Development Dependency Status](https://david-dm.org/media-fish/amf0/dev-status.svg)](https://david-dm.org/media-fish/amf0#info=devDependencies)
[![Known Vulnerabilities](https://snyk.io/test/github/media-fish/amf0/badge.svg)](https://snyk.io/test/github/media-fish/amf0)
[![npm Downloads](https://img.shields.io/npm/dw/@mediafish/amf0.svg?style=flat-square)](https://npmjs.com/@mediafish/amf0)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

# amf0

A library to read/write AMF0 binary format

## Install
[![NPM](https://nodei.co/npm/@mediafish/amf0.png?mini=true)](https://nodei.co/npm/@mediafish/amf0/)

## Usage

```js
const {readValue, writeValue} = require('@mediafish/amf0');


const buffer = Buffer.from([0xFF, 0xFF, 0xFF, 0x61, 0x62, 0x63]);

// Read AMF0
let offset, value, array = [];
while(offset < buffer.length) {
  [offset, value] = readValue(buffer, offset);
  console.log(JSON.stringify(value, null, 4);
  array.push(value);
}

// Write AMF0
offset = 0;
for (const item of array) {
  // First, pass null instead of a buffer to detect how many bytes are needed
  offset = writeValue(null, offset, item);
}

// And then alloc a buff
const dest = Buffer.alloc(offset);
for (const item of array) {
  // Write data actually to the buffer
  offset = writeValue(dest, offset, item);
}

```

## API

### `readValue(buffer, offset)`
Read data from the buffer

#### params
| Name     | Type    | Required | Default | Description   |
| -------- | ------- | -------- | ------- | ------------- |
| `buffer` | `Buffer` | Yes | N/A | The buffer from which the data is read |
| `offset` | number  | Yes      | N/A     | An integer to specify the position within the buffer |

#### return value
An array containing the following pair of values
| Index | Type   | Description  |
| ----- | ------ | ------------ |
| [0]   | number | An integer to indicate the position from which the next data should be read |
| [1]   | any | The read value |

### `writeValue(buffer, offset, value)`
Write data to the buffer

#### params
| Name     | Type    | Required | Default | Description   |
| -------- | ------- | -------- | ------- | ------------- |
| `buffer` | `Buffer` | Yes | N/A | The buffer to which the data is written |
| `offset` | number  | Yes      | N/A     | An integer to specify the position within the buffer |
| `value`  | any  | Yes      | N/A     | The data to be written to the buffer |

#### return value
An integer to indicate the position from which the next data should be read
npm package: @mediafox/react
Description: React hooks for MediaFox media player
Latest version: 1.2.14

# @mediafox/react

React hooks for [MediaFox](https://github.com/wiedymi/mediafox) Media Player.

## Installation

```bash
npm install @mediafox/react @mediafox/core
# or
bun add @mediafox/react @mediafox/core
# or
yarn add @mediafox/react @mediafox/core
```

## Usage

### Basic Example

```tsx
import { useRef, useEffect } from 'react';
import { useMediaFox } from '@mediafox/react';

function VideoPlayer() {
  const canvasRef = useRef<HTMLCanvasElement>(null);
  const { state, play, pause, load } = useMediaFox({
    renderTarget: canvasRef.current,
    onError: (error) => console.error('Player error:', error),
  });

  useEffect(() => {
    load('/path/to/video.mp4');
  }, [load]);

  return (
    <div>
      <canvas ref={canvasRef} />
      <div>
        <button onClick={play} disabled={!state?.canPlay}>
          Play
        </button>
        <button onClick={pause}>Pause</button>
        <p>
          {state?.currentTime.toFixed(2)}s / {state?.duration.toFixed(2)}s
        </p>
      </div>
    </div>
  );
}
```

### With Event Handlers

```tsx
import { useMediaFox } from '@mediafox/react';

function VideoPlayer() {
  const canvasRef = useRef<HTMLCanvasElement>(null);
  const { state, play, pause, seek, load } = useMediaFox({
    renderTarget: canvasRef.current,
    volume: 0.8,
    onPlay: () => console.log('Playing'),
    onPause: () => console.log('Paused'),
    onEnded: () => console.log('Ended'),
    onTimeUpdate: ({ currentTime }) => console.log('Time:', currentTime),
  });

  // ... rest of component
}
```

## API

### `useMediaFox(options?)`

Returns an object with:

- `player` - The MediaFox instance (or null if not initialized)
- `state` - Current player state (reactive)
- `load(source, options?)` - Load a media source
- `play()` - Start playback
- `pause()` - Pause playback
- `seek(time, options?)` - Seek to time in seconds
- `stop()` - Stop playback and reset to start
- `screenshot(options?)` - Capture current frame
- `setRenderTarget(canvas)` - Update render target

### Options

All `PlayerOptions` from `@mediafox/core` plus event handlers:

- `onLoadStart`, `onLoadedMetadata`, `onLoadedData`
- `onCanPlay`, `onCanPlayThrough`
- `onPlay`, `onPause`, `onPlaying`, `onEnded`
- `onTimeUpdate`, `onDurationChange`
- `onVolumeChange`, `onRateChange`
- `onSeeking`, `onSeeked`, `onWaiting`
- `onProgress`, `onError`, `onWarning`
- `onTrackChange`, `onStateChange`

## Features

- ✅ Automatic cleanup on unmount
- ✅ Optimized with `useSyncExternalStore` for React 18+
- ✅ SSR safe (lazy loads MediaFox)
- ✅ Fully typed with TypeScript
- ✅ Framework-agnostic core

## License

MIT
npm package: @mediagato/modelreins-worker
Description: ModelReins AI workforce worker daemon â€” connect any AI tool to your ModelReins dashboard
Author: MEDiAGATO
Latest version: 1.0.9
Deprecated: renamed to modelreins-worker — install with 'npm install -g modelreins-worker'

# @mediagato/modelreins-worker

AI workforce worker daemon for [ModelReins](https://modelreins.com) — connect any AI tool to your dashboard.

## Quick Start

```bash
export MODELREINS_URL=https://app.modelreins.com
export MODELREINS_TOKEN=your-token-here
export MODELREINS_WORKER=my-worker
npx @mediagato/modelreins-worker
```

## Supported Providers

- **Claude Code** — `MODELREINS_PROVIDER=claude`
- **Codex** — `MODELREINS_PROVIDER=codex`
- **Aider** — `MODELREINS_PROVIDER=aider`
- **Ollama** — `MODELREINS_PROVIDER=ollama`
- **Any CLI tool** — `MODELREINS_PROVIDER=custom MODELREINS_COMMAND=your-tool`

## Documentation

https://modelreins.com/docs/quickstart

## License

MIT
npm package: @mediago/service-runner
Description: A starter for creating a TypeScript package.
Author: caorushizi
Latest version: 0.0.1

# tsdown-starter

A starter for creating a TypeScript package.

## Development

- Install dependencies:

```bash
npm install
```

- Run the unit tests:

```bash
npm run test
```

- Build the library:

```bash
npm run build
```
npm package: @mediahaus/primevue
Description: PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
Author: PrimeTek Informatics
Latest version: 4.3.9-mhfix-0.69

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue)
[![Discord Chat](https://img.shields.io/discord/557940238991753223.svg?color=7289da&label=chat&logo=discord)](https://discord.gg/gzKFYnpmCY)
[![Prime Discussions](https://img.shields.io/github/discussions-search?query=org%3Aprimefaces&logo=github&label=Prime%20Discussions&link=https%3A%2F%2Fgithub.com%2Forgs%2Fprimefaces%2Fdiscussions)](https://github.com/orgs/primefaces/discussions)

[![PrimeVue Hero](https://www.primefaces.org/static/social/primevue-preview.jpg)](https://primevue.org/)

# PrimeVue Website

PrimeVue is a rich set of open source UI Components for Vue. Visit the [PrimeVue website](https://primevue.org/) for interactive demos, comprehensive documentation and additional resources.