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

@agentapps/app.google.drive

v2.1.0

Published

Browse, upload, share, and organize Drive files, read Sheets and Slides, and edit Docs

Readme

Google Drive

Lets an agent work with the files of a Google account in Google Drive: list and search files and folders, read file metadata and the text of a Google Doc or text file, create folders and Google Docs, upload, download, copy, move, share and delete files, and read and write comments and replies. It calls the Google Drive API through the googleapis client with Google OAuth.

Limits: get-file-content returns plain text for Google Docs and text files only; it does not extract text from binary files such as PDF or Word. download-file and upload-file read and write files on the machine where the app runs (downloads go to ~/Downloads unless another path is given).

Tools

| Tool | What it does | Writes? | |---|---|---| | list-files | Lists files and folders, with filters by folder, file type and search query. | no | | search-files | Searches files by name, optionally by MIME type. | no | | get-file | Returns the details of one file or folder. | no | | get-file-content | Returns the plain-text content of a Google Doc or text file. | no | | list-comments | Lists the comments on a file. | no | | get-comment | Returns one comment by id. | no | | list-replies | Lists the replies to a comment. | no | | create-folder | Creates a folder. | yes, asks first | | create-document | Creates a native Google Doc from HTML, Markdown or plain text. | yes, asks first | | upload-file | Uploads a local file, optionally converting it to a native Google file. | yes, asks first | | download-file | Downloads a file to the local filesystem; overwrites a file with the same path. | yes, asks first | | copy-file | Creates a copy of a file. | yes, asks first | | move-file | Moves a file or folder to another folder. | yes, asks first | | share-file | Shares a file or folder with an email address. | yes, asks first | | delete-file | Deletes a file or folder. | yes, asks first | | create-comment | Adds a comment to a file. | yes, asks first | | create-reply | Replies to a comment; can also resolve it. | yes, asks first | | update-comment | Changes the content of a comment. | yes, asks first | | delete-comment | Deletes a comment. | yes, asks first |

Every tool that writes is marked sensitive, so hosts ask before running it. delete-file, delete-comment, share-file and download-file are also destructiveHint: true.

Setup

The app signs in with Google OAuth 2.0. Whoever runs the Station registers one OAuth client; each user then connects their own Google account.

  1. In the Google Cloud console, create or pick a project, enable the Google Drive API and create an OAuth client ID of type Web application. Add the redirect URI the Station uses: {station URL}/auth/callback.
  2. Store the client as system secrets, shared by every installation of the app:
agentapps config app.google.drive CLIENT_ID:<client id> CLIENT_SECRET:<client secret>
  1. Install the app and connect an account:
agentapps install app.google.drive drive
agentapps drive auth
agentapps drive tools
agentapps drive tool search-files searchTerm:report maxResults:5

The OAuth flow stores the installation secrets ACCESS_TOKEN and REFRESH_TOKEN; users never set them by hand.

Scopes requested: https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/drive.file and https://www.googleapis.com/auth/userinfo.email.

Terms of use

Use of the API is governed by the Google APIs Terms of Service and, for the data of the connected account, the Google API Services User Data Policy. Google's own quotas for the Drive API apply; this README does not list them.

Logos

TODO: record the official source of assets/logo.svg and assets/logo-mono.svg (Google's brand resources or its own site). They have been in the repository since before this README existed and their origin was not written down.