open-index/open-npm huggingface dataset:
npm package: @rdna/dithwather-core
Description: Pure JS dithering engine with classic algorithms
Latest version: 0.0.1

# @dithwather/core

Pure JavaScript dithering engine with Bayer ordered dithering, gradient rendering, and color utilities.

## Install

```bash
npm install @dithwather/core
```

## Quick Start

### Render a dithered gradient to ImageData

```js
import { renderGradientDither, resolveGradient } from '@dithwather/core'

const gradient = resolveGradient(
  { type: 'linear', stops: [{ color: '#000000' }, { color: '#ffffff' }] },
  undefined,
  undefined
)

const imageData = renderGradientDither({
  gradient,
  algorithm: 'bayer4x4',
  width: 256,
  height: 256,
})

// imageData is a standard ImageData you can draw onto a <canvas>
```

### Render a dithered gradient to a data URL

```js
import { renderGradientToDataURL, resolveGradient } from '@dithwather/core'

const gradient = resolveGradient('linear', ['#000000', '#ffffff'], 90)

const dataURL = renderGradientToDataURL({
  gradient,
  algorithm: 'bayer8x8',
  width: 512,
  height: 256,
  pixelScale: 2,
})

document.getElementById('img').src = dataURL
```

## Exports

### Algorithms

| Export | Description |
| --- | --- |
| `applyDither` | Apply dithering to pixel data (auto-selects algorithm) |
| `applyBayerDither` | Apply Bayer ordered dithering |
| `applyFloydSteinbergDither` | Apply Floyd-Steinberg error diffusion |
| `getBayerMatrix` | Get a Bayer threshold matrix by size |
| `isOrderedAlgorithm` | Type guard for ordered algorithm strings |
| `BAYER_2X2`, `BAYER_4X4`, `BAYER_8X8` | Pre-computed Bayer matrices |

### Gradients

| Export | Description |
| --- | --- |
| `resolveGradient` | Build a `ResolvedGradient` from shorthand or full config |
| `resolveStops` | Auto-distribute stop positions |
| `renderGradientDither` | Render dithered gradient to `ImageData` |
| `renderGradientToDataURL` | Render dithered gradient to a data URL string |
| `gradientValue` | Unified distance function (dispatches by type) |
| `linearGradientValue`, `radialGradientValue`, ... | Per-type distance functions |
| `findStopSegment` | Find which two stops a gradient value falls between |

### Tiles

| Export | Description |
| --- | --- |
| `getTileDataURL` | Generate a repeating Bayer tile as a data URL |
| `getTileBits` | Get raw tile bit pattern |
| `getTileSize` | Get tile pixel dimensions |
| `thresholdToLevel` | Map a 0-1 threshold to a discrete tile level |
| `clearTileCache` | Free cached tile data URLs |

### Utils

| Export | Description |
| --- | --- |
| `hexToRgb` / `rgbToHex` | Convert between hex strings and RGB objects |
| `luminance` | Relative luminance of an RGB color |
| `lerpColor` | Linearly interpolate between two RGB colors |
| `adjustBrightness` | Shift brightness of an RGB color |
| `adjustContrast` | Adjust contrast of an RGB color |

## License

MIT
npm package: @rdnf-magiba/expo-face-recognition
Description: Face recognition
Author: rdnf-magiba
Latest version: 0.1.17

# @rdnf-magiba/expo-face-recognition

A powerful Face Recognition library for Expo and React Native, utilizing **ML Kit** for face detection and **TensorFlow Lite** for face recognition/embeddings.

This module provides a camera view that detects faces in real-time and returns their embeddings, allowing you to build Face Attendance, Secure Login, or User Verification systems.

## Features

- 🚀 **Real-time Face Detection**: Uses Google's ML Kit for lightning-fast face bounds detection.
- 🧠 **On-device Recognition**: Generates 512-d embeddings using FaceNet/MobileFaceNet TFLite models.
- 📸 **Live Camera Preview**: Native Android camera view integration.
- ⚡ **Performance**: Optimized for smooth 30fps detection on modern mobile devices.
- 🤖 **Platform**: Android Only (iOS support coming soon).

## Installation

```bash
npm install @rdnf-magiba/expo-face-recognition
```

## Configuration

### Android Manual Setup

This library currently does not include an Expo Config Plugin. You may need to manually configure permissions in your `android/app/src/main/AndroidManifest.xml` if not using standard Expo permissions.

**Permissions**

Ensure your app requests Camera permissions:

**Android `AndroidManifest.xml`**
```xml
<uses-permission android:name="android.permission.CAMERA" />
```

## Usage

Import the `ExpoFaceRecognitionView` and use it in your component.

```tsx
import { ExpoFaceRecognitionView } from '@rdnf-magiba/expo-face-recognition';
import { StyleSheet, View, Text } from 'react-native';

export default function FaceAuthScreen() {
  
  const handleFacesDetected = (event: any) => {
    // nativeEvent contains:
    // - faces: Array of face objects (bounds, etc.)
    // - recognition: Embedding data (if enabled)
    console.log("Detected Faces:", event.nativeEvent);
  };

  return (
    <View style={styles.container}>
      <ExpoFaceRecognitionView 
        style={styles.camera}
        onFaceDetected={handleFacesDetected}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  camera: {
    flex: 1,
    width: '100%',
  },
});
```

## API Reference

### `ExpoFaceRecognitionView`

A React component that renders the camera view and performs face recognition.

| Prop | Type | Description |
|------|------|-------------|
| `onFaceDetected` | `function` | Callback invoked when a face is detected. Returns face bounds and verification data. |
| `style` | `ViewStyle` | Styles for the camera view container. |

## Contributing

Contributions are welcome!

1. Clone the repo
2. Install dependencies: `npm install`
3. Run the example app: `npm run open:android` or `npm run open:ios`

## License

MIT
npm package: @rdohms/github-label-syncer
Description: CLI Command that creates GitHub Labels from a set of configuration
Latest version: 0.2.1

# GitHub Label Syncer

The goal of this project is to make it simple for a standard set of labels to be included in every github project. Based on a configuration file it automatically creates, replaces, removes and updates existing libraries to match the desired output.

# Usage

## CLI
This library can be run from the command line, with a few parameters and a configuration file.

To see detailed instructions run:
`$ ./cli.js -h`

Example off a call:
`$ ./cli.js -t XXXX -c mock/sample.config.json rdohms/my-repo`

## Via code

```js
const GithubLabelSyncer = require('./github-label-syncer');
const syncer = new GithubLabelSyncer();
const operations = syncer.run(
      repository,
      token,
      labelConfiguration,
      dryRun
    );
```

# Configuration

This an example configuration file:

```json
{
    "labels": [{
        "name": "BC-break",
        "replaces": [],
        "color": "6a1993",
        "description": "This issue or pull request breaks backwards compatibility"
    }, {
        "name": "Bug",
        "replaces": ["fault", "defect"],
        "color": "b60205",
        "description": "Something isn't working"
    }]
}
```