npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xpert-ai/plugin-gemini

v0.0.2

Published

## Overview

Downloads

124

Readme

Xpert Plugin: Gemini

Overview

@xpert-ai/plugin-gemini connects Google Gemini models to the XpertAI platform. The plugin integrates Google's Generative AI SDK so XpertAI agents can call the latest Gemini models (e.g., Gemini 1.5 Pro, Gemini 1.5 Flash) with support for multimodal inputs and function calling.

Core Features

  • Ships GeminiModule, which registers the NestJS provider strategy, lifecycle hooks, and configuration schema required by the plugin runtime.
  • Implements GeminiLargeLanguageModel, a LangChain-powered adapter that supports streaming chat completions, function calling, and token accounting callbacks for agent telemetry.
  • Shares a console-ready gemini.yaml that drives the XpertAI UI forms (icons, help links, credential prompts) for quick operator onboarding.

Installation

npm install @xpert-ai/plugin-gemini

Peer Dependencies: Ensure your host service also provides @xpert-ai/plugin-sdk, @nestjs/common, @nestjs/config, @metad/contracts, @langchain/google-genai, lodash-es, chalk, zod, and tslib. Refer to package.json for exact versions.

Enabling in XpertAI

  1. Declare the plugin before bootstrapping the XpertAI server:
    PLUGINS=@xpert-ai/plugin-gemini
  2. In the XpertAI admin console (or config file), create a model provider pointing to gemini, then add individual models that map to the specific Gemini versions you want to use.

Credentials & Model Configuration

The gemini.yaml schema backs the form fields you see in the console:

| Field | Description | | ----------------- | ------------------------------------------------------------------------------------ | | google_api_key | Required. Your Google AI Studio API Key. | | google_base_url | Optional. Base URL if you need to route requests through a proxy or custom endpoint. | | file_url | Optional. Local FILES URL prefix to optimize upload performance. |

During validation, the plugin instantiates the Google Generative AI client against the provided credentials to ensure connectivity and permissions.

Model Capabilities

  • Conversational Models: GeminiLargeLanguageModel merges provider credentials with per-model overrides, turns on streaming, and registers token usage callbacks so agent telemetry stays accurate. It supports the full range of Gemini models including gemini-1.5-pro, gemini-1.5-flash, and their experimental variants.

Development & Debugging

From the repo root, run Nx commands for this package:

cd xpertai
npx nx build @xpert-ai/plugin-gemini
npx nx test @xpert-ai/plugin-gemini

Artifacts land in xpertai/models/gemini/dist. Jest settings live in jest.config.ts, and the asset copier runs via npm run prepack before publishing.

License

This plugin is distributed under the AGPL-3.0 License located at the repository root.