open-index/open-npm huggingface dataset:
npm package: @korix/cors-plugin
Description: CORS plugin for Kori framework
Author: mitz
Latest version: 0.2.1

# @korix/cors-plugin

A CORS plugin for the Kori framework.

This plugin adds Cross-Origin Resource Sharing (CORS) support to your Kori applications.

## Installation

```bash
pnpm add @korix/cors-plugin
```

## Usage

```typescript
import { kori } from '@korix/kori';
import { corsPlugin } from '@korix/cors-plugin';

const app = kori();
app.use(corsPlugin());
```

## Testing Changesets

This line was added to test Changesets functionality.
npm package: @korix/nodejs-server
Description: Node.js server for Kori framework
Author: mitz
Latest version: 0.4.0

# @korix/nodejs-server

Node.js server for Kori framework.

Wraps [`@hono/node-server`](https://github.com/honojs/node-server) for Kori applications.

## Installation

```bash
npm install @korix/nodejs-server @korix/kori
```

## Usage

```typescript
import { createKori } from '@korix/kori';
import { startNodejsServer } from '@korix/nodejs-server';

const app = createKori();

app.get('/', (ctx) => {
  return ctx.res.text('Hello, Kori!');
});

await startNodejsServer(app, {
  hostname: 'localhost',
  port: 3000,
});
```

## API

### `startNodejsServer(kori, options?)`

Starts a Node.js HTTP server for a Kori application.

#### Parameters

- `kori` - Kori application instance
- `options` - Server options (optional)
  - `hostname` - Hostname to bind to (default: `'localhost'`)
  - `port` - Port number to listen on (default: `3000`)

#### Features

- Graceful shutdown handling (SIGINT/SIGTERM)
- Automatic logging of server startup and shutdown events

## License

MIT
npm package: @korix/openapi-swagger-ui-plugin
Description: Swagger UI plugin for OpenAPI documentation in Kori framework
Author: mitz
Latest version: 0.4.0

# @korix/openapi-swagger-ui-plugin

Swagger UI plugin for OpenAPI documentation in Kori framework.

## Installation

```bash
npm install @korix/openapi-swagger-ui-plugin
```

## Usage

```typescript
import { createKori } from '@korix/kori';
import { stdSchemaOpenApiPlugin } from '@korix/std-schema-openapi-plugin';
import { swaggerUiPlugin } from '@korix/openapi-swagger-ui-plugin';

const app = createKori()
  .applyPlugin(
    stdSchemaOpenApiPlugin({
      info: {
        title: 'My API',
        version: '1.0.0',
      },
    }),
  )
  .applyPlugin(
    swaggerUiPlugin({
      path: '/docs',
      title: 'My API Documentation',
    }),
  );
```

## Options

### `path`

- Type: `string`
- Default: `'/docs'`

The path where the Swagger UI will be served.

### `title`

- Type: `string`
- Default: `'API Documentation'`

The title of the API documentation page.

## Features

- 📚 Interactive API documentation with Swagger UI
- 🚀 Zero configuration required
- 🎨 Clean and familiar Swagger UI interface
- 📦 Assets bundled and served automatically
- 🔄 Cache-friendly asset delivery with content hashing
- 🌐 Works seamlessly with OpenAPI plugin

## Requirements

This plugin requires the `@korix/openapi-plugin` to be registered first. It will automatically use the OpenAPI specification generated by the OpenAPI plugin.

## License

MIT
npm package: @korix/security-headers-plugin
Description: Security headers plugin for Kori framework
Author: mitz
Latest version: 0.2.1

# @korix/security-headers-plugin

Security headers plugin for Kori framework that adds common security headers to HTTP responses.

## Installation

```bash
pnpm add @korix/security-headers-plugin
```

## Usage

### Basic Usage

```typescript
import { createKori } from '@korix/kori';
import { securityHeadersPlugin } from '@korix/security-headers-plugin';

const app = createKori()
  .applyPlugin(securityHeadersPlugin())
  .get('/api/users', (ctx) => {
    return ctx.res.json({ users: [] });
  });
```

### Custom Configuration

```typescript
const app = createKori()
  .applyPlugin(
    securityHeadersPlugin({
      frameOptions: 'sameorigin',
      contentSecurityPolicy: "default-src 'self'; script-src 'self' 'unsafe-inline'",
      strictTransportSecurity: 'max-age=63072000; includeSubDomains; preload',
      customHeaders: {
        'X-Custom-Header': 'custom-value',
      },
      skipPaths: ['/public', /^\/assets/],
    }),
  )
  .get('/api/data', (ctx) => {
    return ctx.res.json({ data: 'secure' });
  });
```

## Security Headers

The plugin sets the following headers by default:

- **x-frame-options**: `deny`
- **x-content-type-options**: `nosniff`
- **x-xss-protection**: `0` (explicitly disabled - this header is deprecated and can introduce vulnerabilities)
- **strict-transport-security**: `max-age=31536000; includeSubDomains`
- **referrer-policy**: `strict-origin-when-cross-origin`
- **x-permitted-cross-domain-policies**: `none`
- **x-download-options**: `noopen`

Additional headers can be enabled through configuration.

## Important Notes

### X-XSS-Protection Header

The `x-xss-protection` header is **deprecated** and modern browsers (Chrome, Edge, Firefox) have removed support for it. When enabled (`xssProtection: true`), this plugin sets the header to `0` to explicitly disable the legacy XSS auditor in older browsers, as it can introduce security vulnerabilities.

**Recommendation**: Use Content Security Policy (CSP) instead for modern XSS protection:

```typescript
securityHeadersPlugin({
  contentSecurityPolicy: "default-src 'self'; script-src 'self'",
  xssProtection: true, // Sets X-XSS-Protection: 0
});
```

## License

MIT
npm package: @koriz/maps-polygon-editor
Description: This multi polygon editor written in TypeScript for the React Native Maps component. This component allows you to select, create, or modify areas on Apple Maps and Google Maps.
Author: Vahe Saroyan
Latest version: 0.1.8

# @koriz/maps-polygon-editor

This multi polygon editor written in TypeScript for the React Native Maps component. This component allows you to select, create, or modify areas on Apple Maps and Google Maps.

## Installation

```sh
npm install @koriz/maps-polygon-editor
```

## Usage

```js
import { multiply } from '@koriz/maps-polygon-editor';

// ...

const result = await multiply(3, 7);
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @korkt-kim/msw-dev-tool
Description: A simple GUI to make your MSW experience a little bit better. ![mswDevTool screenshot](./.preview/scrn-01.png)
Author: korkt-kim
Latest version: 0.1.3

# MSW Dev Toolbar

A simple GUI to make your MSW experience a little bit better.
![mswDevTool screenshot](./.preview/scrn-01.png)

## Install

`npm install @korkt-kim/msw-dev-tool`

`yarn add @korkt-kim/msw-dev-tool`

`pnpm add @korkt-kim/msw-dev-tool`

## Usage

```js
import { worker } from './mocks/browser.js';

worker.start();

new mswDevTool({
  worker,
  isEnabled: true,
});
```

## Props

| Name      | Type    | Default | Description                      |
| --------- | ------- | ------- | -------------------------------- |
| isEnabled | boolean | true    | whether to enable "msw dev tool" |