open-index/open-npm huggingface dataset:
npm package: @justkd/uidmanager
Description: Generate RFC4122 version 4 compliant unique identifiers and associate them with entities in a `map`. Guarantees the generated identifier is unique compared to all other previously stored keys. Export and restore the map entities to facilitate persistence.
Author: Cadence Holmes, @justkd
Latest version: 1.2.1

# [@justkd/uidmanager](https://github.com/justkd/uidmanager)

![CircleCI](https://img.shields.io/circleci/build/gh/justkd/uidmanager/master?token=2edcfec5c13eaf6d951a8f2939b220cdca74644c&style=for-the-badge&logo=circleci) 

![npm](https://img.shields.io/npm/dw/%40justkd/uidmanager?style=for-the-badge&logo=npm&label=NPM)

Generate RFC4122 version 4 compliant unique identifiers and associate them with entities in a `map`. Guarantees the generated identifier is unique compared to all other previously stored keys. Export and restore the map entities to facilitate persistence. Validates external UIDs for compliance and uniqueness.

## Install

```
npm i @justkd/uidmanager
```
```
yarn add @justkd/uidmanager
```

## Use

```
import { UIDManager } from '@justkd/uidmanager'
import type { UIDManagerInterface } from '@justkd/uidmanager'

const manager: UIDManagerInterface = UIDManager()
const key = 'keys can be anything except null, undefined, or NaN'
const uid = manager.generateUIDFor(key)
```

## Quick Docs

```
/* Validate strings as RFC4122 version 4 compliant unique identifiers. */
validate: (uids: null | string | (string | null)[]) => string[] | null;

/* Generate a unique identifier and associate it with the provided key. */
generateUIDFor: (key: any) => string | null;

/* Retrieve the UID string for the associated object. */
getUIDFor: (key: any) => string | undefined;

/* Retrieve the key for the associated UID string. */
getKeyFor: (uid: string) => any;

/* Check if there is an existing UID for the target object. */
hasUIDFor: (key: any) => boolean;

/* Check if there is an existing key for the target UID. */
hasKeyFor: (uid: string) => boolean;

/*  Retrieve a new array containing all keys held in the map. */
keys: () => any[];

/* Retrieve a new array containing all values (uids) held in the map. */
uids: () => string[];

/* Retrieve a new array containing [key, value] arrays for each entry. */
entries: () => [any, string][];

/* Replace the current map with a new set of entries. */
restore: (entries: [any, string][]) => boolean | null;

/* Manually set a new UID association. */
set: (entry: [any, string]) => boolean | null;

/* Delete a UID association for a given UID string. */
deleteUID: (uid: string) => boolean | null;

/* Delete a UID association for a given key. */
deleteUIDFor: (key: any) => boolean | null;

/* Clear all currently held target:UID associations. */
deleteAll: () => void;

/* Retrieve a reference to the internal map object. */
getMap: () => Map<any, string>;
```
npm package: @justlep/scraper
Description: A simple scraper for HTML web pages
Author: Lennart Pegel
Latest version: 0.0.5

# @justlep/scraper
  [![NPM Version](https://img.shields.io/npm/v/@justlep/scraper.svg)](https://www.npmjs.com/package/@justlep/scraper)
  [![Node.js Version](https://img.shields.io/node/v/@justlep/scraper.svg)]()

A simple scraping helper for HTML web pages,
including markup pre-sanitization / compacting.

Facilitates content scraping by retrieving a website either as raw HTML or parsed as a 
 [cheerio](https://github.com/cheeriojs/cheerio) object, 
allowing for CSS-like content queries. 
Optional start/stop tokens may help reducing memory & CPU usage by processing only relevant HTML fragments in the first place. 
`scraper` can determine page titles, too.

Based on 
* [Cheerio](https://github.com/cheeriojs/cheerio)
* [htmlparser2](https://github.com/fb55/htmlparser2/) 
  (provides fast, reliable parsing even when removing portions of the HTML before processing in order to speed up parsing)


### Installation
```javascript
npm i @justlep/scraper
```

### Usage:

```javascript
import {
  ScraperOpts,
  loadPageAsHtml,
  loadPageAsCheerio, 
  lookupPageTitle} from '@justlep/scraper';

const URL = 'https://foo.bar/baz.html';

const opts = new ScraperOpts(URL)
  .withStartToken('<body', true) // return html starting with & including the "<body" html part   
  .withStopToken('<footer', false) // don't return anything beyond the first footer tag
  .withRequestFrequencyRestriction(false) // don't rate-limit requests to this domain (default is 1 request per 3 sec)
  .withCompact(true) // remove multi-whitespaces and line breaks
  .withUserAgent('Chrome 123')
  .withMaxRedirects(2)
  .withChunkBufferSize(6_000)
  .withHeaders(`
      Cookie: name=value
      X-Token: sometoken
  `)
  .withMaxBytes(2_000_000) // load pages up to 2m only
  .withTimeoutInMillis(5_000)
  .withTransform(s => /class="[^"]+"/g, ''); // remove class attributes for faster parsing

// -------------------------
const html = await loadPageAsHtml(opts);
html.startsWith('<body'); // true

// -------------------------
const $ = await loadPageAsCheerio(opts);
opts.startMeasureScrape();
$.root()[0].firstChild.tagName === 'body'; // true
$('a')[0].attribs.href === '/first/link/url'; // true
opts.stopMeasureScrape();

opts.getTimings(); // {"load": 25, "transform": 0, "toDom": 2, "scrape": 2} 

// -------------------------
let title = await lookupPageTitle('https://github.com/');
title === 'GitHub: Let’s build from here · GitHub'; // true

```

### Limitations / Known issues
* UTF-8 encoding only (assumed fine for 95% of pages)
* using `ScraperOpts.withMaxBytes(x)` may cause a corrupt trailing multibyte char

### Bugs/Issues

[Please report here](https://github.com/justlep/scraper/issues)

## License
[MIT](./LICENSE)
npm package: @justmpm/gpt-banana
Description: CLI for generating images via ChatGPT using browser automation
Author: Koda AI Studio
Latest version: 0.2.3

# GPT Banana CLI

Generate images via ChatGPT (DALL-E) directly from your terminal.

## Installation

```bash
# Clone and install
git clone https://github.com/kodaai/gpt-banana.git
cd gpt-banana
npm install
npm run build

# Install globally
npm link
```

## Usage

```bash
# Login to ChatGPT (first time)
gpt login

# Generate an image
gpt generate "A futuristic logo with neon colors" -o logo.png

# Check status
gpt doctor
```

## Commands

| Command | Description |
|---------|-------------|
| `gpt login` | Login to ChatGPT (opens browser) |
| `gpt generate <prompt> -o <path>` | Generate and save image |
| `gpt doctor` | Check installation status |
| `gpt --help` | Show help |
| `gpt --version` | Show version |

## Examples

```bash
# Simple generation
gpt generate "A cat astronaut in space" -o cat.png

# With path
gpt generate "Modern logo with blue gradient" --output ./assets/logo.png

# Complex prompt
gpt generate "A minimalist app icon for a meditation app, soft purple colors, rounded corners" -o icon.png
```

## Requirements

- **Node.js** >= 18
- **Chrome** browser installed
- **ChatGPT Plus/Pro** subscription (for DALL-E access)

## How It Works

1. **Login**: Opens Chrome, you log in to ChatGPT, session is saved
2. **Generate**: Opens browser with saved session, sends prompt, downloads image
3. **Session persists**: No need to login every time

## Data Storage

- Chrome profile: `~/.gpt-banana/chrome-profile/`
- Session info: `~/.gpt-banana/session.json`

## Troubleshooting

```bash
# Check status
gpt doctor

# If login expired, run again
gpt login

# If browser issues, delete profile and re-login
rm -rf ~/.gpt-banana/chrome-profile
gpt login
```

## License

MIT - Koda AI Studio
npm package: @justmpm/voice-dictator
Description: Ditado por voz global - transcreve o que você fala e digita automaticamente no campo focado. 100% offline, zero dependências.
Author: Koda AI Studio
Latest version: 1.1.0

# Voice Dictator

Ditado por voz global para Windows. Transcreve o que você fala e digita automaticamente no campo de texto que estiver em foco.

**100% offline e gratuito** - usa System.Speech do Windows (nativo, zero dependências npm).

## Instalação

```bash
npm install -g @justmpm/voice-dictator
```

## Primeiro uso

```bash
# Verifica se tudo está pronto (Node.js, idioma pt-BR, microfone)
voice-dictator --setup
```

Se algum pré-requisito falhar, siga as instruções exibidas.

## Uso

```bash
voice-dictator
```

### Controles

| Tecla | Ação |
|-------|------|
| `Space` | Ativar / Pausar ditado |
| `Ctrl+C` | Sair |

### Fluxo de uso

1. Abra o terminal e execute `voice-dictator`
2. Clique no chat/campo de texto onde quer digitar
3. Volte para o terminal e pressione `Space` para ativar
4. Fale - o texto será digitado automaticamente no campo focado
5. Pressione `Space` para pausar quando quiser

## Como funciona

- **System.Speech**: API nativa do Windows para reconhecimento de voz
- **PowerShell**: Digitação automática via clipboard + Ctrl+V (suporta acentuação)
- **Zero dependências**: Não baixa nada, não precisa de internet

## Requisitos

| Requisito | Como verificar |
|-----------|----------------|
| Windows 10/11 | - |
| Node.js >= 24 | `node --version` |
| Português (Brasil) | Configurações > Hora e Idioma > Fala |
| Microfone | Configurações > Sistema > Som > Entrada |

## Troubleshooting

| Problema | Solução |
|----------|---------|
| "Idioma pt-BR não disponível" | Vá em Configurações > Hora e Idioma > Fala > Adicione "Português (Brasil)" |
| "Nenhum microfone disponível" | Verifique se o microfone está conectado e habilitado nas configurações de som |
| Texto não aparece no chat | Clique no campo de texto ANTES de ativar o ditado |
| Qualidade ruim na transcrição | Fale claramente, próximo ao microfone, sem ruído de fundo |

## Licença

MIT - [Koda AI Studio](https://kodaai.app)