open-index/open-npm huggingface dataset:
npm package: @helderjbe/lotr-sdk
Description: A minimal Lord of The Rings SDK implementation
Author: helder
Latest version: 1.0.1

# Lord of the Rings SDK

## Installation

Use npm to install the SDK:

```sh
npm install --save @helderjbe/lotr-sdk
```

Or if you prefer yarn:

```sh
yarn add @helderjbe/lotr-sdk
```

## Quick start

```
import { getAllMovies, getQuoteById } from '@helderjbe/lotr-sdk';

// Set the access token for authentication
const ACCESS_TOKEN = 'your_access_token_here';

// Fetch all movies
const movies = await getAllMovies(ACCESS_TOKEN);
console.log(movies); // array of movies

// Fetch a specific quote
const quote = await getQuoteById(ACCESS_TOKEN, 'quote_id');
console.log(quote); // quote object
```

## Testing

To run tests, you will need to clone the repository and install the dependencies.

Clone the repository:

```sh
git clone https://github.com/hatchways-community/b69b28ddbed643f88b72f173a88d19ab.git
cd b69b28ddbed643f88b72f173a88d19ab
```

Install dependencies:

```sh
npm install
```

Now, run the test script:

```sh
npm test
```

## Troubleshooting

If an error pops up when installing deps with `npm i`, try installing with `npm i -f`
npm package: @heleg/create-vite
Description: ## Scaffolding Your First Vite Project
Author: Evan You
Latest version: 5.5.4

# create-vite <a href="https://npmjs.com/package/create-vite"><img src="https://img.shields.io/npm/v/create-vite" alt="npm package"></a>

## Scaffolding Your First Vite Project

> **Compatibility Note:**
> Vite requires [Node.js](https://nodejs.org/en/) version 18+, 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

With NPM:

```bash
$ npm create vite@latest
```

With Yarn:

```bash
$ yarn create vite
```

With PNPM:

```bash
$ pnpm create vite
```

With Bun:

```bash
$ bun create vite
```

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run:

```bash
# npm 7+, extra double-dash is needed:
npm create vite@latest my-vue-app -- --template vue

# yarn
yarn create vite my-vue-app --template vue

# pnpm
pnpm create vite my-vue-app --template vue

# Bun
bun create vite my-vue-app --template vue
```

Currently supported template presets include:

- `vanilla`
- `vanilla-ts`
- `vue`
- `vue-ts`
- `react`
- `react-ts`
- `react-swc`
- `react-swc-ts`
- `preact`
- `preact-ts`
- `lit`
- `lit-ts`
- `svelte`
- `svelte-ts`
- `solid`
- `solid-ts`
- `qwik`
- `qwik-ts`

You can use `.` for the project name to scaffold in the current directory.

## Community Templates

create-vite is a tool to quickly start a project from a basic template for popular frameworks. Check out Awesome Vite for [community maintained templates](https://github.com/vitejs/awesome-vite#templates) that include other tools or target different frameworks. You can use a tool like [degit](https://github.com/Rich-Harris/degit) to scaffold your project with one of the templates.

```bash
npx degit user/project my-project
cd my-project

npm install
npm run dev
```

If the project uses `main` as the default branch, suffix the project repo with `#main`

```bash
npx degit user/project#main my-project
```
npm package: @helena-pm/pm-js
Description: A javascript library for building applications on top of Gnosis, the Ethereum prediction market platform
Author: Gnosis
Latest version: 2.3.12

# Gnosis Prediction Market JS Library

[![Logo](https://raw.githubusercontent.com/gnosis/pm-js/master/assets/logo.png)](https://gnosis.pm/)

[![Build Status](https://travis-ci.org/gnosis/pm-js.svg?branch=master)](https://travis-ci.org/gnosis/pm-js)

[![Slack Status](https://slack.gnosis.pm/badge.svg)](https://slack.gnosis.pm)

## Getting Started

See the [documentation](https://gnosis-apollo.readthedocs.io/en/latest/pm-js.html).

## Really quick start

1. Get [Ganache-cli](https://github.com/trufflesuite/ganache-cli)
   ```sh
   npm install -g ganache-cli
   ```
2. Run this:
   ```sh
   ganache-cli -d -i 437894314312
   ```
3. Clone [pm-contracts](https://github.com/gnosis/pm-contracts), cd in there, and migrate the contracts onto the Ganache-cli instance with:
   ```sh
   cd path/to/pm-contracts
   npm install
   npm run migrate
   ```
4. Download [`gnosis-pm.js`](https://raw.githubusercontent.com/gnosis/pm-js/master/dist/gnosis-pm.js) and put it in an HTML file:
   ```html
   <script src="gnosis-pm.js"></script>
   ```
npm package: @heleon19/wiz-local-control
Description: Library for controlling WiZ devices via UDP
Author: Gleb Vodovozov, Eugene Khrapykin
Latest version: 2.0.0

# NB! it's a prelease version, provided AS IS


## NodeJS library for controlling WiZ Lights via UDP

### Prerequisites

1.  MacOS/Linux
2.  NodeJS >8.11.1

### Usage

#### Looking for the devices and listening for the status updates

Create instance of WiZLocalControl class

```javascript
const wizLocalControl = new WiZLocalControl({
  incomingMsgCallback: (msg: WiZMessage, ip) => {
    console.log(`Received the message from WiZ Light ${JSON.stringify(msg)}`)
  },
  interfaceName: config.udp.interfaceName
});
```

Start listening for the incoming messages

```javascript
wizLocalControl.startListening();
```

#### Controlling WiZ lights

###### Change brightness

  `changeBrightness(brightness: number, lightIp: string)`

  * `brightness` – Integer from range 10..100

  Sample request

  ```javascript
  wizLocalControl.changeBrightness(10, "192.168.1.21"));
  ```

###### Change status (ON or OFF)
  `changeStatus(status: boolean, lightIp: string)`

  * `status` – `true` will turn light ON, `false` - OFF

  Sample request

  ```javascript
  wizLocalControl.changeStatus(true, "192.168.1.21"));
  ```

###### Change light mode - change currently played scene, or color temperature or RGB color
  `changeLightMode(lightMode: LightMode, lightIp:string)`

  * `lightMode` could be either
    * `{ type: "scene", sceneId: sceneId }`, where `sceneId` is an integer from range 1..28
    * `{ type: "color", r: red, g: green, b: blue }` – where `r`, `g`, `b` are integers from range 0..255
    * `{ type: "temperature", colorTemperature: colorTemperature }` – where `colorTemperature` is integere from range 2200..6500

  Sample requests

  ```javascript
  // Change scene to Ocean
  wizLocalControl.changeLightMode({
    type: "scene",
    sceneId: 1
  }, "192.168.1.21");
  ```

  ```javascript
  // Change color to yellow
  wizLocalControl.changeLightMode({
      type: "color",
      r: 255,
      g: 255,
      b: 0,
    },
    "192.168.1.21");
  ```

  ```javascript
  // Change color temperature to approx. 4000K
  wizLocalControl.changeLightMode({
    type: "temperature",
    colorTemperature: 4000
  }, "192.168.1.21"))
  ```

###### Change speed - change speed of the currently played dynamic scene (Ocean, Romance, Party, etc).
  `changeSpeed(speed: number, lightIp: string)`

  * `speed` – Integer from range 20..200

  Sample request

  ```javascript
  wizLocalControl.changeSpeed(140, "192.168.1.21"));
  ```
npm package: @helex/assembly-line
Description: Configuration and scripts for React App.
Author: helex
Latest version: 3.3.1

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
npm package: @helfa/shared
Description: Types and logic, shared amongst services
Author: Raphael Beer
Latest version: 0.2.2

# @helfa/shared

These are the types shared between services.

If your service - and only that service - needs to make changes to a type, use [Type Augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation).

Same goes for any code; if just one service needs adjustments, make them in that service, extending from here.

As soon as two or more services require a change, make it here. Make sure though that **all** services still build successfully!
npm package: @helfy/helfy-ts-plugin
Description: TypeScript Language Service Plugin for Helfy framework directives (@if, @for, @slot, @bind, @ref, @field)
Author: ikrymsaev
Latest version: 0.0.2

# @helfy/helfy-ts-plugin

TypeScript Language Service Plugin for [Helfy](https://github.com/ikrymsaev/helfy) framework template directives.

## Features

- **IDE support** for `@if`, `@for`, `@slot`, `@bind`, `@ref`, `@field` directives in `.tsx` files
- **Autocompletion** inside `@for` and `@slot` blocks
- **Type checking** without false "Cannot find name" errors for slot parameters and bound expressions
- **Quick info** and **signature help** in directive contexts

## Installation

```bash
npm install @helfy/helfy-ts-plugin
```

## Configuration

### tsconfig.json

Add the plugin to your TypeScript configuration:

```json
{
  "compilerOptions": {
    "plugins": [{ "name": "@helfy/helfy-ts-plugin" }]
  }
}
```

### VSCode

Install the [Helfy Template Syntax](https://marketplace.visualstudio.com/items?itemName=helfy.helfy-syntax) extension, which automatically registers the plugin when `@helfy/helfy-ts-plugin` is installed in your project.

## Supported Directives

| Directive | Description |
|-----------|-------------|
| `@if` / `@elseif` / `@else` | Conditional rendering |
| `@for` | Iteration over arrays |
| `@slot.NAME` | Slot consumers with typed parameters |
| `@slot:NAME` | Slot providers |
| `@bind` | Two-way data binding |
| `@ref` | Element reference |
| `@field` | Form field binding |

## License

MIT
npm package: @helga-agency/eslint-config-joinbox
Description: Helga Agency airbnb based linter configuration for javascript
Author: Felix Steiner
Latest version: 2.1.2

# Helga Linter Configuration
Linter configuration for JavaScript project based on airbnb rules with some custom changes.

## Installation

Since the module is not published yet pull it form github.

`npm i -D @helga-agency/eslint-config-joinbox`

## Usage

Add the following line to the `.eslintrc` file in the project root folder.

```
{
  "extends" : ["@helga-agency/joinbox"],
  "root" : true
}
```

## Helga Coding Guildelines

The guidelines can be found [here](https://www.notion.so/JS-Style-Guide-ea3e222afdbc40829310dab92a29833d?pvs=4).
npm package: @helga-agency/stylelint-config-joinbox
Description: Helga Agency stylelint configuration
Author: Tobias Kneubuehler
Latest version: 1.3.6

# Helga Linter Configuration
Linter configuration for SCSS project based on airbnb rules (with some custom changes).

## Installation

Since the module is not published yet pull it form github.

`npm i -D @helga-agency/stylelint-config-joinbox`

## Usage

Add the following line to the `.stylelintrc` file in the project root folder.

```
{
  "extends": "@helga-agency/stylelint-config-joinbox"
}
```

## Helga CSS / Sass Styleguide

The guidelines can be found [here](…).


---------

# Helga Style Guide
Date of latest change: April 18, 2019

## Basics


## Helga-Specific Changes


## Basic Considerations
npm package: @helgardf/cucumber-language-service
Description: Cucumber Language Service
Author: Cucumber Limited
Latest version: 1.4.2

[![test-javascript](https://github.com/cucumber/language-service/actions/workflows/test-javascript.yml/badge.svg)](https://github.com/cucumber/language-service/actions/workflows/test-javascript.yml)

# Cucumber Language Service

This library implements the services used by [Cucumber Language Server](https://github.com/cucumber/language-server#readme)
and [Cucumber Monaco](https://github.com/cucumber/monaco#readme).

## Supported features

- Languages
  - [x] C#
  - [x] Java
  - [x] JavaScript
  - [x] TypeScript
  - [x] TypeScript JSX (TSX)
  - [x] PHP
  - [x] Python
  - [x] Ruby
  - [x] Rust
  - [ ] [Go](https://github.com/cucumber/language-service/issues/72)
- [x] Go to step definition
- [x] Generate step definition
- [x] Code completion
- [x] Document symbols (Display document outline tree)
- [x] Formatting / pretty printing
- [x] Syntax highlighting
- [x] Syntax validation (underline undefined steps)
npm package: @heliapan/ts-lib-template
Description: My awesome library
Author: heliapan
Latest version: 1.1.5

# `@heliapan/ts-lib-template`

[![Release](https://github.com/STPace/ts-lib-template/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/STPace/ts-lib-template/actions/workflows/release.yml)
[![npm version](https://badgen.net/npm/v/@heliapan/ts-lib-template)](https://npm.im/@heliapan/ts-lib-template)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![semantic-release](https://img.shields.io/badge/semantic-release-e10079.svg?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

## Install

```sh
pnpm add @heliapan/ts-lib-template
```

## License

MIT &copy; [heliapan](https://github.com/heliapan)

## Checklist

- [ ] Search `@heliapan/ts-lib-template` and replace it with your package name.
- [ ] Search `heliapan` and replace it with your npm name.
- [ ] Search `STPace` and replace it with your github name.
- [ ] Change the version in `package.json`
- [ ] Clean up the `README.md`

enjoy :)
npm package: @helicone/generate
Description: A light and modern interface for Helicone's generateRouter API
Author: Helicone
Latest version: 1.0.2

# @helicone/generate

A light and modern interface for calling LLMs through Helicone.

Edit, version and manage your prompts using the [Helicone Prompts Editor](https://docs.helicone.ai/features/prompts/editor).

## Installation

```bash
npm install @helicone/generate
```

## Usage

### Simple usage with just a prompt ID

```typescript
import { generate } from '@helicone/generate';

// model, temperature, messages inferred from id
const response = await generate("prompt-id");

console.log(response);
```

### With variables

```typescript
const response = await generate({
  promptId: "prompt-id",
  inputs: {
    location: "Portugal",
    time: "2:43"
  }
});

console.log(response);
```

### With Helicone properties

```typescript
const response = await generate({
  promptId: "prompt-id",
  userId: "ajwt2kcoe",
  sessionId: "21",
  cache: true
});

console.log(response);
```

### In a chat

```typescript
const promptId = "homework-helper";
const chat = [];

// User
chat.push("can you help me with my homework?");

// Assistant
chat.push(await generate({promptId, chat}));
console.log(chat[chat.length - 1]);

// User
chat.push("thanks, the first question is what is 2+2?");

// Assistant
chat.push(await generate({promptId, chat}));
console.log(chat[chat.length - 1]);
```

## Supported Providers and Required Environment Variables

Always required: `HELICONE_API_KEY`

| Provider | Required Environment Variables |
|----------|-------------------------------|
| OpenAI | `OPENAI_API_KEY` |
| Azure OpenAI | `AZURE_API_KEY`, `AZURE_ENDPOINT`, `AZURE_DEPLOYMENT` |
| Anthropic | `ANTHROPIC_API_KEY` |
| AWS Bedrock | `BEDROCK_API_KEY`, `BEDROCK_REGION` |
| Google Gemini | `GOOGLE_GEMINI_API_KEY` |
| Google Vertex AI | `GOOGLE_VERTEXAI_API_KEY`, `GOOGLE_VERTEXAI_REGION`, `GOOGLE_VERTEXAI_PROJECT`, `GOOGLE_VERTEXAI_LOCATION` |
| OpenRouter | `OPENROUTER_API_KEY` |

## API Reference

### `generate(input)`

Generates a response using a Helicone prompt.

#### Parameters

- `input` (string | object): Either a prompt ID string or a parameters object:
  - `promptId` (string): The ID of the prompt to use, created in the [Prompt Editor](https://docs.helicone.ai/features/prompts/editor)
  - `version` (number | "production", optional): The version of the prompt to use. Defaults to "production"
  - `inputs` (object, optional): Variable inputs to use in the prompt, if any
  - `chat` (string[], optional): Chat history for chat-based prompts
  - `userId` (string, optional): User ID for tracking in Helicone
  - `sessionId` (string, optional): Session ID for tracking in [Helicone Sessions](https://docs.helicone.ai/features/sessions)
  - `cache` (boolean, optional): Whether to use Helicone's [LLM Caching
](https://docs.helicone.ai/features/advanced-usage/caching)


#### Returns

- `Promise<object>`: The raw response from the LLM provider

## License

MIT