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

@ivanva/node-red-contrib-google-drive

v0.0.4

Published

Google drive access nodes for Node-RED

Downloads

472

Readme

node-red-contrib-google-drive

A Node-RED package that provides nodes to interact with Google Drive.

Npm package on npmjs.com: @ivanva/node-red-contrib-google-drive

Features

  • List files in a Google Drive folder
  • Create folders in Google Drive
  • Create, read, update, and delete files in Google Drive
  • Automatic handling of tokens and refresh_tokens

Authentication

To authenticate with Google Drive, you need to create OAuth 2.0 credentials in the Google Cloud Console. Please note that You need to have access to the google cloud console with a google account, which means you need to setup a payment method, even if you stay within the free tier.

Here's a brief overview of the steps involved:

  • Go to the Google Cloud Console.

  • Create a new project or select an existing one.

  • Navigate to "APIs & Services" > "OAuth Consent Screen" and configure the consent screen for your application. Fill the required fields:

    • Application name: NodeREDGoogleDrive
    • Support email: your email
    • Audience: External (Otherwise refres tokens will be very short-lived and requires frequent human interaction for re-authentication)
  • Navigate to "APIs & Services" > "Clients".

  • Click on "Create Credentials" and select "OAuth 2.0 Client IDs":

    • Select "Web application" as the application type.
    • Redirect URIs: your Node-RED instance URL followed by /google-drive/auth/callback (e.g., http://localhost:1880/google-drive/auth/callback).
  • Download the credentials JSON file and securely store it.

After setting up the OAuth 2.0 credentials, follow these steps to configure the Google Drive node in Node-RED:

  • Drag&drop a Google Drive node into your Node-RED workspace.
  • Double-click the node to open its configuration dialog, then click on the pencil icon next to the "Google Credentials" field to add a new credential.
  • Use the data from the previously downloaded JSON file to fill in the required fields:
    • Client ID
    • Client Secret
    • Redirect URI: the same redirect URI you specified in the Google Cloud Console.
    • Scopes: https://www.googleapis.com/auth/drive
  • Deploy The configuration to persist the credentials.
  • Reopen the Google Drive node configuration and click on the "Authenticate" button to initiate the OAuth 2.0 flow. Follow the prompts to authorize the application to access your Google Drive. This will generate and store the necessary tokens for future uses.

Nodes docs

See NODE_DOCS.md for detailed documentation of each node and its functionality.

Usage examples

Create a file and read it back

Create a file in a specified folder and read it back:

  • folderId: ID of the folder to list contents from. Get it from your browser's address bar when you are inside the folder in Google Drive: https://drive.google.com/drive/folders/FOLDERID

examples/create-read.png

JSON flow here

List content of a directory

List all files and folders in a specified Google Drive folder:

  • folderId: ID of the folder to list contents from. Get it from your browser's address bar when you are inside the folder in Google Drive: https://drive.google.com/drive/folders/FOLDERID

examples/list-files.png

JSON flow here

Delete a file

Delete a specified file from Google Drive:

  • fileId: ID of the file to delete. Get it from your browser's address bar when you have the file selected in Google Drive: https://drive.google.com/file/d/FILEID/view, or from the output of a "List Files" node.

examples/delete-file.png

JSON flow here