open-index/open-npm huggingface dataset:
npm package: @nxtedition/ranges
Description: Merge and subtract numeric ranges. Useful for byte ranges, time ranges, and similar interval arithmetic.
Latest version: 1.0.5

# @nxtedition/ranges

Merge and subtract numeric ranges. Useful for byte ranges, time ranges, and similar interval arithmetic.

## Install

```sh
npm install @nxtedition/ranges
```

## Usage

### Merge overlapping ranges

```js
import { merge } from '@nxtedition/ranges'

merge([
  [10, 20],
  [15, 30],
  [50, 60],
])
// [[10, 30], [50, 60]]
```

### Subtract ranges

```js
import { subtract } from '@nxtedition/ranges'

subtract(
  [[0, 100]],
  [
    [10, 20],
    [30, 40],
  ],
)
// [[0, 10], [20, 30], [40, 100]]
```

## API

### `merge(ranges: Range[]): readonly Range[]`

Sorts and merges overlapping or adjacent ranges. Returns a new array of non-overlapping ranges. Invalid ranges (empty, reversed, non-finite) are filtered out.

### `subtract(a: readonly Range[], b: readonly Range[]): readonly Range[]`

Subtracts ranges `b` from ranges `a`. Returns the remaining intervals. Does not modify the input arrays.

### `Range`

```ts
type Range = readonly [start: number, end: number]
```

Ranges are half-open intervals: `start` is inclusive, `end` is exclusive.

## License

MIT
npm package: @nxtedition/slate-react
Description: A set of React components for building completely customizable rich-text editors.
Latest version: 0.21.18-nxt.1

This package contains the React-specific logic for Slate. It's separated further into a series of directories:

* [**Components**](./src/components) — containing the React components for rendering Slate editors.
* [**Constants**](./src/constants) — containing a few private constants modules.
* [**Plugins**](./src/plugins) — containing the React-specific plugins for Slate editors.
* [**Utils**](./src/utils) — containing a few private convenience modules.

Feel free to poke around in each of them to learn more!
npm package: @nxtedition/types
Description: TypeScript types to be shared between nxtedition packages.
Latest version: 23.1.16

# @nxtedition/types

## Description

This package contains:

- TypeScript types to be shared between nxtedition packages.
- Runtime validatiors and JSON functions for those types.

## Usage

Import types and validators like this in TypeScript:

```typescript
import type { TemplateRecord } from '@nxtedition/types'
import { isTemplateRecord } from '@nxtedition/types'
```

const templateRecord: TemplateRecord = {
...
}

````

And like this in JavaScript:

```javascript
import { isTemplateRecord } from '@nxtedition/types'

/**
 * @typedef { import("@nxtedition/types").TemplateRecord } TemplateRecord
 */

/** @type {TemplateRecord} */
const templateRecord = { ... }
````

If bundle size is an issue, you can import only the parts you need like this:

```typescript
import { isTemplateRecord } from '@nxtedition/types/domains/template'
```

## Development

### Generate runtime code

Generally, we only manually specify types in this package. A code generator is
used to generate the runtime validators and JSON functions. It will do so for
all types that are exported. To run the generator, use the following command:

```bash
yarn build
```

This will build the output to the `dist` directory.

### Exports

We export all types up to the root of the package, so they can be imported
directly from `@nxtedition/types`. This means that all exported types must
be uniquely named.
npm package: @nxtend/capacitor
Description: An Nx plugin for developing cross-platform applications using Capacitor
Author: Devin Shoemaker
Latest version: 13.0.0

# @nxtend/capacitor

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

An Nx plugin for developing cross-platform applications using [Capacitor](https://capacitorjs.com/docs).

For more complete documentation, visit [nxtend.dev](https://nxtend.dev/docs/capacitor/overview).

## Table of Contents

- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Usage

Visit the official [Getting Started](https://nxtend.dev/docs/capacitor/getting-started) documentation.

## Maintainers

[@devinshoemaker](https://github.com/devinshoemaker)

## Contributing

See [the contributing file](../../contributing.md)!

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2020 Devin Shoemaker
npm package: @nxtend/firebase
Description: An Nx plugin for developing cross-platform applications using Capacitor
Author: Devin Shoemaker
Latest version: 12.1.0

# @nxtend/firebase

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

An Nx plugin for developing applications using [Firebase](https://firebase.google.com).

For more complete documentation, visit [nxtend.dev](https://nxtend.dev/docs/firebase/overview).

## Table of Contents

- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Usage

Visit the official [Getting Started](https://nxtend.dev/docs/firebase/getting-started) documentation.

## Maintainers

[@devinshoemaker](https://github.com/devinshoemaker)

## Contributing

See [the contributing file](../../contributing.md)!

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2020 Devin Shoemaker
npm package: @nxtend/ionic-angular
Description: An Nx plugin for developing Ionic React applications and libraries
Author: Devin Shoemaker
Latest version: 13.1.0

# @nxtend/ionic-angular

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

An Nx plugin for developing [Ionic](https://ionicframework.com/docs) React applications and libraries.

For more complete documentation, visit [nxtend.dev](https://nxtend.dev/docs/ionic-angular/overview).

## Table of Contents

- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Usage

Visit the official [Getting Started](https://nxtend.dev/docs/ionic-angular/getting-started) documentation.

## Maintainers

[@devinshoemaker](https://github.com/devinshoemaker)

## Contributing

See [the contributing file](../../contributing.md)!

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2020 Devin Shoemaker
npm package: @nxtend/ionic-react
Description: An Nx plugin for developing Ionic React applications and libraries
Author: Devin Shoemaker
Latest version: 13.0.0

# @nxtend/ionic-react

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

An Nx plugin for developing [Ionic](https://ionicframework.com/docs) React applications and libraries.

For more complete documentation, visit [nxtend.dev](https://nxtend.dev/docs/ionic-react/overview).

## Table of Contents

- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)

## Usage

Visit the official [Getting Started](https://nxtend.dev/docs/ionic-react/getting-started) documentation.

## Maintainers

[@devinshoemaker](https://github.com/devinshoemaker)

## Contributing

See [the contributing file](../../contributing.md)!

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2020 Devin Shoemaker
npm package: @nxtensions/tsconfig-paths-snowpack-plugin
Description: Snowpack plugin to use the tsconfig path mappings as aliases.
Author: Leosvel Pérez Espinosa
Latest version: 0.0.1

# @nxtensions/tsconfig-paths-snowpack-plugin

[Snowpack](https://www.snowpack.dev/) plugin adding support for using path mappings specified in tsconfig files. This is useful for projects that use Typescript and want to reuse the defined path mappings in the tsconfig as [aliases](https://www.snowpack.dev/reference/configuration#alias) in Snowpack.

## How to use

Add the plugin to your Snowpack configuration:

```javascript
// snowpack.config.mjs

/** @type {import("snowpack").SnowpackUserConfig } */
export default {
  plugins: ['@nxtensions/tsconfig-paths-snowpack-plugin'],
};
```

By default the plugin will try to locate a `tsconfig.json` file relative to the Snowpack root. A custom configuration file path can be specified by specifying the `tsConfig` option:

```javascript
// snowpack.config.mjs

/** @type {import("snowpack").SnowpackUserConfig } */
export default {
  plugins: [
    [
      '@nxtensions/tsconfig-paths-snowpack-plugin',
      { tsConfig: 'tsconfig.app.json' },
    ],
  ],
};
```
npm package: @nxtgn/schematics
Description: A collection of nextgen schematics
Author: Eric Speelman
Latest version: 0.0.106

# Getting Started With Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with
```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```

That's it!
npm package: @nxtl/nxtl-types
Description: TypeScript contracts for all NXTL API endpoints.
Latest version: 0.1.11

# nxtl-types

TypeScript request/response contracts for every NXTL API endpoint.

## Install

```bash
npm install @nxtl/nxtl-types
```

## Build

```bash
npm run build
```

## Usage

```ts
import type {
  ConversationRequest,
  ConversationResult,
  RequestOf,
  ResultOf,
} from "@the-next-level-as/nxtl-types";

const request: ConversationRequest = {
  projectId: "abc12345",
  history: "USER: Hi",
  episode: "ep-1",
  message: "Hello",
  entryIds: ["entry-1"],
};

type TransformRequest = RequestOf<"transformation">;
type TransformResult = ResultOf<"transformation">;
```
npm package: @nxtmd/core
Description: Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
Latest version: 7.0.2

<p align="center"><img src="https://raw.githubusercontent.com/sequelize/sequelize/ec80c6252ac500df9342816b7f49957f3974e882/logo.svg" width="100" alt="Sequelize logo" /></p>
<h1 align="center" style="margin-top: 0;"><a href="https://sequelize.org">Sequelize</a></h1>

This library contains the core functionality of Sequelize. Head to [sequelize.org](https://sequelize.org) to learn how to use Sequelize.

## Installation

Using npm:

```sh
npm install @sequelize/core
```

Or using yarn:

```sh
yarn add @sequelize/core
```
npm package: @nxtmd/sequelize-turso
Description: Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
Latest version: 7.0.0-alpha.48

<p align="center"><img src="https://raw.githubusercontent.com/sequelize/sequelize/ec80c6252ac500df9342816b7f49957f3974e882/logo.svg" width="100" alt="Sequelize logo" /></p>
<h1 align="center" style="margin-top: 0;"><a href="https://sequelize.org">Sequelize</a></h1>

This library contains the core functionality of Sequelize. Head to [sequelize.org](https://sequelize.org) to learn how to use Sequelize.

## Installation

Using npm:

```sh
npm install @sequelize/core
```

Or using yarn:

```sh
yarn add @sequelize/core
```
npm package: @nxtoai/brahma
Description: A flexible Prisma service for NestJS applications
Author: NxtoAI
Latest version: 1.0.17

# Gati - Database Audit System for NxtoAI Microservices

A flexible and powerful database audit system for NestJS microservices, providing automatic audit logging and change tracking.

## Installation

```bash
npm install @nxtoai/gati
```

## Configuration

### 1. Database Setup

Each microservice should have its own database URL in its `.env` file:

```env
# User Service
DATABASE_URL="postgresql://user:password@localhost:5432/user_db"

# Order Service
DATABASE_URL="postgresql://user:password@localhost:5432/order_db"

# Payment Service
DATABASE_URL="postgresql://user:password@localhost:5432/payment_db"
```

### 2. Import the Module

In each microservice's module:

```typescript
import { Module } from '@nestjs/common';
import { BrahmaModule } from '@nxtoai/gati';

@Module({
  imports: [
    BrahmaModule.forRoot({
      databaseUrl: process.env.DATABASE_URL,
      log: ['error', 'warn'],
      errorFormat: 'pretty',
      maxWait: 5000,
      timeout: 10000,
      isolationLevel: 'ReadCommitted'
    }),
  ],
})
export class AppModule {}
```

### 3. Initialize Audit System

Run the following SQL commands in each microservice's database:

```sql
-- Create audit schema and tables
\i path/to/audit_triggers.sql

-- Add audit trigger to your tables
SELECT audit.add_audit_trigger('your_table_name');
```

## Usage

### 1. Inject BrahmaService

```typescript
import { Injectable } from '@nestjs/common';
import { BrahmaService } from '@nxtoai/gati';

@Injectable()
export class YourService {
  constructor(private readonly brahma: BrahmaService) {}

  async createRecord(data: any) {
    // With audit (default)
    return await this.brahma.create('your_table', {
      data: {
        ...data,
        // Audit fields will be automatically added
      }
    });
  }

  async createRecordWithoutAudit(data: any) {
    // Without audit
    return await this.brahma.create('your_table', {
      data: {
        ...data
      }
    }, false);
  }

  async updateRecord(id: string, data: any) {
    // With audit (default)
    return await this.brahma.update('your_table', {
      where: { id },
      data
    });
  }

  async updateRecordWithoutAudit(id: string, data: any) {
    // Without audit
    return await this.brahma.update('your_table', {
      where: { id },
      data
    }, false);
  }

  async deleteRecord(id: string) {
    // With audit (default)
    return await this.brahma.delete('your_table', {
      where: { id }
    });
  }

  async deleteRecordWithoutAudit(id: string) {
    // Without audit
    return await this.brahma.delete('your_table', {
      where: { id }
    }, false);
  }
}
```

### 2. Set Audit Context

Create a middleware to set the audit context:

```
npm package: @nxtoai/spikette
Description: A flexible Aerospike service for NestJS applications
Author: NxtoAI
Latest version: 1.0.5
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @nxtoai/spikette

A flexible Aerospike service for NestJS applications.

## Installation

```bash
npm install @nxtoai/spikette
```

## Usage

1. Import the SpiketteModule in your app.module.ts:

```typescript
import { SpiketteModule } from '@nxtoai/spikette';

@Module({
  imports: [
    SpiketteModule.forRoot({
      hosts: [
        { addr: 'localhost', port: 3000 }
      ],
      namespace: 'test',
      set: 'users'
    }),
    // ... other imports
  ],
})
export class AppModule {}
```

2. Inject and use the SpiketteService in your services:

```typescript
import { SpiketteService } from '@nxtoai/spikette';

@Injectable()
export class YourService {
  constructor(private readonly spikette: SpiketteService) {}

  async someMethod() {
    // Put a record
    await this.spikette.put('key', { data: 'value' });

    // Get a record
    const record = await this.spikette.get('key');

    // Delete a record
    await this.spikette.delete('key');
  }
}
```

## Features

- Easy integration with NestJS
- Type-safe operations
- Connection pooling
- Error handling
- Configurable options
- Support for all Aerospike operations
- TypeScript support

## Configuration Options

```typescript
interface SpiketteOptions {
  hosts: Array<{
    addr: string;
    port: number;
  }>;
  namespace: string;
  set: string;
  timeout?: number;
  maxSockets?: number;
  user?: string;
  password?: string;
}
```

## License

MIT