open-index/open-npm huggingface dataset:
npm package: @guildplanner.pro/electron-next
Description: Build Electron apps using Next.js
Author: Shahriyar Imanov
Latest version: 1.0.3

# electron-next

> Originally created by _Leo Lamprecht_, forked from [v3.1.4](https://github.com/leo/electron-next).

This package lets you use Next.js for building the renderer of your Electron apps!

* In production, it ensures that the `file://` protocol (which Electron uses to load your static assets in the renderer process) works properly with your Next.js bundle (generated by `next export`).
* While **developing**, it takes care of the whole flow required for building the renderer code.

## Usage

1. Install: `npm i @guildplanner.pro/electron-next`

2. In _Main_ code of your Electron app: 

   ```typescript
   import prepareRenderer from '@guildplanner.pro/electron-next';
   
   app.on('ready', async () => {
        // ...
        await prepareRenderer('./renderer');
        // ...
   });
   ```

3. See [Next.js example](https://github.com/vercel/next.js/tree/canary/examples/with-electron-typescript).

## Parameters

```typescript
await prepareRenderer(<path>, <port>)
```

* `<path>` (`string|object`): The path to the directory containing the renderer (relative to the app's root directory). If the paths for `development` and `production` aren't the same, this can be an object holding a development and a production key with their respective paths.
* `<port>` (`number`, optional, defaults to `8000`): Used for running Next.js in development.
npm package: @guildsworn/priceresolver-contracts
Description: Price resolvers contracts for eldfal
Author: guildsworn
Latest version: 1.0.18

# guildsworn-priceresolver-contracts

# Installing the package
```shell
npm install @guildsworn/priceresolver-contracts
```
or via yarn
```shell
yarn add @guildsworn/priceresolver-contracts
```

# Compiling, building
Try running some of the following tasks:

```shell
yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docs
```
## Updating interfaces
```shell
npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/
```

# Smart Contract deploy
## Before deploy
1. Create `.env` file in root folder or copy and check `.env.example`
Extra env variables:
`STABLE_TOKEN_ADDRESS` for general, or use `STABLE_TOKEN_ADDRESS_[ChainId]` for network specific settings
`ELDFALL_TOKEN_ADDRESS` for general, or use `ELDFALL_TOKEN_ADDRESS_[ChainId]` for network specific settings

### [Deploy parameters](https://github.com/wighawag/hardhat-deploy#1-hardhat-deploy)

## Deploy on hardhat local network, reset deployment if exists and generate deployment files
```shell
npx hardhat deploy --write true --reset

npx hardhat deploy --write true --reset --tags oracle
```

## Deploy on Oasis Sapphire Testnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_testnet --tags oracle
```

## Deploy on Oasis Sapphire Mestnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_mainnet
```

## Verify contract for testnet
```shell
yarn hardhat --network oasis_sapphire_testnet sourcify
```

## Verify contract for mainnet
```shell
yarn hardhat --network oasis_sapphire_mainnet sourcify
```

# Publish the NPM package
```shell
yarn publish
```
npm package: @guildsworn/stores-contracts
Description: Stores smart contracts for eldfal
Author: guildsworn
Latest version: 1.0.20

# guildsworn-stores-contracts


## Installing the package
```shell
npm install @guildsworn/stores-contracts
```
or via yarn
```shell
yarn add @guildsworn/stores-contracts
```

# Compiling, building
Try running some of the following tasks:

```shell
yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docs
```
## Updating interfaces
```shell
npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/
```

# Smart Contract deploy
## Before deploy
1. Create `.env` file in root folder or copy and check `.env.example`

Available extra env variables:
- `STABLE_TOKEN_ADDRESS` for general, or use `STABLE_TOKEN_ADDRESS_[ChainId]` for network specific settings
- `ELDFALL_TOKEN_ADDRESS` for general, or use `ELDFALL_TOKEN_ADDRESS_[ChainId]` for network specific settings
- `CHARACTER_NFT_ADDRESS` for general, or use `CHARACTER_NFT_ADDRESS_[ChainId]` for network specific settings
- `PRICE_RESOLVER_ORACLE_ADDRESS` for general, or use `PRICE_RESOLVER_ORACLE_ADDRESS_[ChainId]` for network specific settings
- `CHARACTER_STORE_ADDRESS` for general, or use `CHARACTER_STORE_ADDRESS_[ChainId]` for network specific settings


### [Deploy parameters](https://github.com/wighawag/hardhat-deploy#1-hardhat-deploy)

## Deploy on hardhat local network, reset deployment if exists and generate deployment files
```shell
npx hardhat deploy --write true --reset
```

## Deploy on Oasis Sapphire Testnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_testnet
```

## Deploy on Oasis Sapphire Mestnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_mainnet
```

## Verify contract for testnet
```shell
yarn hardhat --network oasis_sapphire_testnet sourcify
```

## Verify contract for mainnet
```shell
yarn hardhat --network oasis_sapphire_mainnet sourcify
```

# Publish the NPM package
```shell
yarn publish
```
npm package: @guildsworn/token-contracts
Description: Token smart contracts for eldfal
Author: guildsworn
Latest version: 1.0.18

# guildsworn-token-contracts

## Installing the package
```shell
npm install @guildsworn/token-contracts
```
or via yarn
```shell
yarn add @guildsworn/token-contracts
```

# Compiling, building
Try running some of the following tasks:

```shell
yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docs
```
## Updating interfaces
```shell
npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/
```

# Smart Contract deploy
## Before deploy
1. Create `.env` file in root folder or copy and check `.env.example`

### [Deploy parameters](https://github.com/wighawag/hardhat-deploy#1-hardhat-deploy)

## Deploy on hardhat local network, reset deployment if exists and generate deployment files
```shell
npx hardhat deploy --write true --reset
```

## Deploy on Oasis Sapphire Testnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_testnet
```

## Deploy on Oasis Sapphire Mestnet, generate deployment files
```shell
npx hardhat deploy --write true --network oasis_sapphire_mainnet
```

## Verify contract for testnet
```shell
yarn hardhat --network oasis_sapphire_testnet sourcify
```

## Verify contract for mainnet
```shell
yarn hardhat --network oasis_sapphire_mainnet sourcify
```

# Publish the NPM package
```shell
yarn publish
```
npm package: @guildxyz/logging
Description: Logging util for Guild.xyz's backend infrastructure.
Latest version: 1.0.3

# Guild Logging

Logging util for Guild.xyz's backend infrastructure.

## Installation

```
npm install @guildxyz/logging
```

## Example usage

```typescript
import GuildLogger from "@guildxyz/logging";

const guildLogger = new GuildLogger({
  correlator: myCorrelator, // correlation id provider
  json: true, // format logs as json
  level: "debug", // log level
  silent: false, // hide all logs
  pretty: true, // prettify json logs / colorize text logs
});

guildLogger.info("user joined guild", {
  params: { connect: false },
  user: { address: "0x123" },
  guild: { id: 1985 },
  role: [{ id: 1904 }, { id: 1905 }],
  error: platformError, // the key has to be 'error' to log it properly
});
```

### output

```
{
  params: { connect: false },
  user: { address: '0x123' },
  guild: { id: 1985 },
  role: [ { id: 1904 }, { id: 1905 } ],
  myMetadata: { myKey: 'myValue' },
  correlationId: '4fb94571-7f97-4fe0-a1b8-eb82994fb754',
  function: 'Object.<anonymous>',
  file: '/home/user/guild-logging/example.ts:12:13',
  level: 'info',
  message: 'user joined guild',
  timestamp: '2023-04-20 14:47:05',
  error: {name: 'PlatformError', message: 'add role failed', stack: ...}
}
```
npm package: @guilherme4774/svg-avatar-lib
Description: Gerador determinístico de avatares SVG a partir de hash/seed
Author: Guilherme Cesar de Brito
Latest version: 1.0.2

# @guilherme4774/svg-avatar-lib

🎨 Gerador determinístico de avatares SVG a partir de hash/seed.

Cria avatares únicos e consistentes para usuários, emails, IDs ou qualquer string de entrada usando algoritmos de hash e RNG determinístico.

## Instalação

```bash
npm install @guilherme4774/svg-avatar-lib
```

## Uso rápido

```js
import { generateAvatar } from "@guilherme4774/svg-avatar-lib";

// Gerar avatar a partir de uma seed
const { svg, seed, blob } = generateAvatar("email@example.com", {
  size: 300,
  style: "blob"
});

console.log(svg); // String SVG pronta para usar
```

## API

### `generateAvatar(seed?, options?)`

Gera um avatar SVG determinístico.

**Parâmetros:**

- `seed` (string, opcional): Entrada para o gerador (email, ID, nome, etc). Se não fornecido, gera um aleatório.
- `options` (object, opcional):
  - `size` (number): Tamanho do avatar em pixels. Default: `200`
  - `style` (string): Estilo visual: `"blob"`, `"shape"`, `"icon"`, `"avatar"`. Default: `"blob"`
  - `colors` (string[]): Array de cores hex. Default: `PRESET_COLORS`
  - `animated` (boolean): Suporte a animações. Default: `false`

**Retorna:**

```js
{
  svg: string,      // String SVG completa
  seed: string,     // Seed processada
  blob: Blob        // Blob para download/upload
}
```

## Exemplos

### Estilo Blob (padrão)

```js
const { svg } = generateAvatar("user123", { style: "blob", size: 300 });
document.getElementById("avatar").innerHTML = svg;
```

### Estilo Shape (polígonos)

```js
const { svg } = generateAvatar("john@example.com", { 
  style: "shape", 
  size: 200 
});
```

### Estilo Icon (círculos)

```js
const { svg, blob } = generateAvatar("avatar-id-456", { 
  style: "icon", 
  size: 150 
});
```

### Cores personalizadas

```js
const customColors = ["#FF6B6B", "#4ECDC4", "#45B7D1", "#FFE66D"];
const { svg } = generateAvatar("custom", { 
  colors: customColors,
  size: 250
});
```

### Exportar como PNG

```js
const { svg, blob } = generateAvatar("user@example.com");

// Converter para PNG
const canvas = document.createElement("canvas");
canvas.width = 300;
canvas.height = 300;
const ctx = canvas.getContext("2d");
const img = new Image();

img.onload = () => {
  ctx.drawImage(img, 0, 0);
  canvas.toBlob(pngBlob => {
    const link = document.createElement("a");
    link.href = URL.createObjectURL(pngBlob);
    link.download = "avatar.png";
    link.click();
  });
};

img.src = `data:image/svg+xml;base64,${btoa(svg)}`;
```

## Deterministicidade

A mesma seed **sempre** gera o mesmo avatar:

```js
const result1 = generateAvatar("alice@example.com");
const result2 = generateAvatar("alice@example.com");

console.log(result1.svg === result2.svg); // true
```

Isso
npm package: @guilhermeabreudev/capacitor-system-sounds
Description: Listagem de sistema padrão do sistema
Author: Guilherme Abreu
Latest version: 1.0.0

# @guilhermeabreudev/capacitor-system-sounds

Listagem de sistema padrão do sistema

## Install

```bash
npm install @guilhermeabreudev/capacitor-system-sounds
npx cap sync
```

## API

<docgen-index>

* [`getSystemSounds(...)`](#getsystemsounds)
* [`salveSoundLocation(...)`](#salvesoundlocation)
* [Enums](#enums)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### getSystemSounds(...)

```typescript
getSystemSounds(configSystemSound: { type: SystemSoundsType; }) => Promise<{ sounds: { title: string; uri: string; }[]; }>
```

| Param                   | Type                                                                     |
| ----------------------- | ------------------------------------------------------------------------ |
| **`configSystemSound`** | <code>{ type: <a href="#systemsoundstype">SystemSoundsType</a>; }</code> |

**Returns:** <code>Promise&lt;{ sounds: { title: string; uri: string; }[]; }&gt;</code>

--------------------


### salveSoundLocation(...)

```typescript
salveSoundLocation(systemSound: { uri: string; name: string; }) => Promise<{ filePath: string; }>
```

| Param             | Type                                        |
| ----------------- | ------------------------------------------- |
| **`systemSound`** | <code>{ uri: string; name: string; }</code> |

**Returns:** <code>Promise&lt;{ filePath: string; }&gt;</code>

--------------------


### Enums


#### SystemSoundsType

| Members            | Value          |
| ------------------ | -------------- |
| **`RINGTONE`**     | <code>1</code> |
| **`NOTIFICATION`** | <code>2</code> |
| **`ALARM`**        | <code>4</code> |
| **`ALL`**          | <code>7</code> |

</docgen-api>