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

@boazlai/n8n-nodes-vertex-ai

v0.1.0

Published

n8n community nodes for Google Vertex AI: Gemini context caching, batch prediction, GCS, and a chat model sub-node with cached-content support.

Readme

n8n-nodes-vertex-ai

Community n8n nodes for Google Vertex AI:

  • Vertex AI (regular node): three resources
    • Cache — Create / Get / List / Update TTL / Delete Gemini Context Caches
    • Batch — Create / Get / List / Cancel Batch Prediction Jobs (with optional internal polling)
    • GCS — Upload / Download / List objects (Vertex-oriented; not a full GCS client)
  • Vertex AI Chat Model (sub-node, AI Agent compatible): Gemini chat model with a Cached Content dropdown that lists your existing context caches.

Single credential: Google Vertex Service Account API.

Install

In n8n: Settings → Community Nodes → Installn8n-nodes-vertex-ai.

Or self-hosted manual install:

cd ~/.n8n/custom
npm install n8n-nodes-vertex-ai

Credential setup

Create a service account in your GCP project with:

  • roles/aiplatform.user
  • roles/storage.objectAdmin (only if you use the GCS resource)

Download the JSON key. In n8n, create a Google Vertex Service Account API credential and fill:

  • Service Account Emailclient_email from the JSON.
  • Private Keyprivate_key from the JSON (literal \n is accepted).
  • Project ID — your GCP project id.
  • Location — Vertex region (e.g. us-central1).

The credential test calls the Vertex publishers endpoint to verify auth.

Cache resource example

Reproduces the standard "cache a PDF for grounding" payload:

  1. Resource: Cache, Operation: Create.
  2. Model: Gemini 2.5 Flash.
  3. Display Name: Cache_Public_URL_Test.
  4. TTL: 3 Hours (or 10800 Seconds).
  5. System Instruction: Analyze the provided document to provide context for upcoming chunks.
  6. Contents → Add Content Block (role: user):
    • Add Part — Type: Text, Text: Here is the full document context to be used for grounding subsequent chunks:\n
    • Add Part — Type: File (GCS URI), MIME: application/pdf, GCS URI: gs://your-bucket/DFA2025z.pdf
  7. Tools → Add Tool → Mode: Structured → Function Declaration:
    • Name: format_final_json_response
    • Description: …
    • Parameters Schema: paste your OBJECT schema.

Batch resource example

  1. Resource: Batch, Operation: Create.
  2. Display Name: Contextual-Chunking.
  3. Model: Gemini 2.5 Flash.
  4. GCS Source URIs: gs://your-bucket/vertex-batch-input-1.jsonl.
  5. Output URI Prefix: gs://your-bucket/batchResults/.
  6. Wait For Completion: ON to block until terminal state (Poll Interval and Timeout reveal).

To poll separately, run Get with the job name returned from Create.

Chat Model with Cached Content

Add the Vertex AI Chat Model node, wire it into an AI Agent's Model port. The Cached Content dropdown is populated from cachedContents.list for the credential's project + location.

Local development

npm install
npm run build
npm run dev   # embedded n8n at http://localhost:5678

Or copy dist/ into a Docker n8n container:

docker cp dist/ n8n:/home/node/.n8n/custom/node_modules/n8n-nodes-vertex-ai/dist/
docker compose restart n8n

License

MIT