open-index/open-npm huggingface dataset:
npm package: @javilobo8/riot-api
Description: Another Riot API Wrapper
Author: Javier Bermúdez
Latest version: 1.8.0

# @javilobo8/riot-api

[![npm package][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Code Coverage][codecov-img]][codecov-url]

Another Riot API wrapper for Node.js.

## Features

* Fully typed
* Promise-based
* Constants
* Axios based requests

## TODO

* Add replacement for DDragon CDN host
* Add Redis cache
* Parse response and error Rate Limit headers
* [x] Add new spectator byPuuid v5 endpoint
## Installation

```bash
npm install @javilobo8/riot-api
```

## Usage

```ts
import { RiotAPILOL, DDragonAPI } from '@javilobo8/riot-api';

// RiotAPILOL
const riotApi = new RiotAPILOL({
  apiKey: 'RGAPI-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
});

const accountResponse = await riotApi.account.byRiotId('EUW', 'javilobo8', 'zoso');
/*
{
  data: {
    puuid: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
    gameName: 'javilobo8',
    tagLine: 'zoso',
  },
  status: 200,
  statusText: 'OK',
  headers: {
    'x-app-rate-limit': 'XX:XX,XX:XX',
    'x-method-rate-limit': 'XX:XX,XX:XX',
    'x-app-rate-limit-count': 'XX:XX,XX:XX',
    'x-method-rate-limit-count': 'XX:XX,XX:XX',
    ...
  },
}
*/

// DDragonAPI
const ddragonApi = new DDragonAPI();

const versionResponse = await ddragonApi.ddragon.getCurrentVersion();
/*
{
  data: '11.16.1', // Current patch version
  status: 200,
  statusText: 'OK',
  headers: {
    ...
  },
}
*/
```

## Debugging

This package uses the `debug` package to log debug messages. To enable debug messages, set the `DEBUG` environment variable to `riot-api:*`.

```bash
DEBUG=riot-api:* node your-app.js
```

Base package: [@javilobo8/riot-api](https://github.com/javilobo8/riot-api)

[build-img]:https://github.com/javilobo8/riot-api/actions/workflows/release.yml/badge.svg
[build-url]:https://github.com/javilobo8/riot-api/actions/workflows/release.yml
[downloads-img]:https://img.shields.io/npm/dt/@javilobo8/riot-api
[downloads-url]:https://www.npmtrends.com/@javilobo8/riot-api
[npm-img]:https://img.shields.io/npm/v/@javilobo8/riot-api
[npm-url]:https://www.npmjs.com/package/@javilobo8/riot-api
[issues-img]:https://img.shields.io/github/issues/javilobo8/riot-api
[issues-url]:https://github.com/javilobo8/riot-api/issues
[codecov-img]:https://codecov.io/gh/javilobo8/riot-api/branch/main/graph/badge.svg
[codecov-url]:https://codecov.io/gh/javilobo8/riot-api
npm package: @javimolina/pi-palette
Description: Pi package that adds a searchable slash-command palette for commands, prompts, and skills
Author: Javi Molina
Latest version: 0.1.0

# pi-palette

Pi package that adds a searchable slash-command palette for commands, prompt templates, and skills.

## Why

When you remember part of a command or its description, but not the exact slash command name, `pi-palette` gives you a quick way to search the commands Pi already knows about in the current session.

It searches across:
- extension commands
- prompt templates
- skills

Search matches both:
- command name
- command description
- command source

Selecting a result prefills the editor with that slash command so you can keep editing before sending it.

## Usage

Install with pi:

```bash
pi install npm:@javimolina/pi-palette
```

Or with the installer:

```bash
npx @javimolina/pi-palette
```

If pi is already running, use:

```text
/reload
```

Then type:

```text
/p review
/p github pr diff
/p code review
/palette worktree
```

## Commands

- `/p [query]`
  - search commands, prompts, and skills by name or description
  - if no query is given, opens an input prompt
  - selecting a result prefills the editor with that slash command
- `/palette [query]`
  - alias for `/p`

## Local development

If you want to load this repo directly while developing it:

```bash
pi -e ~/pi-palette
```

Or add the repo path to `~/.pi/agent/settings.json` and run `/reload`.

## Notes

- Results are ranked with a small built-in token scorer; no extra fuzzy-search dependency is needed.
- The extension uses `pi.getCommands()`, so it searches the current session's available extension commands, prompts, and skills.
- Selecting an item prefills the editor instead of sending it immediately.
npm package: @javimolina/pi-rg
Description: Pi package that adds a /r command with cached ripgrep-backed file completions
Author: Javi Molina
Latest version: 0.1.3

# pi-rg

Pi package that adds a `/r` command with cached ripgrep-backed file completions and inserts `@file` references into the editor.

## Why

Pi's built-in `@` file autocomplete is convenient, but on larger repositories it can feel slower than a ripgrep-backed file index. This package adds a dedicated `/r` flow that uses a cached `rg --files` result for command completions, which makes file lookup feel much snappier in big codebases.

The goal is not to replace `@`, but to provide a faster path when you already know you want to search for a file and insert it as an `@file` reference.

## Usage

Install with pi:

```bash
pi install npm:@javimolina/pi-rg
```

Or with the installer:

```bash
npx @javimolina/pi-rg
```

If pi is already running, use:

```text
/reload
```

Then type:

```text
/r tui
```

While typing, pi shows live command completions from a cached `rg --files` index.

When you submit:
- if there is one exact or best remaining match, it inserts `@path/to/file`
- if there are multiple matches, it opens a selector
- if there are no matches, it shows a notification

The inserted text replaces the `/r ...` command line with:

```text
@path/to/file
```