open-index/open-npm huggingface dataset:
npm package: @mradcliffe/ngx-signalr
Description: > @mradcliffe/ngx-signalr is a [Angular](https://angular.io) module that provides an easy-to-use service to create [SignalR](https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction) hub connections. It wraps common SignalR methods in [RxJS](http
Latest version: 0.9.1

# @mradcliffe/ngx-signalr [![Build Status](https://travis-ci.org/mradcliffe/ngx-signalr.svg?branch=master)](https://travis-ci.org/mradcliffe/ngx-signalr)

> @mradcliffe/ngx-signalr is a [Angular](https://angular.io) module that provides an easy-to-use service to create [SignalR](https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction) hub connections. It wraps common SignalR methods in [RxJS](https://rxjs.dev/) observables and allows http client interceptors (middleware) to be used in connections.

## Table of Contents

1. Installation
2. Usage
3. Contributing

## Installation

Confirm that your dependencies match for the Angular release you are using.

Angular | RxJS  | zone.js
------- | ----- | -------
^6      | ^6.2  | ^0.8
^7      | ^6.4  | ^0.8
^8      | ^6.5  | ^0.9
^9      | ^6.5  | N/A

* `npm install ngx-signalr`

## Usage

### Create a SignalrHubConnection

This provides a `SignalrFactory` with which will create and start a new [HubConnectios](https://docs.microsoft.com/en-us/javascript/api/%40microsoft/signalr/hubconnection?view=signalr-js-latest).

    this.signalrFactory
      .createHubConnection('https://example.com/hubs/test')
      .pipe(skipWhile((c: SignalrHubConnection) => c === null));


A `BehaviorSubject<SignalrHubConnection>` is returned from the factory. The `SignalrHubConnection` wraps the `HubConnection` methods in Observables.

### Work with SignalrHubConnection

    // Subscribes to the "counted" method on the hub.
    const subject = connection.on<number>('counted');
    subject.subscribe((n: number) => {});

    // Unsubscribe using this specific behavior subject for the "counted" method.
    connection.off('counted', subject);

    // Unsubscribe all "counted" methods.
    connection.off('counted');

    // Invokes the increment method on the hub with argument "count".
    const count = 5;
    connection.invoke<number>('increment', count)
      .subscribe((n: number) => {});

    // Send a method with arguments that only needs to check success.
    connection.send('foo', 'bar)
      .subscribe((success: boolean) => {
        if (success) {
          // Method was successful.
        } else {
          // Method was not successful.
        }
      });

## Contributing

Please read the [CONTRIBUTING](./CONTRIBUTING.md) document.
npm package: @mraerino/rollup-plugin-minifyliterals
Description: Minify html in template literals.
Author: Terrence Tempest Wood
Latest version: 1.1.0

# rollup-plugin-minifyliterals

Minify html in template literals using html-minifier.

Experimental support for minifying templates literals that have already been transpiled (i.e. string concatenation).


## Installation

```sh
npm install --save-dev rollup-plugin-minifyliterals
```


## Usage

For best results run before transpiling to es5. This will allow you to send
extra options to through to html-minifier.


```js
// rollup.config.js
import minifyliterals from 'rollup-plugin-minifyliterals'
import buble from 'buble'

export default {
  entry: 'src/index.js',
  dest: 'dist/my-lib.js',
  plugins: [
    minifyliterals({
      // set this to `false` if you're not using sourcemaps –
      // defaults to `true`
      sourceMap: true,
      // optionally pass through options to html-minifier -
      // defaults to `{ collapseWhitespace: true }`
      htmlminifier: {
        removeRedundantAttributes: true
      },
      // optionally process transpiled template literals -
      // defaults to false (experimental, not widely tested)
      literals: true
    }),
    buble()
  ]
}

```


## License

MIT
npm package: @mragentix/ai
Description: Unified LLM streaming API for Anthropic and OpenAI
Latest version: 4.2.39

# @mragentix/ai

<p align="center">
  <strong>Unified LLM streaming API. Four providers. One interface.</strong>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@mragentix/ai"><img src="https://img.shields.io/npm/v/@mragentix/ai?style=for-the-badge" alt="npm version"></a>
  <a href="../../LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
</p>

One function. Flat options. Switch providers by changing a string. No adapters, no plugins, no wrapper classes.

Part of the [MR Agentix Framework](../../README.md) monorepo.

---

## Install

```bash
npm i @mragentix/ai
```

---

## How it works

Call `stream()` with a provider, model, and messages. That's the entire API.

- **`for await`** gives you streaming events (`text_delta`, `thinking_delta`, `toolcall_done`, etc.)
- **`await`** gives you the final response (`message`, `stopReason`, `usage`)

Same function, same call. Dual-nature `StreamResult` — async iterable and thenable.

Tool parameters are Zod schemas. Converted to JSON Schema at the provider boundary automatically.

---

## Providers

| Provider | Models | Notes |
|---|---|---|
| `anthropic` | Claude Opus 4.6, Sonnet 4.6, Haiku 4.5 | Extended thinking, prompt caching, server-side compaction |
| `openai` | GPT-4.1, o3, o4-mini | Supports OAuth (codex endpoint) and API keys |
| `glm` | GLM-5, GLM-4.7 | Z.AI platform, OpenAI-compatible |
| `moonshot` | Kimi K2.5 | Moonshot platform, OpenAI-compatible |

---

## Stream events

| Event | Description |
|---|---|
| `text_delta` | Incremental text output |
| `thinking_delta` | Extended thinking output (Anthropic) |
| `toolcall_delta` | Streaming tool call arguments |
| `toolcall_done` | Completed tool call with parsed args |
| `server_toolcall` | Server-side tool invocation |
| `server_toolresult` | Server-side tool result |
| `done` | Stream finished, includes stop reason |
| `error` | Error occurred |

---

## Options

| Option | Type | Description |
|---|---|---|
| `provider` | `"anthropic" \| "openai" \| "glm" \| "moonshot"` | Required |
| `model` | `string` | Required |
| `messages` | `Message[]` | Required |
| `tools` | `Tool[]` | Tool definitions with Zod schemas |
| `toolChoice` | `"auto" \| "none" \| "required" \| { name }` | Tool selection strategy |
| `serverTools` | `ServerToolDefinition[]` | Server-side tool definitions |
| `maxTokens` | `number` | Max output tokens |
| `temperature` | `number` | Sampling temperature |
| `topP` | `number` | Nucleus sampling |
| `stop` | `string[]` | Stop sequences |
| `thinking` | `"low" \| "medium" \| "high" \| "max"` | Extended thinking (Anthropic) |
| `apiKey` | `string` | Provider API key |
| `baseUrl` | `string` | Custom endpoint |
| `signal` | `AbortSignal` | Cancellation |
| `cacheRetention` | `"none" \| "short" \| "long"` | Prompt cache preference |
| `compaction` | `boolean` | Server-side compaction (Anthropic only) |

---

## License

MIT