open-index/open-npm huggingface dataset:
npm package: @invacto/fluo
Description: Fluo is a helper library to help you with all your highlighting needs.
Author: Ian
Latest version: 2.0.2

# Fluo

Fluo is a helper library to help you with all your highlighting needs.

# 1. Find matches

This function finds all positions of the query in your text.

```js
fluo.findMatches("some great text.", "great")

// Result
[
  { start: 5, length: 5 }
]
```

After running this function you can also filter out unwanted matches. If you only want to find full words for example.

# 2. Create highlights

This function builds a list which makes it very easy for you to render your list with any framework.

```js
const matches = fluo.findMatches("some great text.", "great")
fluo.highlights("some great text.", matches)

// Result
[
  { value: "some ", highlighted: false },
  { value: "great", highlighted: true },
  { value: " text.", highlighted: false }
]
```

You can then loop over this list and render every piece of your text.

# 3. Highlight a HTML Element

To highlight every match in an HTML Element there is a completely separate function which does not use any of the previous functions.

Original HTML
```html
<div id="myElement">
  <p>
    Some great text here
  </p>
</div>
```

```js
const element = document.getElementById("myElement")
fluo.highlightHTMLElement(element, "great")
```

Result HTML
```html
<div id="myElement">
  <p>
    Some <mark>great</mark> text here
  </p>
</div>
```
npm package: @invapi/mcp-server
Description: Invoice MCP server — extract structured data from PDF & image invoices, create e-invoices (UBL, CII, ZUGFeRD/Factur-X), convert between formats including Excel, and validate against EN 16931.
Latest version: 1.0.5

# @invapi/mcp-server

MCP server for the [Invapi](https://invapi.org) E-Invoicing API — convert, validate, and extract invoices in UBL, CII, ZUGFeRD, Excel, and more.

## Quick Start

```bash
npm install -g @invapi/mcp-server
```

Set your API key (get one at [invapi.org](https://invapi.org)):

```bash
export INVAPI_API_KEY=your-api-key
```

## Usage

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "invapi": {
      "command": "npx",
      "args": ["-y", "@invapi/mcp-server"],
      "env": {
        "INVAPI_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Claude Code

```bash
claude mcp add -e INVAPI_API_KEY=xxx invapi -- npx @invapi/mcp-server
```

## Tools

### Conversion

| Tool | Description |
|------|-------------|
| `invapi_convert_json_to_ubl` | JSON Invoice → UBL XML |
| `invapi_convert_json_to_cii` | JSON Invoice → CII XML |
| `invapi_convert_ubl_to_json` | UBL XML → JSON Invoice |
| `invapi_convert_cii_to_json` | CII XML → JSON Invoice |
| `invapi_convert_json_to_xlsx` | JSON Invoices → Excel file |
| `invapi_create_zugferd_pdf` | PDF + JSON Invoice → ZUGFeRD PDF |
| `invapi_convert_zugferd_to_json` | ZUGFeRD PDF → JSON Invoice |

### Validation

| Tool | Description |
|------|-------------|
| `invapi_validate_ubl` | Validate UBL XML against XRechnung 3.0.2 (EN 16931) |
| `invapi_validate_cii` | Validate CII XML against XRechnung 3.0.2 (EN 16931) |
| `invapi_validate_xml` | Validate XML with auto-detected format |

### Extraction

| Tool | Description |
|------|-------------|
| `invapi_extract_invoice` | Extract structured invoice data from PDF or image |
| `invapi_extract_qr` | Extract QR code data from image |

### User

| Tool | Description |
|------|-------------|
| `invapi_get_user` | Get account info and remaining API credits |

### Batch

| Tool | Description |
|------|-------------|
| `invapi_batch_convert` | Run up to 100 conversion operations in a single request |

## Development

```bash
git clone https://github.com/invapi/invapi-mcp.git
cd invapi-mcp
npm install
npm run dev
```

## License

MIT
npm package: @invariant-ai/cli
Description: AI writes code. Invariant proves it works.
Author: Thomas Kemeny
Latest version: 0.1.4

# @invariant-ai/cli

> AI writes code. Invariant proves it works.

The Invariant command-line interface.

## Quick Start

```bash
npx @invariant-ai/cli init -y
npx invariant run
```

## Commands

### `npx invariant init`

Initialize Invariant in your project. Automatically:
- Installs Playwright + @invariant-ai/cli
- Creates sample E2E test
- Installs Chromium browser
- Sets up Claude Code hooks for edit tracking

```bash
npx @invariant-ai/cli init -y
```

Options:
- `-y, --yes` - Skip prompts and use defaults
- `--skip-browser-install` - Skip Chromium installation
- `--skip-hooks` - Skip Claude Code hooks installation

### `npx invariant run`

Run tests and capture proof artifacts.

```bash
npx invariant run
```

Options:
- `--quick` - Quick mode (fail fast, less verbose)
- `--headed` - Run tests in headed browser mode

### `npx invariant dashboard`

Open the local proof dashboard to view test results and artifacts.

```bash
npx invariant dashboard
```

Options:
- `-p, --port <port>` - Port to run dashboard on (default: 4747)

## Global Install (Optional)

For convenience, install globally to use bare commands:

```bash
npm install -g @invariant-ai/cli
invariant run  # works after global install
```

## CI / GitHub Actions

Run Invariant proof on every pull request using the included GitHub Action.

```yaml
# .github/workflows/invariant-proof.yml
name: Invariant Proof
on:
  pull_request:
    branches: [main]

permissions:
  contents: read
  issues: write

jobs:
  proof:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm ci
      - run: npx playwright install --with-deps chromium
      - uses: ./packages/github-action
        with:
          fail-on-proof-failure: true
```

The action runs `npx --no-install invariant run --ci`, posts a proof summary comment on the PR, and optionally fails the step if proof fails. See [`packages/github-action/README.md`](../github-action/README.md) for full documentation.

### CI Flags

- `--json` — Output proof report as JSON to stdout (no human text)
- `--ci` — CI mode: implies `--json`, no color, no spinners

Exit codes: `0` = passed, `1` = failed, `2` = setup error.

## How It Works

1. `npx @invariant-ai/cli init -y` sets up everything automatically
2. `npx invariant run` executes tests and generates proof reports
3. Your AI agent sees test results and can iterate until passing

## License

MIT
npm package: @invariant-labs/sparta-sdk-core
Description: ⚒️ An SDK for building applications on top of Sparta V2
Latest version: 0.0.1

# Uniswap SDK Core

[![npm version](https://img.shields.io/npm/v/@uniswap/sdk-core/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @invariant-labs/sparta-v2-sdk
Description: 🛠 An SDK for building applications on top of SpartaDEX V2
Latest version: 0.0.1

# Uniswap V2 SDK

[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).