open-index/open-npm huggingface dataset:
npm package: @korioinc/next-conf
Description: Configuration management for Next.js applications
Author: Korio Inc.
Latest version: 2.0.35

# @korioinc/next-conf

Configuration management system for Next.js applications.

## Installation

```bash
pnpm add @korioinc/next-conf
```

## Features

- **Centralized Configuration**: Manage all app configurations in one place
- **Type-safe**: Full TypeScript support with autocompletion
- **Environment-aware**: Different configs for development/production
- **Plugin System**: Extensible plugin architecture
- **Next.js Optimized**: Built specifically for Next.js applications

## Usage

### Basic Setup

Create a `next-kit.config.ts` file in your project root:

```typescript
import { defineConfig } from '@korioinc/next-conf';

export default defineConfig({
  app: {
    name: 'My App',
    description: 'My awesome Next.js app',
  },
  api: {
    baseUrl: process.env.NEXT_PUBLIC_API_URL || 'https://api.example.com',
    timeout: 30000,
  },
  cookie: {
    accessTokenName: '_at',
    refreshTokenName: '_rt',
  },
  auth: {
    redirectPath: '/dashboard',
    loginPath: '/login',
  },
});
```

### Using Configuration

```typescript
import { getConfig } from '@korioinc/next-conf';

// In your components or API routes
const config = getConfig();
console.log(config.app.name); // "My App"
```

### Plugin System

```typescript
import { defineConfig } from '@korioinc/next-conf';
import { myPlugin } from '@korioinc/next-conf/plugin';

export default defineConfig({
  // Your config
}, {
  plugins: [myPlugin()],
});
```

## Configuration Options

| Option | Type | Description |
|--------|------|-------------|
| `app.name` | `string` | Application name |
| `app.description` | `string` | Application description |
| `api.baseUrl` | `string` | API base URL |
| `api.timeout` | `number` | Request timeout in ms |
| `cookie.accessTokenName` | `string` | Access token cookie name |
| `cookie.refreshTokenName` | `string` | Refresh token cookie name |
| `auth.redirectPath` | `string` | Post-login redirect path |
| `auth.loginPath` | `string` | Login page path |

## License

MIT

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
npm package: @korioinc/next-configs
Description: Shared configuration presets for ESLint, Prettier, and TypeScript in Next.js projects.
Author: Korio Inc.
Latest version: 2.0.35

# @korioinc/next-configs

Shared configuration presets for ESLint, Prettier, and TypeScript in Next.js projects.

## Installation

```bash
pnpm add -D @korioinc/next-configs
```

## Features

- **ESLint Configs**: Pre-configured ESLint rules for Next.js, libraries, and React libraries
- **Prettier Config**: Consistent code formatting with Tailwind CSS support
- **TypeScript Configs**: Optimized tsconfig presets for different project types

## Usage

### ESLint Configuration

Create an `eslint.config.mjs` file:

```javascript
import nextConfig from '@korioinc/next-configs/eslint/next';

export default nextConfig;
```

Available presets:
- `@korioinc/next-configs/eslint/base` - Base configuration
- `@korioinc/next-configs/eslint/next` - Next.js applications
- `@korioinc/next-configs/eslint/library` - Node.js libraries
- `@korioinc/next-configs/eslint/react-library` - React component libraries

### Prettier Configuration

Create a `prettier.config.mjs` file:

```javascript
import prettierConfig from '@korioinc/next-configs/prettier';

export default prettierConfig;
```

Features included:
- Import sorting with `@trivago/prettier-plugin-sort-imports`
- Tailwind CSS class sorting with `prettier-plugin-tailwindcss`

### TypeScript Configuration

Extend from our presets in your `tsconfig.json`:

```json
{
  "extends": "@korioinc/next-configs/tsconfig/nextjs"
}
```

Available presets:
- `/tsconfig/base.json` - Base TypeScript configuration
- `/tsconfig/nextjs.json` - Next.js applications
- `/tsconfig/library.json` - Node.js libraries
- `/tsconfig/react-library.json` - React component libraries

## Peer Dependencies

This package requires the following peer dependencies:

- `eslint` >=9.0.0
- `typescript` >=5.9.0
- `prettier` >=3.0.0

For full functionality, you may also need:
- `@next/eslint-plugin-next` >=15.0.0
- `@typescript-eslint/eslint-plugin` >=8.41.0
- `eslint-plugin-react` >=7.37.0
- `prettier-plugin-tailwindcss` >=0.6.0

## License

MIT

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.