open-index/open-npm huggingface dataset:
npm package: @hanja-tech/ledger-device-transport-kit-web-ble
Description: > [!CAUTION] > This is still under development and we are free to make new interfaces which may lead to breaking changes.
Latest version: 1.3.0

# Transport Device Kit Web BLE

> [!CAUTION]
> This is still under development and we are free to make new interfaces which may lead to breaking changes.

- [Transport Device Kit Web BLE Documentation](#transport-device-kit-web-ble)
  - [Description](#description)
  - [Installation](#installation)
  - [Usage](#usage)
    - [Compatibility](#compatibility)
    - [Pre-requisites](#pre-requisites)
    - [Main Features](#main-features)
    - [How To](#how-to)

## Description

This transport is used to interact with a Ledger device through the Web BLE (Bluetooth) implementation by the Device Management Kit.

## Installation

To install the core package, run the following command:

```sh
npm install @ledgerhq/device-transport-kit-web-ble
```

## Usage

### Compatibility

This library works in [any browser supporting the Web Bluetooth API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility).

### Pre-requisites

To use this transport, ensure you have the Device Management Kit installed in your project.

### Main Features

- Exposing a transport factory to be injected into the DeviceManagementKit
- Exposing the transport directly for a custom configuration

### How To

To use the transport, you need to inject it in the DeviceManagementKitBuilder before the build. This will allow the Device Management Kit to find and interact with devices on the Web BLE protocol.

```typescript
import { DeviceManagementKitBuilder } from "@ledgerhq/device-management-kit"
import { webBleTransportFactory, WebBleTransport } from "@ledgerhq/device-transport-kit-web-ble"

// Easy setup with the factory
const dmk = new DeviceManagementKitBuilder()
  .addTransport(webBleTransportFactory)
  .build();


// With custom config
const dmk = new DeviceManagementKitBuilder()
  .addTransport(({
    deviceModelDataSource: DeviceModelDataSource;
    loggerServiceFactory: (tag: string) => LoggerPublisherService;
    config: DmkConfig;
    apduSenderServiceFactory: ApduSenderServiceFactory;
    apduReceiverServiceFactory: ApduReceiverServiceFactory;
  }) => {
    // custom code
    return new WebBleTransport(
      deviceModelDataSource,
      loggerServiceFactory,
      config,
      apduSenderServiceFactory,
      apduReceiverServiceFactory,
    );
  })
  .build();

  // You can then make use of the Device Management Kit
```
npm package: @hanja-tech/ledger-device-transport-kit-web-hid
Description: > [!CAUTION] > This is still under development and we are free to make new interfaces which may lead to breaking changes.
Latest version: 1.3.0

# Transport Device Kit Web HID

> [!CAUTION]
> This is still under development and we are free to make new interfaces which may lead to breaking changes.

- [Transport Device Kit Web HID Documentation](#transport-device-kit-web-hid)
  - [Description](#description)
  - [Installation](#installation)
  - [Usage](#usage)
    - [Compatibility](#compatibility)
    - [Pre-requisites](#pre-requisites)
    - [Main Features](#main-features)
    - [How To](#how-to)

## Description

This transport is used to interact with a Ledger device through the Web HID (usb) implementation by the Device Management Kit.

## Installation

To install the core package, run the following command:

```sh
npm install @ledgerhq/device-transport-kit-web-hid
```

## Usage

### Compatibility

This library works in [any browser supporting the WebHID API](https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API#browser_compatibility).

### Pre-requisites

To use this transport, ensure you have the Device Management Kit installed in your project.

### Main Features

- Exposing a transport factory to be injected into the DeviceManagementKit
- Exposing the transport directly for a custom configuration

### How To

To use the transport, you need to inject it in the DeviceManagementKitBuilder before the build. This will allow the Devivce Management Kit to find and interact with devices on the Web HID protocol.

```typescript
import { DeviceManagementKitBuilder } from "@ledgerhq/device-management-kit"
import { webHidTransportFactory, WebHidTransport } from "@ledgerhq/device-transport-kit-web-hid"

// Easy setup with the factory
const dmk = new DeviceManagementKitBuilder()
  .addTransport(webHidTransportFactory)
  .build();


// With custom config
const dmk = new DeviceManagementKitBuilder()
  .addTransport(({
    deviceModelDataSource: DeviceModelDataSource;
    loggerServiceFactory: (tag: string) => LoggerPublisherService;
    config: DmkConfig;
    apduSenderServiceFactory: ApduSenderServiceFactory;
    apduReceiverServiceFactory: ApduReceiverServiceFactory;
  }) => {
    // custom code
    return new WebHidTransport(
      deviceModelDataSource,
      loggerServiceFactory,
      config,
      apduSenderServiceFactory,
      apduReceiverServiceFactory,
    );
  })
  .build();

  // You can then make use of the Device Management Kit
```
npm package: @hank9999/ai-sdk-anthropic-v2-modified
Description: This is a modified version of the Anthropic provider from the [Vercel AI SDK](https://github.com/vercel/ai).
Latest version: 2.0.57-patch-1

# AI SDK - Anthropic Provider (Modified)

This is a modified version of the Anthropic provider from the [Vercel AI SDK](https://github.com/vercel/ai).

## Attribution

This project is a derivative work based on [@ai-sdk/anthropic](https://www.npmjs.com/package/@ai-sdk/anthropic) from the [Vercel AI SDK](https://github.com/vercel/ai), originally created by Vercel, Inc.

Original source: https://github.com/vercel/ai

## License

This project is licensed under the Apache License, Version 2.0 - see the [LICENSE](LICENSE) file for details.

The original work is Copyright 2023 Vercel, Inc., licensed under the Apache License 2.0.

## Setup

```bash
npm i @hank9999/ai-sdk-anthropic-v2-modified
```

## Provider Instance

```ts
import { anthropic } from '@hank9999/ai-sdk-anthropic-v2-modified';
```

## Example

```ts
import { anthropic } from '@hank9999/ai-sdk-anthropic-v2-modified';
import { generateText } from 'ai';

const { text } = await generateText({
  model: anthropic('claude-3-haiku-20240307'),
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
```

## Documentation

For general usage documentation, please refer to the **[Anthropic provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** from the original AI SDK.