open-index/open-npm huggingface dataset:
npm package: @meshtastic-node-client/meshtastic-gemini-plugin
Description: Gemini AI plugin for meshtastic-node-client
Author: Alberto Miranda
Latest version: 1.0.0

# meshtastic-gemini-plugin

Gemini AI plugin for meshtastic-node-client — forwards short prompts to
Google's Gemini (Generative Language) API and broadcasts replies to the
channel.

See [meshtastic-node-client](https://github.com/codealchemist/meshtastic-node-client).

## Quick Start

First of all, clone [meshtastic-node-client](https://github.com/codealchemist/meshtastic-node-client).

You will be working on its directory.

- `git clone https://github.com/codealchemist/meshtastic-node-client.git`
- `cd meshtastic-node-client`
- Ensure you have Node.js (v18+ recommended).
- Set the required environment variable:
  - `GEMINI_API_KEY` — your Google Gemini API key

- Optional environment variables:
  - `GEMINI_TRIGGER_TEXT` (default: `G, `)
  - `GEMINI_MODEL` (default: `gemini-2.0-flash`)
  - `GEMINI_MAX_LENGTH` (default: `600`)
  - `GEMINI_CHUNK_SIZE` (default: `200`)
  - `GEMINI_USE_WS` (set to `1` to enable WebSocket Live API)

Install this plugin as part of `meshtastic-node-client`:

```bash
npm i @meshtastic-node-client/meshtastic-gemini-plugin
```

## This plugin structure

- [index.js](index.js) — plugin factory exported as default: `createGeminiPlugin()`.
- [src/gemini-live-client.js](src/gemini-live-client.js) — extracted `GeminiLiveClient` class
- `test/` — unit and integration tests (uses `node:test`).

## Usage

This package exports the plugin factory as the default export. Example:

```js
import createGeminiPlugin from './index.js'
const plugin = createGeminiPlugin()
// register plugin with meshtastic-node-client
```

If `GEMINI_USE_WS=1` the plugin will use the Live WebSocket client implemented
in `src/gemini-live-client.js`; otherwise it uses the HTTP API.

## Tests

Tests are in `test/unit` and `test/integration`. Run them with `npm test`.
npm package: @meshtastic/n8n-nodes-meshtastic
Description: Meshtastic protobuf decoder for n8n
Author: Sacha Weatherstone
Latest version: 0.1.4

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

# n8n-nodes-starter

This repo contains example nodes to help you get started building your own custom integrations for [n8n](n8n.io). It includes the node linter and other dependencies.

To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry).

## Prerequisites

You need the following installed on your development machine:

* [git](https://git-scm.com/downloads)
* Node.js and npm. Minimum version Node 16. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows).
* Install n8n with:
	```
	npm install n8n -g
	```
* Recommended: follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).


## Using this starter

These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/).

1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository.
2. Clone your new repo:
    ```
    git clone https://github.com/<your organization>/<your-repo-name>.git
    ```
3. Run `npm i` to install dependencies.
4. Open the project in your editor.
5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes.
6. Update the `package.json` to match your details.
7. Run `npm run lint` to check for errors or `npm run lintfix` to automatically fix errors when possible.
8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance.
9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started.
10. Update the LICENSE file to use your details.
11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.

## More information

Refer to our [documentation on creating nodes](https://docs.n8n.io/integrations/creating-nodes/) for detailed information on building your own nodes.

## License

[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)