open-index/open-npm huggingface dataset:
npm package: @nexo-labs/chat-agent
Description: Floating chat agent component for React applications with AI integration
Author: Zetesis - Rubén Garcia
Latest version: 1.15.0

# @nexo-labs/chat-agent

Floating chat agent component for React applications with AI integration. Built on [`@assistant-ui/react`](https://github.com/assistant-ui/assistant-ui).

## Installation

```bash
pnpm add @nexo-labs/chat-agent
```

## Usage

```tsx
import { FloatingChatManager, ChatProvider, NexoPayloadChatAdapter } from '@nexo-labs/chat-agent'
import '@nexo-labs/chat-agent/styles.css'

const adapter = new NexoPayloadChatAdapter({ baseUrl: '/api/chat' })

function App() {
  return (
    <ChatProvider adapter={adapter}>
      <FloatingChatManager />
    </ChatProvider>
  )
}
```

## Exports

### Main (`.`)

- **`FloatingChatManager`** - Floating chat widget component
- **`ChatProvider`** / **`useChat`** - React context for chat state
- **`useAssistantRuntime`** - Hook for assistant runtime adapter
- **`NexoPayloadChatAdapter`** - Payload CMS adapter with RAG support
- **`MockAdapter`** - Mock adapter for testing
- **`Thread`**, **`Composer`**, **`AssistantMessage`**, **`UserMessage`**, **`MarkdownText`** - Pre-built UI components

### Styles (`./styles.css`)

Tailwind CSS stylesheet. Import it in your app's entry point.

## Features

- Adapter-based architecture for pluggable chat backends
- Payload CMS integration with RAG-enabled document search
- Pre-built UI components with markdown rendering and source citations
- Floating chat widget with chat history and session management
- Fully typed with TypeScript

## Peer Dependencies

- `react` ^19.0.0
- `react-dom` ^19.0.0

## License

MIT
npm package: @nexo-labs/nextjs-pkl-plugin
Description: Next.js plugin for seamless PKL configuration integration
Author: JDP Dev
Latest version: 0.0.4

# @nexo-labs/nextjs-pkl-plugin

Next.js plugin for seamless PKL configuration integration.

## Installation

```bash
npm install @nexo-labs/nextjs-pkl-plugin
```

## Usage

### Next.js Configuration

```javascript
// next.config.js
const withPkl = require('@nexo-labs/nextjs-pkl-plugin');

module.exports = withPkl({
  // Your existing Next.js config
});
```

### Import PKL Files in Components

```typescript
// Import generated types
import type { Config } from './config-types';

// Load configuration
import { load } from '@nexo-labs/pkl';

export default async function Page() {
  const config = await load<Config>('./config.pkl');
  
  return <div>{config.appName}</div>;
}
```

## Features

- ✅ Automatic webpack configuration
- ✅ Hot reload for PKL files
- ✅ TypeScript support
- ✅ Zero configuration setup

## Generated Files

- `config-types.ts` - TypeScript definitions
- `config.json` - Compiled JSON configuration

## License

MIT
npm package: @nexo-labs/nodebb-plugin-notify-users-from-categories
Description: Category notifications
Author: Baris Usakli
Latest version: 0.0.6

# Category Notifications

This plugin allows users to subscribe to categories and get notifications whenever a new topic or post is made.

In the administrative settings, you can choose how users are notified: Notification (via header dropdown), Email, or both.

## Installation

1. Install this plugin via the ACP page of your NodeBB installation.
1. Activate and reload your NodeBB
npm package: @nexo-labs/payload-betterauth-stripe
Description: Better-Auth Stripe subscription plugin for Payload CMS
Author: Zetesis - Rubén Garcia
Latest version: 1.15.0

# @nexo-labs/payload-betterauth-stripe

Better-Auth + Stripe subscription management plugin for Payload CMS. Handles plans, roles, subscriptions, webhook processing, and provides server/client/RSC components.

## Installation

```bash
pnpm add @nexo-labs/payload-betterauth-stripe
```

## Usage

```ts
// payload.config.ts
import { createPayloadBetterAuthStripePlugin } from '@nexo-labs/payload-betterauth-stripe/server'

export default buildConfig({
  plugins: [
    createPayloadBetterAuthStripePlugin({
      stripeSecretKey: process.env.STRIPE_SECRET_KEY,
    }),
  ],
})
```

## Exports

### Main (`.`)

- **`createFreePlan`** / **`getPlanById`** - Plan type utilities

### Server (`./server`)

- **`createPayloadBetterAuthStripePlugin`** - Main plugin factory
- **`createStripePlansCollection`** / **`createRolesCollection`** - Collection builders
- **`createSubscriptionAccessHelpers`** - Access control helpers
- **`createPermissionUtils`** - Permission utilities
- **`createStripeWebhookHandlers`** - Stripe webhook handlers
- **`createSyncFromStripeEndpoint`** - Stripe sync endpoint

### Client (`./client`)

- **`PlanSubscribersClient`** - Plan subscribers component
- **`SyncStripeButton`** - Stripe sync button
- **`UserSubscriptions`** - User subscriptions component

### RSC (`./rsc`)

- **`PlanSubscribers`** - React Server Component for plan subscribers

## Features

- Stripe integration with plan, subscription, and customer sync
- Better-Auth authentication with subscription-based roles
- Pre-built `stripe-plans` and `roles` collections
- Webhook handlers for Stripe events (customer, subscription, checkout)
- Subscription-based access control with permission utilities
- Separate server/client/RSC bundles for optimal tree-shaking

## Peer Dependencies

- `payload` ^3.75.0
- `@payloadcms/ui` ^3.75.0
- `react` ^19.0.0
- `stripe` >=17.0.0

## License

MIT
npm package: @nexo-labs/payload-lexical-blocks-builder
Description: Builder y renderer de bloques para Payload CMS Lexical
Author: Zetesis - Rubén Garcia
Latest version: 1.15.0

# @nexo-labs/payload-lexical-blocks-builder

Builder and renderer utilities for Payload CMS Lexical editor blocks.

## Installation

```bash
pnpm add @nexo-labs/payload-lexical-blocks-builder
```

## Usage

```ts
import { buildLexicalByFeatures } from '@nexo-labs/payload-lexical-blocks-builder/builder'

const lexicalConfig = buildLexicalByFeatures({
  features: [HeadingFeature, BoldFeature],
  blocks: [myCustomBlock],
})
```

## Exports

### Builder (`./builder`)

- **`buildLexicalByFeatures`** - Create Lexical editor config from features and blocks
- **`filterBlocksAtLexicalBuilder`** - Dynamically filter blocks by slug

### Renderer (`./renderer`)

- **`BlockRendererFunction`** / **`BlocksRendererFunctions`** - Types for block converter functions
- **`generateStoryForLexicalBlock`** - Storybook helper for block stories

## Features

- Feature-based Lexical editor composition
- Dynamic block filtering by slug
- Type-safe block renderer functions
- Storybook integration helpers

## Peer Dependencies

- `payload` ^3.75.0
- `@payloadcms/richtext-lexical` ^3.75.0
- `@payloadcms/ui` ^3.75.0
- `react` ^19.0.0

## License

MIT
npm package: @nexo-labs/payload-stripe-inventory
Description: Sistema de inventario y suscripciones con Stripe para Payload CMS
Author: Zetesis - Rubén Garcia
Latest version: 1.9.10

# Payload Stripe Inventory

Sistema de inventario y suscripciones con Stripe para Payload CMS, integrado con el sistema de control de acceso.

## Características

- Integración con Stripe para pagos y suscripciones
- Gestión de inventario para productos digitales y físicos
- Sincronización automática de permisos basada en suscripciones
- Compatible con el paquete payload-access-control

## Instalación

```bash
npm install payload-stripe-inventory
```

## Uso

Por implementar.

## Licencia

MIT
npm package: @nexo-labs/payload-taxonomies
Description: Taxonomies for Payload CMS
Author: Zetesis - Rubén Garcia
Latest version: 1.15.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @nexo-labs/payload-taxonomies

Hierarchical taxonomy collection and relationship utilities for Payload CMS.

## Installation

```bash
pnpm add @nexo-labs/payload-taxonomies
```

## Usage

```ts
// payload.config.ts
import { taxonomiesCollection } from '@nexo-labs/payload-taxonomies'

export default buildConfig({
  collections: [
    taxonomiesCollection(),
    // your other collections...
  ],
})
```

```ts
// In another collection
import { buildTaxonomyRelationship } from '@nexo-labs/payload-taxonomies'

const PostsCollection = {
  slug: 'posts',
  fields: [
    buildTaxonomyRelationship({ hasMany: true }),
    // other fields...
  ],
}
```

## Exports

### Main (`.`)

- **`taxonomiesCollection`** - Pre-configured taxonomy collection builder
- **`buildTaxonomyRelationship`** - Helper to create taxonomy relationship fields
- **`COLLECTION_SLUG_TAXONOMY`** - Collection slug constant

### Constants (`./constants`)

- **`COLLECTION_SLUG_TAXONOMY`** - Lightweight import for the slug constant only

## Features

- Pre-built hierarchical taxonomy collection with slug generation
- Localized taxonomy names
- Custom JSON payload field for metadata
- Relationship helper for integrating taxonomies into other collections
- Optional TypeScript schema for typed JSON payloads

## Peer Dependencies

- `payload` ^3.75.0
- `@payloadcms/ui` ^3.75.0
- `react` ^19.0.0

## License

MIT
npm package: @nexo-labs/pkl-webpack-loader
Description: Webpack loader for PKL files with automatic TypeScript generation
Author: JDP Dev
Latest version: 0.0.4

# @nexo-labs/pkl-webpack-loader

Webpack loader for PKL configuration files with automatic TypeScript generation.

## Installation

```bash
npm install @nexo-labs/pkl-webpack-loader
```

## Usage

### Webpack Configuration

```javascript
module.exports = {
  module: {
    rules: [
      {
        test: /\.pkl$/,
        use: '@nexo-labs/pkl-webpack-loader'
      }
    ]
  }
};
```

### Import PKL Files

```javascript
// Import PKL file directly
import config from './config.pkl';

console.log(config); // Compiled JSON configuration
```

## Features

- ✅ Automatic PKL → JSON compilation
- ✅ TypeScript definitions generation  
- ✅ Hot reload support
- ✅ File watching for development

## Generated Files

For each PKL file, the loader generates:
- `config-types.ts` - TypeScript definitions
- `config.json` - Compiled JSON

## License

MIT
npm package: @nexo/cookieconsent
Description: cookieconsent por to React
Latest version: 0.0.1

<h1 align="center" style="text-align: center;">🍪‏‏‎ Cookie Consent React Component</h1>


### Based on
- [cookieconsent](https://github.com/orestbida/cookieconsent/) Copyright (c) 2020 Orest Bida
npm package: @nexodem/sample
Description: > This project is created to simplify the process of publishing a React component to npm. For a full tutorial on publishing React component to npm, please refer to [this guide](https://medium.com/groftware/how-to-publish-your-react-component-on-npm-9cf48d
Latest version: 1.0.4
Deprecated: This org name moved to Rexodem

> This project is created to simplify the process of publishing a React component to npm. For a full tutorial on publishing React component to npm, please refer to [this guide](https://medium.com/groftware/how-to-publish-your-react-component-on-npm-9cf48d91944d)

## Guide
1. Replace contents in `/src` with your React component.
1. Edit `webpack.config.js`, replace the following:
	1. `entry: './src/YOUR_COMPONENT.js'` Replace value of `entry` to path to the entry point of your component.
	1. Replace 	`output.filename` to the name of your component
	```
		output: {
			path: path.resolve('lib'),
			filename: 'YOUR_COMPONENT.js',
			libraryTarget: 'commonjs2',
  	},
	```
1. Edit `package.json`, replace the following:
	1. `"name": "YOUR_PACKAGE_NAME"` Replace the value of `name` to your package name. This will be the name of the package that is published to `npm` and the name that is used when other people install your package using `npm install YOUR_PACKAGE_NAME`.
	1. Update the values of `version` and `description` to accordingly.
	1. `"main": "./lib/YOUR_COMPONENT.js"` replace `YOUR_COMPONENT.js` with the name that you've set in `output.filename` during Step #2
	1. If your component uses any other dependencies, make sure to add them into the `peerDependencies` list.
1. Building your component by running `npm build` in your command line. This would generate the folder `/lib` which includes your component.
1. Publishing to [npm](https://www.npmjs.com/)
	1. Make sure you've [registered an npm account](https://www.npmjs.com/signup)
	1. Run `npm login` in your command line, and enter your credentials.
	1. Run `npm publish`, and your React component will be uploaded to npm! You can find it at https://www.npmjs.com/package/[YOUR PACKAGE NAME] or your npm profile.

1. To update your package, make sure you remember to increment the `version` in `package.json`, and then perform Step #5 again.
npm package: @nexogen-international/leaflet.routing.nexogen
Description: A leaflet-routing-machine plugin for NEXOGEN GIS and routing API.
Author: Nexogen Kft.
Latest version: 0.1.0

A Leaflet Routing Machine plugin for NEXOGEN GIS Routing API v2. The package contains:

Plug-in for integration with
* NEXOGEN GIS Routing API v2

Plug-in was tested with the following dependencies:
* Leaflet 1.5.1+
* Leaflet Routing Machine 3.2.12+

You must use NEXOGEN GIS Routing API either via a local CORS proxy or your dedicated backend API to avoid CORS issues.

Usage:

To test the plug-in locally, you need to use a local CORS proxy first.
One suggestion is to install `local-cors-proxy` via `npm`.

```
npm install -g local-cors-proxy
lcp https://{api_url_placeholder}
```

where `{api_url_placeholder}` is your URL referring to your designated NEXOGEN GIS API endpoint.

The plug-in can be used in the following way:

```javascript=
L.Routing.control({
	addWaypoints: true,
	waypoints: [
		L.latLng(47.46072, 18.95798),
		L.latLng(46.2530102, 20.1414253)
	],
	router: L.Routing.nexogen({
		baseUrl: '{api_url_placeholder}',
		bearerToken: '{api_token_placeholder}',
		vehicleProfile: 'Truck_40t', // Car, etc.
	}),
	lineOptions: {
		styles: [
			{ color: '#0000F0', opacity: 0.5, weight: 7 }
		]
	}
}).addTo(map);
```
npm package: @nexon.js/api
Description: Simple Usage Rest API Nexon
Author: Kens Ransyah
Latest version: 1.2.2
Deprecated: This version is no longer recommended for use.

# Nexon Api

Simple Usage Rest API Maelyn


## Documentation

[Documentation](https://api.nexon.my.id)


## Installation

```bash
$ npm install @nexon.js/api
```
    
## Usage/Examples

```javascript
const { NexonApi } = require('@nexon.js/api');

const Api = new NexonApi('https://api.nexon.my.id', 'YOUR-APIKEY');

Api.nexon('chatgpt', { 
    q: 'Questions'
  }).then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```

```javascript
const { NexonApi } = require('@nexon.js/api');

const Api = new NexonApi('https://api.nexon.my.id', 'YOUR-APIKEY');

Api.nexon('remini', {
    url: 'URL-Image'
   }).then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```

```javascript
const { NexonApi } = require('@nexon.js/api');

const Api = new NexonApi('https://api.nexon.my.id', 'YOUR-APIKEY');

Api.nexon('cecan', {
   q: "indonesia"
  }).then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```


## Creator 

- [@KensBot](https://www.github.com/KensBot)