open-index/open-npm huggingface dataset:
npm package: @itrabbit/payload-blurhash-plugin
Description: Payload CMS plugin for automatic Blurhash encoding of images
Author: Tsvetomir Bonev
Latest version: 1.0.6

# @itrabbit/payload-blurhash-plugin

Payload CMS plugin for automatic Blurhash encoding of images.

## Getting started

1. Install the package with `npm i @itrabbit/payload-blurhash-plugin` or `yarn add @itrabbit/payload-blurhash-plugin`.
2. Add the plugin to your `payload.config.ts`:

```ts
import computeBlurhash from '@itrabbit/payload-blurhash-plugin';

export default buildConfig({
    /* ... */
    plugins: [
        computeBlurhash(),
    ],
});
```

## Plugin options

Optionally, you can pass the following options to tweak the behavior of the plugin:

```ts
export interface BlurhashPluginOptions {
    /*
     * Array of collection slugs that the plugin should apply to.
     * The plugin will apply only utils with `upload` properties.
     */
    collections?: CollectionConfig['slug'][];

    /*
     * Default: blurhash
     */
    field?: string;

    /*
     * Width to resize the image to prior to computing the blurhash.
     * Default: 32
     */
    width?: number;

    /*
     * Height to resize the image to prior to computing the blurhash.
     * Default: 32
     */
    height?: number;

    /*
     * X component count to pass to the Blurhash library.
     * Default: 3
     */
    componentX?: number;

    /*
     * Y component count to pass to the Blurhash library.
     * Default: 3
     */
    componentY?: number;
}
```

The defaults are chosen somewhat arbitrarily, they are just values that I've found to work nicely for me.
npm package: @itrabbit/payload-swagger-plugin
Description: Payload CMS plugin for generate swagger documentation
Author: Alexander Garin
Latest version: 0.0.7

# @itrabbit/payload-swagger-plugin

Payload CMS plugin for generate swagger documentation.

> The plugin is under development!

- [ ] Collection fields
    - [x] text, textarea, email, code, number, date
    - [x] radio, select, checkbox
    - [x] relationship, upload
    - [ ] relationship with many `relationTo` 
    - [x] row, collapsible
    - [x] richText
    - [ ] blocks
    - [x] point
    - [x] group
    - [x] array
    - [x] json 
    - [ ] tabs
    - [ ] ui
- [x] Collection timestamp
- [x] CRUD for collections
- [x] CRUD for version collections
- [ ] Auth Operations
  - [x] login
  - [x] logout
  - [ ] reset password
  - [ ] forgot password
  - [ ] verify email
  - [ ] unlock
  - [ ] refresh token
  - [x] me
- [x] Custom Endpoints (use `collection.endpoints[n].custom.swagger` append path information, use `collection.custom.swagger` for append other info to swagger)
- [ ] Preferences
- [ ] Global

## Getting started

1. Install the package with `npm i @itrabbit/payload-swagger-plugin` or `yarn add @itrabbit/payload-swagger-plugin`.
2. Add the plugin to your `payload.config.ts`:

```ts
import swagger from '@itrabbit/payload-swagger-plugin';

export default buildConfig({
    /* ... */
    plugins: [
        swagger(),
    ],
});
```

Open in browser https://localhost:3000/api/swagger

## Plugin options

Optionally, you can pass the following options to tweak the behavior of the plugin:

```ts
export interface SwaggerPluginOptions {
    /**
     * Array of collection slugs that the plugin should apply to.
     * If empty use all collection
     *
     * Default: []
     */
    collections?: CollectionConfig['slug'][];
    /**
     * Path for serve documentation
     *
     * Default: /api/swagger
     */
    path?: string;

    /**
     * Locale for documentation
     *
     * Default: en
     */
    locale?: string;
}
```