open-index/open-npm huggingface dataset:
npm package: @summonhim/koishi-plugin-dice-roller
Description: A plugin use to roll the dice.
Latest version: 1.0.0

# koishi-plugin-dice-roller

<!-- [![npm](https://img.shields.io/npm/v/koishi-plugin-dice-roller?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-dice-roller) -->

A plugin use to roll the dice.

## Useage

### rd/摇骰子/摇色子
Rolling dice
#### Example
```
rd <x>d<y>
rd 2d6
```

### rn/摇随机数/摇数
Random number
#### Example
```
rn <Min> <Max>
rn 1 10
```

### ri/摇物品/摇物
Random item
#### Example
```
ri <item1> <item2> ...
ri Apple Banana Pear
```

## Install
```
npm run clone SummonHIM/koishi-plugin-dice-roller
npm run build dice-roller
```
npm package: @summoniq/nextjs-dev-api-guard
Description: Development safety guards for Next.js API and route handlers to prevent accidental side-effects during hot-reload request loops.
Author: Summoniq
Latest version: 0.1.0

# @summoniq/nextjs-dev-api-guard

Development safety guards for Next.js route handlers. Prevent accidental side-effects during hot-reload request loops with:

- a **development kill switch**
- **cooldown windows** per actor/action
- standardized **429/409 responses** for blocked requests

## Why this exists

In development, Fast Refresh or tooling loops can issue repeated requests to the same route.
If that route triggers expensive work (external APIs, writes, jobs), costs can spike quickly.

This package helps you enforce:

1. **"Do not run this action in dev unless explicitly enabled"**
2. **"Do not run this action again until cooldown expires"**

## Install

```bash
npm i @summoniq/nextjs-dev-api-guard
```

## Core API

### `createDevActionGuard(config)`

Returns one of:

- `{ ok: true, now }`
- `{ ok: false, reason, retryAfterSeconds?, response }`

Use it directly when you want full control.

### `guardRouteAction(config)`

Convenience helper for route handlers that reads env vars for dev enablement + cooldown.

## Environment variables

You can choose your own env var names per route.
Typical pattern:

- `ALLOW_DEV_<ACTION_NAME>=true|false`
- `ADMIN_<ACTION_NAME>_COOLDOWN_SECONDS=45`

Examples:

```env
ALLOW_DEV_SCRAPE=false
ADMIN_SCRAPE_COOLDOWN_SECONDS=45
```

## Example (Next.js Route Handler)

```ts
import { NextRequest, NextResponse } from 'next/server';
import { guardRouteAction } from '@summoniq/nextjs-dev-api-guard';

export async function POST(request: NextRequest) {
  const userId = 'current-user-id';

  const guarded = await guardRouteAction({
    actionName: 'admin_scrape_start',
    actorId: userId,
    devEnabledEnvVar: 'ALLOW_DEV_SCRAPE',
    cooldownEnvVar: 'ADMIN_SCRAPE_COOLDOWN_SECONDS',
    defaultCooldownSeconds: 45,
  });

  if (!guarded.ok) {
    return guarded.response;
  }

  // Safe to execute expensive side-effects now
  return NextResponse.json({ ok: true });
}
```

## Optional DB-backed cooldown

For multi-instance environments (or to survive process restarts), pass persistence adapters:

- `getLastAttemptMs({ actionName, actorId })`
- `setLastAttemptMs({ actionName, actorId, attemptMs })`

This lets you enforce cooldown from Redis/DB instead of memory only.

## Response behavior

- **409 Conflict** when action is disabled in development
- **429 Too Many Requests** during cooldown period
- `Retry-After` header included for cooldown blocks

## TypeScript

Built with strict TypeScript types and ESM output.

## License

MIT
npm package: @summonlabs/use-ada-handle-resolver
Description: Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
Author: SummonLabs
Latest version: 0.1.1

# ADA Handle resolver

> This is useful hook for react based apps to resolve [ADA handles](https://adahandle.com/) as Cardano addresses

> Debounced, with custom delay

> Works on mainnnet and the old testnet

## Example

Use it on input, and show the resolved address to an user. Address is returned as an empty string when no handle is resolved.

```js
const BLOCKFROST_PROJECT_ID = `<project_id>`
const App = () => {

  const { address, handleInputChangeDebounced } = useAdaHandleResolver({ blockfrostProjectId: BLOCKFROST_PROJECT_ID, delay: 500 })

  return (
    <form>
      <input type={'text'} onChange={handleInputChangeDebounced} />
      {address ? `Resolved as ${address}` : ``}
    </form>
  );
};
```
npm package: @summpot/axios-tauri-api-adapter
Description: Makes it easy to use Axios in Tauri App
Author: Summpot
Latest version: 0.2.3

# axios-tauri-api-adapter

[![](https://img.shields.io/npm/v/axios-tauri-api-adapter)](https://www.npmjs.com/package/axios-tauri-api-adapter)
[![](https://img.shields.io/npm/l/axios-tauri-api-adapter)](https://github.com/persiliao/axios-tauri-api-adapter/blob/master/LICENSE)

Makes it easy to use Axios in Tauri App

# Installation

```
npm install axios-tauri-api-adapter
```

# Usage

###  **TypeScript / JavaScript**

```js
import axios from 'axios';
import axiosTauriApiAdapter from 'axios-tauri-api-adapter';
const client = axios.create({ adapter: axiosTauriApiAdapter });
```

### **Tauri App**

Add the following configuration to the `tauri.config.json` [See Details](https://tauri.app/v1/api/config#httpallowlistconfig)

```json5
{
  "tauri": {
    "allowlist": {
      "http": {
        "all": true, // Use this flag to enable all HTTP API features.
        "request": true, // Allows making HTTP requests.
        "scope": ["https://example.com/*"] // access scope for the HTTP APIs.
      }
    }
  }
}
```

# Features
- HTTP Requests use `@tauri-apps/api/http` instead of `XHR(XMLHttpRequest)`
- Add `config.jwt` It's going to add JWT to the header

# Resources

* [Changelog](https://github.com/persiliao/axios-tauri-api-adapter/blob/master/CHANGELOG.md)
* [Contributing Guide](https://github.com/persiliao/axios-tauri-api-adapter/blob/master/CONTRIBUTING.md)
* [Code of Conduct](https://github.com/persiliao/axios-tauri-api-adapter/blob/master/CODE_OF_CONDUCT.md)
npm package: @summyai/uppy-resolution-validator
Description: Uppy plugin for restricting video resolutions
Author: Timo Nijhof - summy
Latest version: 0.1.25


# Uppy Resolution Validator

This plugin for Uppy gives you the ability to restrict upload videos to have a minimum resolution. 

## Installation

Install with npm

```bash
  npm i @summyai/uppy-resolution-validator
```
    
## Features

- Limit by minimum resolution width
- Limit by minimum resolution height

## Usage/Examples
By default, the resolution validates by the minimum of 1920 x 1080.

```javascript
 uppy: ctx => new Uppy().use(UppyResolutionRestricter, {})
```
## Options

Set default resolutions

```javascript
 uppy: ctx => new Uppy().use(UppyResolutionRestricter, {
   minWidth: 2048,
   minHeight: 1152
 })
```

## Authors

- [@timonijhof](https://www.summy.ai)