open-index/open-npm huggingface dataset:
npm package: @sejhey/core-web
Description: The SejHey Core Web
Author: Patrik Starck
Latest version: 0.7.0

# SejHey i18n core-web package

This package is wrapped by other SejHey javascript packages.

To learn more about SejHey, visit [SejHey Docs](https://sejhey.com/docs).

---

## License

This project is licensed under the MIT License.
npm package: @sejhey/rest-api-v1-ts
Description: The official REST API to access Sejhey translation management system features programmatically.
Author: Patrik Starck
Latest version: 0.3.1

# SejHey REST API v1 TypeScript SDK

SejHey is a powerful and cost effective alternative to Crowdin, Phrase, Lokalise and other i18n platforms.

This library provides a TypeScript SDK to interact with the SejHey REST API v1, enabling developers to programmatically manage translations, projects, and other resources within the SejHey platform.

## Installation

```bash
npm install @sejhey/rest-api-v1-ts
```

## Usage

```typescript
import { SejheyClient } from '@sejhey/rest-api-v1-ts';

// Initialize the client with your API token
const client = new SejheyClient({
  api_token: 'your-api-token-here'
});

// Use the client to access various services
const projects = await client.projects.getProject('project-id');
const translations = await client.translations.getAllTranslations({
  project_pk: 'project-id',
  pagination: { page: 0, page_size: 10 }
});
```

## Available Services

The SDK provides access to the following services:

- `asyncTasks` - Manage asynchronous tasks
- `download` - Download files and resources
- `fileImports` - Import translation files
- `gitHubIntegration` - GitHub integration management
- `glossary` - Glossary management
- `keys` - Translation key management
- `languages` - Language management
- `members` - Team member management
- `namespaces` - Namespace management
- `ota` - Over-the-air update management
- `projects` - Project management
- `releases` - Release management
- `screenshots` - Screenshot management
- `tags` - Tag management
- `tasks` - Task management
- `translations` - Translation management
- `webhooks` - Webhook management

## Documentation

To see the full API documentation and reference, visit [SejHey Docs](https://sejhey.com/docs/docs/API/sejhey-api).

## License

This project is licensed under the MIT License.
npm package: @sejinjja/promise-pool-kit
Description: A tiny TypeScript toolkit for retry, timeout, and controlled concurrency in async workloads.
Author: sejinjja
Latest version: 0.1.78

# @sejinjja/promise-pool-kit

Lightweight TypeScript utilities for async workloads:

- retry with exponential backoff and jitter
- task-level timeout
- concurrency-limited promise pool
- abort signal support

## Installation

```bash
npm i @sejinjja/promise-pool-kit
```

## Quick Start

```ts
import { runPool } from "@sejinjja/promise-pool-kit";

const urls = [
  "https://api.example.com/a",
  "https://api.example.com/b",
  "https://api.example.com/c"
];

const result = await runPool(
  urls,
  async (url, { signal }) => {
    const response = await fetch(url, { signal });
    if (!response.ok) throw new Error(`Request failed: ${response.status}`);
    return response.json();
  },
  {
    concurrency: 4,
    timeoutMs: 5000,
    retry: {
      retries: 2,
      minDelayMs: 200,
      maxDelayMs: 2000,
      jitter: "full"
    }
  }
);

if (result.hasErrors) {
  console.error(result.rejected);
} else {
  console.log(result.fulfilled.map((item) => item.value));
}
```

## API

### `retry(operation, options?)`

Retry a single async operation.

```ts
import { retry } from "@sejinjja/promise-pool-kit";

const token = await retry(
  async (attempt) => {
    const response = await fetch("https://example.com/token");
    if (!response.ok) throw new Error(`Failed attempt ${attempt}`);
    return response.text();
  },
  {
    retries: 3,
    minDelayMs: 100,
    maxDelayMs: 2000,
    jitter: "full",
    timeoutMs: 3000
  }
);
```

### `runPool(inputs, worker, options?)`

Run tasks with controlled concurrency.

- `concurrency` default: `5`
- `stopOnError` default: `false`
- `timeoutMs` applies per task attempt
- `retry` applies per task
- `onProgress` receives current summary and last settled task

### `assertPoolSuccess(result)`

Throw `AggregateError` when `runPool` contains rejected tasks.

## Error Types

- `PoolAbortedError`
- `TaskTimeoutError`

## Local Development

```bash
npm install
npm run check
```

`npm run check` also validates `CHANGELOG.md` heading format, version ordering, release-date validity, section bullet presence, `package-lock.json` metadata consistency, `npm pack --dry-run` file list expectations, and `main/module/types/exports` metadata consistency.

## Open Source Workflow

1. Open an issue or discussion.
2. Create a branch and add tests for behavior changes.
3. Submit a pull request using the template.

## License

MIT
npm package: @sekai-world/sus-analyzer
Description: SeaUrchinScore Analyzer
Author: Ritsuki Goto
Latest version: 2.2.5

![sus-analyzer-Logo](https://raw.githubusercontent.com/mizucoffee/sus-analyzer/master/sus-analyzer.png)

<h2 align="center">SeaUrchinScore Analyzer for node</h2>

<p align="center"><a href="https://travis-ci.org/mizucoffee/sus-analyzer"><img src="https://travis-ci.org/mizucoffee/sus-analyzer.svg?branch=master" alt="Build Status" /></a>
<a href="https://coveralls.io/github/mizucoffee/sus-analyzer?branch=develop"><img src="https://coveralls.io/repos/github/mizucoffee/sus-analyzer/badge.svg?branch=develop" alt="Coverage Status" /></a>
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
<a href="https://codeclimate.com/github/mizucoffee/sus-analyzer/maintainability"><img src="https://api.codeclimate.com/v1/badges/fc596d01b6038852e18d/maintainability" alt="Maintainability" /></a>
<br>
<a href="https://mizucoffee.github.io/sus-analyzer/"><img src="https://img.shields.io/badge/docs-sus_analyzer-orange.svg" alt="Documents" /></a>
<a href="https://www.npmjs.com/package/sus-analyzer"><img src="https://img.shields.io/npm/v/sus-analyzer.svg" alt="npm" /></a>
<a href="https://npmcharts.com/compare/sus-analyzer?minimal=true"><img src="https://img.shields.io/npm/dt/sus-analyzer.svg" alt="npm downloads" /></a>
<img src="https://img.shields.io/badge/sus-v2.17.0-blue.svg" alt="sus:v2.17.0" />
<a href="https://kawakawaritsuki.mit-license.org/"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="MIT License" /></a></p>

## Installation

```
$ yarn add sus-analyzer
```

or

```
$ npm i sus-analyzer
```

## Usage

### JavaScript

```js
const fs = require('fs')
const SusAnalyzer = require('sus-analyzer')
```

### TypeScript

```ts
import * as fs from 'fs'
import * as SusAnalyzer from 'sus-analyzer'
```

### 共通

```js
const sus = fs.readFileSync('example.sus', 'utf8')
const susValidate = SusAnalyzer.validate(sus)
const susMeta = SusAnalyzer.getMeta(sus)
const susData = SusAnalyzer.getScore(sus)

console.log(susValidate)
console.log(susMeta)
console.log(susData)
```

## サンプルデータについて

サンプルデータを付属しています。  
 譜面データはありませんが、メタ情報を一式揃えてあるのでテスト用にどうぞ。

> {DIFFICULTY}\_{NUMBER}.sus

というファイル名で構成されています。  
 NUMBER が同じ sus ファイルは同楽曲/同デザイナーになるようにしています。

## License

[The MIT License](http://kawakawaritsuki.mit-license.org) (c) [@mizucoffee](https://github.com/mizucoffee)
npm package: @sekhmetdev/busyjs
Description: A lightweight JavaScript library for Busy
Author: busyorg
Latest version: 0.0.1

![](http://img.badgesize.io/busyorg/busy.js/master/dist/busy.min.js.svg)

# Busy.js

A lightweight JavaScript library for Busy

### Install
```
npm install busyjs --save
```

### Usage
```js
var busy = require('busyjs');

// Init WebSocket client
var client = new busy.Client('wss://gtg.steem.house:8090');

// Get accounts
client.call('get_accounts', ['fabien'], function(err, result) {
  console.log(err, result);
});
```
[See more examples](/test/test.js)

### Promises

You can also use Busy.js with promises by promisifying busy with
[bluebird](https://github.com/petkaantonov/bluebird) as in:

```js
var busy = require('busyjs');
bluebird.promisifyAll(busy.Client.prototype);
```

It'll add a *Async* to all busy functions (e.g. return client.callAsync().then())
```js
// So instead of writing client.request('get_accounts', ['fabien'], cb); you have to write:
return client.callAsync('get_accounts', ['fabien']).then(function(result) {
  console.log(result); // => [{ id: 26921, name: 'fabien' ...]
});
```

## License

[MIT](LICENSE).
npm package: @sekhmetdev/byteball
Description: The JavaScript library for Byteball
Latest version: 0.0.1

# Byteball.js

A simple JavaScript library for Byteball

### Install
```
npm install byteball --save
```

### Usage
```js
const byteball = require('byteball');

// Init WebSocket client
const client = new byteball.Client();

// Get peers
client.api.getPeers(function(err, result) {
  console.log(err, result);
});

// Promises
client.api.getPeers().then(function(result) {
  console.log(result);
});
```

## License

[MIT](LICENSE).
npm package: @sekiban/cosmos
Description: Azure Cosmos DB storage provider for Sekiban Event Sourcing framework
Author: Sekiban Team
Latest version: 0.1.0-alpha.5

# @sekiban/cosmos

> ⚠️ **Alpha Version**: This package is currently in alpha. APIs may change between releases.

Azure Cosmos DB storage provider for Sekiban Event Sourcing framework.

## Installation

```bash
npm install @sekiban/cosmos@alpha @sekiban/core@alpha
# or
pnpm add @sekiban/cosmos@alpha @sekiban/core@alpha
# or
yarn add @sekiban/cosmos@alpha @sekiban/core@alpha
```

## Features

- Full Azure Cosmos DB support for event storage
- Optimized for global distribution
- Automatic partitioning strategies
- Change feed support for real-time projections
- Multi-region write support
- Consistent indexing policies
- Cost-optimized queries

## Quick Start

```typescript
import { createCosmosStorageProvider } from '@sekiban/cosmos';
import { createSekibanExecutor } from '@sekiban/core';

// Create storage provider
const storageProvider = createCosmosStorageProvider({
  endpoint: 'https://your-cosmos-account.documents.azure.com:443/',
  key: 'your-cosmos-key',
  databaseId: 'sekiban',
  containerId: 'events'
});

// Initialize storage
await storageProvider.initialize();

// Create executor with Cosmos DB storage
const executor = createSekibanExecutor({
  storageProvider,
  domainTypes: yourDomainTypes
});

// Use the executor
const result = await executor.executeCommand(command);
```

## Configuration

```typescript
interface CosmosStorageConfig {
  endpoint: string;         // Cosmos DB endpoint
  key: string;             // Cosmos DB key
  databaseId: string;      // Database name
  containerId?: string;    // Container name (default: 'events')
  throughput?: number;     // RU/s throughput (default: 400)
  partitionKey?: string;   // Partition key path (default: '/partitionKey')
  consistencyLevel?: ConsistencyLevel;  // Consistency level
}
```

## Container Structure

The provider creates containers with optimized partition strategies:

- `events` - Stores all domain events (partitioned by aggregate)
- `snapshots` - Stores aggregate snapshots
- `projections` - Stores multi-projection states

## Best Practices

1. **Partitioning**: Events are automatically partitioned by aggregate ID for optimal performance
2. **Indexing**: Custom indexing policies are applied for efficient queries
3. **Change Feed**: Use change feed for real-time projections
4. **Multi-region**: Configure multi-region writes for global applications

## Requirements

- Azure Cosmos DB account
- Node.js 18 or higher

## License

MIT
npm package: @sekiban/postgres
Description: PostgreSQL storage provider for Sekiban Event Sourcing framework
Author: Sekiban Team
Latest version: 0.1.0-alpha.5

# @sekiban/postgres

> ⚠️ **Alpha Version**: This package is currently in alpha. APIs may change between releases.

PostgreSQL storage provider for Sekiban Event Sourcing framework.

## Installation

```bash
npm install @sekiban/postgres@alpha @sekiban/core@alpha
# or
pnpm add @sekiban/postgres@alpha @sekiban/core@alpha
# or
yarn add @sekiban/postgres@alpha @sekiban/core@alpha
```

## Features

- Full PostgreSQL support for event storage
- Optimistic concurrency control
- Event streaming capabilities
- Snapshot support
- Multi-tenant support with partition keys
- Connection pooling with pg-pool

## Quick Start

```typescript
import { createPostgresStorageProvider } from '@sekiban/postgres';
import { createSekibanExecutor } from '@sekiban/core';

// Create storage provider
const storageProvider = createPostgresStorageProvider({
  connectionString: 'postgresql://user:pass@localhost:5432/sekiban',
  maxRetries: 3,
  retryDelayMs: 100
});

// Initialize storage
await storageProvider.initialize();

// Create executor with PostgreSQL storage
const executor = createSekibanExecutor({
  storageProvider,
  domainTypes: yourDomainTypes
});

// Use the executor
const result = await executor.executeCommand(command);
```

## Configuration

```typescript
interface PostgresStorageConfig {
  connectionString: string;  // PostgreSQL connection string
  poolSize?: number;        // Connection pool size (default: 10)
  maxRetries?: number;      // Max retry attempts (default: 3)
  retryDelayMs?: number;    // Delay between retries (default: 100ms)
  schema?: string;          // Database schema (default: 'public')
}
```

## Database Schema

The provider will automatically create the required tables:

- `events` - Stores all domain events
- `snapshots` - Stores aggregate snapshots
- `projections` - Stores multi-projection states

## Requirements

- PostgreSQL 12 or higher
- Node.js 18 or higher

## License

MIT
npm package: @sekizlipenguen/react-native-helpers
Description: React native general components (the under construction)
Author: SekizliPenguen
Latest version: 0.0.2

# react-native-helpers

## IMAGE HELPERS

![](assets/1.gif)

#### Pre-required modules;

`yarn add react-native-fast-image`

### Example SPFastImage loading + auto height

```
const [time, setTime] = useState(Date.now());
    
<SPFastImage
source={{uri: 'https://www.gstatic.com/webp/gallery/5.jpg?t=' + time}}
width={200}
/>
```

### Example SPFastImage loading(width,height)

```
<SPFastImage
    source={{uri: 'https://www.gstatic.com/webp/gallery/5.jpg?t=' + time}}
    style={{
        borderRadius: 15,
        height: 200,
        width: 200,
    }}
    resizeMode={'cover'}
/>
```

### Example SPFastImage loading(aspectRatio)

```
<SPFastImage
    source={{uri: 'https://www.gstatic.com/webp/gallery/5.jpg?t=' + time}}
    style={{
        borderRadius: 15,
        aspectRatio: 375 / 300 // or 4/3 or 4/4
    }}
    resizeMode={'cover'}
/>
```

### Example SPImageBackground

![](assets/2.png)

```
<SPImageBackground
    style={{flex: 1}} source={{uri: 'https://www.gstatic.com/webp/gallery/5.jpg?t=' + time}}
    resizeMode={'cover'}
>
  children
</SPImageBackground>
```


## BasicTimer

![](assets/3.gif)

```
<BasicTimer duration={10} complete={() => alert('completed')}>
    {
        (time) => (
            <Text>{time} seconds</Text>
        )
    }
</BasicTimer>
```

## GLOBAL HELPERS

|Key |Type |Description |
|--- |--- |--- |
|`screenWidth`|function|screen Width|
|`screenHeight`|function|screen Height |
npm package: @sekmet/chains
Description: A collection of chains for wagmi
Latest version: 0.3.1

# `@sekmet/chains`

References to popular EVM-compatible chains.

## Installation

Install the `@sekmet/chains` package.

```
npm i @sekmet/chains
```

## Usage

Use your preferred chains!

```tsx
import { configureChains } from 'wagmi'
import { avalanche, bsc, mainnet } from '@sekmet/chains'

const { chains, provider } = configureChains(
  [mainnet, avalanche, bsc],
  ...
)
```

> If your bundler supports tree-shaking (most likely), only the used chains will be included in the bundle, so you don't have to worry about bundle size. 😊

## Chains

- `arbitrum`
- `arbitrumGoerli`
- `aurora`
- `auroraTestnet`
- `avalanche`
- `avalancheFuji`
- `bronos`
- `bronosTestnet`
- `bsc`
- `bscTestnet`
- `canto`
- `celo`
- `celoAlfajores`
- `fantom`
- `fantomTestnet`
- `foundry`
- `goerli`
- `hardhat`
- `iotex`
- `iotexTestnet`
- `localhost`
- `mainnet`
- `metis`
- `metisGoerli`
- `mantleTestnet`
- `moonbaseAlpha`
- `moonbeam`
- `moonriver`
- `okc`
- `optimism`
- `optimismGoerli`
- `polygon`
- `polygonMumbai`
- `sepolia`
- `taraxa`
- `taraxaTestnet`
- `telos`
- `telosTestnet`
- `zkSync`
- `zkSyncTestnet`

## Contributing

Want to add another chain to the list? Make sure you read the [contributing guide](../../.github/CONTRIBUTING.md) first.
npm package: @sekmet/connectors
Description: A collection of connectors for wagmi
Latest version: 0.2.7

# `@wagmi/connectors`

Collection of connectors for wagmi.

## Installation

Install the `@wagmi/connectors` package.

```
npm i @wagmi/connectors
```

## Usage

Configure your wagmi client with connectors!

```tsx
import { configureChains, createClient } from 'wagmi'

import { InjectedConnector } from '@wagmi/connectors/injected'

const { chains, provider } = configureChains(...)

const client = createClient({
  connectors: [
    new InjectedConnector({ chains }),
  ],
  provider,
})
```

> If your bundler supports tree-shaking (most likely), only the used connectors will be included in the bundle, so you don't have to worry about bundle size. 😊

## Connectors

- [`CoinbaseWalletConnector`](/packages/connectors/src/coinbaseWallet.ts)
- [`InjectedConnector`](/packages/connectors/src/injected.ts)
- [`LedgerConnector`](/packages/connectors/src/ledger.ts)
- [`MetaMaskConnector`](/packages/connectors/src/metaMask.ts)
- [`MockConnector`](/packages/connectors/src/mock.ts)
- [`SafeConnector`](/packages/connectors/src/safe.ts)
- [`WalletConnectConnector`](/packages/connectors/src/walletConnect.ts)

## Contributing

Want to add another chain to the list? Make sure you read the [contributing guide](../../.github/CONTRIBUTING.md) first.
npm package: @sekmet/covalentjs
Description: node.js binding for covalenthq.com
Author: Premiurly
Latest version: 0.0.5

# covalentjs

node.js bindings for covalenthq.com

## usage

Get covalent api key from https://www.covalenthq.com

Set environment variable API_KEY.
Set DEBUG=covalentjs environment variable to debug requests.

```js

import covalentJs from '@sekmet/covalentjs';

const covalentjs = require('@sekmet/covalentjs');

// you can use classA, classB or pricing APIs
// format covalentjs.<API class>.api
// Example:
const result = await covalentjs.classA.getTokenBalancesForAddress(1, '0x4004AFc68dd8B5483bBaB82C84b81181fCB545B1', { nft: true });



```

## API refrence

Go to https://www.covalenthq.com/docs/api/
npm package: @sekmet/fereai-provider
Description: Fere AI Provider for Vercel AI/SDK
Author: Carlos Guimaraes
Latest version: 0.1.0

# FereAI Provider for the Vercel AI SDK

The **[FereAI Provider](https://github.com/sekmet/fereai-provider)** for the [Vercel AI SDK](https://sdk.vercel.ai/docs)
contains language model support for the FereAI APIs.

## Requirements

This provider requires FereAI UserId and API Key to be set in the function configuration. You can set them too in the `FEREAI_USER_ID` and `FEREAI_API_KEY` environment variables.

## Setup

The FereAI provider is available in the `fereai-provider` module. You can install it with

```bash
npm i fereai-provider
```

or

```bash
pnpm add fereai-provider
```

or

```bash
yarn add fereai-provider
```


## Provider Instance

You can import the default provider instance `fereai` from `fereai-provider`:

```ts
import { fereai } from 'fereai-provider';
```

## Example

```ts
import { fereai } from 'fereai-provider';
import { generateText } from 'ai';

const { text } = await generateText({
  model: fereai('ProAgent'),
  prompt: 'Please tell me which ones would be a good buy in the current environment',
});
```

## Documentation

Please check out the **[FereAI provider documentation](https://github.com/sekmet/fereai-provider)** for more information.
npm package: @sekmet/framesjs-debugger
Description: Debug your Frames.js applications
Latest version: 0.1.5

# @frames/debugger

Debug your Frames built using [frames.js](https://framesjs.org) with ease.

## Usage

### Using npx or alternatives

```sh
$ npx @frames.js/debugger@latest
$ pnpm dlx @frames.js/debugger@latest
```

### Installing globally

```sh
# usage with npm
$ npm install -g @frames.js/debugger
$ frames

# usage with yarn
$ yarn global add @frames.js/debugger
$ frames

# usage with pnpm
$ pnpm add -g @frames.js/debugger
$ frames
```

## Set your Frames app to use the debugger

Set the `hubHttpUrl` to `http://localhost:3010/hub` (this is default used by debugger, you can change it by running debugger with `--port` flag).

```js
import { getFrameMessage } from "frames.js/next/server";

const frameMessage = await getFrameMessage(previousFrame.postBody, {
  hubHttpUrl: "http://localhost:3010/hub",
});
```
npm package: @sekmet/gatsby-cloudinary
Description: This module powers gatsby-remark-cloudinary and gatsby-transformer-cloudinary.
Author: Dylan Vann
Latest version: 0.0.1

# @dylanvann/gatsby-cloudinary

Powers `@dylanvann/gatsby-remark-cloudinary` and `@dylanvann/gatsby-transformer-cloudinary`.
You likely want to use them instead of using this directly.

These modules all use a specific format for the output image data.
The format is specified in TypeScript in `react-fast-image`.

## Install

```bash
npm install @dylanvann/gatsby-cloudinary
# or
yarn add @dylanvann/gatsby-cloudinary
```
npm package: @sekmet/gatsby-source-google-analytics-reporting-api
Description: GatsbyJS Source for Google Anatytics Reporting API
Author: Anton Medvedev
Latest version: 0.2.7

# Gatsby source for Google Anatytics Reporting API

## Install

```
npm i gatsby-source-google-analytics-reporting-api
```

## Configure

In `gatsby-config.js`:

```js
    {
      resolve: `gatsby-source-google-analytics-reporting-api`,
      options: {
        email: process.env.CLIENT_EMAIL,
        key: require('fs').readFileSync('private.key'),
        viewId: `115350264`,
        startDate: `2009-01-01`,
      }
    },
```

## Usage 

```graphql
    pageViews(path: {eq: $slug}) {
      totalCount
    }
```

## License

MIT
npm package: @sekmet/gatsby-transformer-wpcontent
Description: A Gatsby transformer plugin for authoring content in HTML. Supports ToC generation, responsive images, section anchors and Prism.JS code highlighting.
Latest version: 0.1.29

# @sekmet/gatsby-transformer-wpcontent

## About this plugin

A Gatsby transformer plugin for authoring content in HTML into WP GraphQL Node Types
It search and creates links between entry types and asset so they can be queried in Gatsby using GraphQL and creates ImageSharp nodes from images found in html content image files that are supported by the Sharp image processing library and provides fields in their GraphQL types for processing your images in a variety of ways including resizing, cropping, and creating responsive images.

## Install:

```bash
npm install --save @sekmet/gatsby-transformer-wpcontent
```

OR

```bash
yarn add @sekmet/gatsby-transformer-wpcontent
```


### One functional area of the plugin is enriching raw HTML content by:

* rewriting local links to point to the generated Gatsby pages,

* adding section anchor links,

* processing linked images into multi-resolution responsive img tags,

* applying Prism.js highlighting to code blocks,

* embedding code examples from external files,

* adding synthetic identifiers to paragraph to make it possible to link to them from content search results.

Another functional area of the plugin is extracting paragraph-sized text snippets from the page, so that they can be indexed in the client-side text search implemented by the [`gatsby-plugin-content-search`](https://github.com/carrotsearch/gatsby-plugin-content-search) plugin.

The enriched HTML and lists of extracted text snippets are available in Gatsby's GraphQL model for use by other plugins.
npm package: @sekmet/gatsby-wpcontent-lazy-load
Description: This plugin lazy loads image processed by gatsby-tranformer-wpcontent plugin
Author: Carlos Guimaraes
Latest version: 0.1.3

# @sekmet/gatsby-wpcontent-lazy-load

Lazyloads images processed by [gatsby-tranformer-wpcontent](https://www.gatsbyjs.org/packages/@sekmet/gatsby-tranformer-wpcontent/) with using [lazysizes](https://www.npmjs.com/package/lazysizes)

The plugin makes lazyload possible by:

* Move `src` and `srcset` to `data-src` and `data-srcset` respectively.
* Add class `lazyload` to `img` tag.

[lazysizes](https://www.npmjs.com/package/lazysizes) has to be installed to make this plugin work.

## Install

`npm install --save @sekmet/gatsby-wpcontent-lazy-load`

`npm install --save lazysizes`

## How to use

```js
// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-tranformer-wpcontent`,
    options: {
      plugins: [
        `@sekmet/gatsby-wpcontent-lazy-load`,
      ]
    }
  }
]
```

```js
// In your gatsby-browser.js
import 'lazysizes'
```

## Contribution
This is a minimum plugin. Please make an issue when you need more functionalities or code doesn't work!
npm package: @sekmet/graphql-amqp-subscriptions
Description: GraphQL AMQP Subscriptions
Author: https://github.com/Surnet/graphql-amqp-subscriptions/graphs/contributors
Latest version: 1.0.0

# graphql-amqp-subscriptions

This package implements the PubSubEngine Interface from the [graphql-subscriptions](https://github.com/apollographql/graphql-subscriptions) package.
It allows you to connect your subscriptions manager to a AMQP PubSub mechanism.

This package is influenced by [graphql-redis-subscriptions](https://github.com/davidyaha/graphql-redis-subscriptions) and [graphql-rabbitmq-subscriptions](https://github.com/cdmbase/graphql-rabbitmq-subscriptions).

[![npm Version](https://img.shields.io/npm/v/graphql-amqp-subscriptions.svg)](https://www.npmjs.com/package/graphql-amqp-subscriptions)
[![npm Downloads](https://img.shields.io/npm/dm/graphql-amqp-subscriptions.svg)](https://www.npmjs.com/package/graphql-amqp-subscriptions)

## Basic usage

```javascript
import { AMQPPubSub } from 'graphql-amqp-subscriptions';
import amqp from 'amqplib';

amqp.connect('amqp://guest:guest@localhost:5672?heartbeat=30')
.then(conn => {
  const pubsub = new AMQPPubSub({
    connection: conn
    /* exchange: {
       name: 'exchange',
       type: 'topic',
       options: {
         durable: false,
         autoDelete: true
       }
     },
     queue: {
       name: 'queue'
       options: {
         exclusive: true,
         durable: true,
         autoDelete: true
       },
       unbindOnDispose: false;
       deleteOnDispose: false;
     } */
  });
  // Use the pubsub instance from here on
})
.catch(err => {
  console.error(err);
});
```

## Benefits

- Reusing existing [amqplib](https://github.com/squaremo/amqp.node) Connection
- Reusing channels (one for subscriptions, one for publishing)
- Performance/Ressource-usage benefits on AMQP (RabbitMQ) because of the aforementioned reasons [more info](https://www.cloudamqp.com/blog/2018-01-19-part4-rabbitmq-13-common-errors.html)
- Using Topic Exchange (e.g. you publish to `agreements.eu.berlin.headstore` and subscribe to `agreements.eu.#`) [more info](https://www.cloudamqp.com/blog/2015-09-03-part4-rabbitmq-for-beginners-exchanges-routing-keys-bindings.html)

## Debug

This package uses Debug.
To show the logs run your app with the environment variable DEBUG="AMQPPubSub"

## Tests

You'll need to have a local AMPQ instance such as RabbitMQ running to run tests.

If you have [Docker](https://www.docker.com/), you can run:

```bash
docker run --hostname my-rabbit -p 5672:5672 rabbitmq:3
```

Then

```bash
npm test
```
npm package: @sekmet/hardhat-blockscout-verify
Description: Hardhat plugin for solidity contract verification on Blockscout block explorer
Latest version: 0.1.8

# hardhat-blockscout-verify

[Hardhat](https://hardhat.org) plugin for solidity contract verification on Blockscout block explorer

## What

This plugin will help you to verify your solidity contract on Blockscout block explorer. Blockscout block explorer is a block explorer implmented for EVM-supported blockchain. Unlike Ethscan, Blockscout is an open-sourced project. There are many EVM-supported blockchain and sidechains has adopted Blockscout as their block explorer, including Moonriver (Moonbeam on Kusama), POA Network, xDai Chain, Ethereum Classic. Blockscout block explorer offers an API where you can verify your solidity contracts, but you will have to flatten the contract beforehand. This plugin helps you to do it in one shot.

## Installation

```bash
npm install @sekmet/hardhat-blockscout-verify
```

Import the plugin in your `hardhat.config.js`:

```js
require("@sekmet/hardhat-blockscout-verify");
```

Or if you are using TypeScript, in your `hardhat.config.ts`:

```ts
import "@sekmet/hardhat-blockscout-verify";
import {SOLIDITY_VERSION, EVM_VERSION} from "@sekmet/hardhat-blockscout-verify";
```

## Tasks

This plugin adds the `blockscout-verify` task to Hardhat:
```bash
npx hardhat blockscout-verify <contract file path> <contract address>
```

## Configuration

This plugin extends the `HardhatUserConfig` object with an optional `blockscoutVerify` field.

This is an example of how to set it:

```js
module.exports = {
  blockscoutVerify: {
    blockscoutURL: "<BLOCKSCOUT_EXPLORER_URL>",
    config: {
        compilerVersion: SOLIDITY_VERSION.<CONTRACT_COMPILER_VERSION>, // checkout enum SOLIDITY_VERSION
        optimization: true,
        evmVersion: EVM_VERSION.<EVM_VERSION>, // checkout enum SOLIDITY_VERSION
        optimizationRuns: 999999,
    },
    contracts: {
      "<CONTRACT_NAME>": {
        compilerVersion: SOLIDITY_VERSION.<CONTRACT_COMPILER_VERSION>, // checkout enum SOLIDITY_VERSION
        optimization: true,
        evmVersion: EVM_VERSION.<EVM_VERSION>, // checkout enum SOLIDITY_VERSION
        optimizationRuns: 999999,
      },
    },
  },
};
```

## Usage

There are no additional steps you need to take for this plugin to work.

Install it and access ethers through the Hardhat Runtime Environment anywhere
you need it (tasks, scripts, tests, etc).

You can use the plugin as CLI
```bash
npx hardhat blockscout-verify <contract file path> <contract address>
```

If you use it in a script, the task parameters are `filePath` and `address`.

Example:
```js
await hre.run("blockscout-verify", {
    filePath: "<contract file path>",
    address: "<contract address>",
    constructorArguments: "<constructor arguments>", //if any 
})
```

## Known Issue

- Upgradeable contracts is current not supported.
npm package: @sekmet/js-tiktoken
Description: JavaScript port of tiktoken
Latest version: 1.0.18

# ⏳ js-tiktoken

tiktoken is a [BPE](https://en.wikipedia.org/wiki/Byte_pair_encoding) tokeniser for use with
OpenAI's models. This is a pure JS port of the original tiktoken library.

Install the library from NPM:

```
npm install js-tiktoken
```

## Usage

Basic usage follows, which includes all the OpenAI encoders and ranks:

```typescript
import assert from "node:assert";
import { getEncoding, encodingForModel } from "js-tiktoken";

const enc = getEncoding("gpt2");
assert(enc.decode(enc.encode("hello world")) === "hello world");
```