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

@assemblyline-agents/gmail

v4.0.0

Published

Official Assembly Line direct Gmail API connection plugin.

Downloads

1,240

Readme

@assemblyline-agents/gmail

Official Assembly Line Gmail connection plugin.

It exposes Gmail threads, messages, attachments, drafts, and sends through a reviewed direct Gmail REST API connection. Gmail authorization is stored independently from Google Calendar and Google Drive. The package exports defineGmailConnection(options).

Install

npm install @assemblyline-agents/gmail

Create a Google OAuth web client, enable the Gmail API, and set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. Optionally set GOOGLE_REDIRECT_URI or GMAIL_API_BASE_URL. Assembly Line runs Authorization Code + PKCE, requests offline access, and stores the refreshable grant host-side. New connections enable reviewed Gmail tools without requiring an approval surface. Set access: "approval-required" if drafts and sends should pause for approval, or access: "read-only" to request only gmail.readonly.

Gmail connections also expose the reviewed email.received event. Enable the Gmail API and Pub/Sub API, then set GOOGLE_CLOUD_PROJECT, GMAIL_PUBSUB_TOPIC, and a stable random GMAIL_PUBSUB_VERIFICATION_TOKEN. The operator owns the Pub/Sub resources:

  1. Create the topic in GOOGLE_CLOUD_PROJECT.
  2. Grant serviceAccount:[email protected] the roles/pubsub.publisher role on that topic.
  3. Run assembly-line connections wire after deployment and create a Pub/Sub push subscription for the reported callback URL. Append ?token=<GMAIL_PUBSUB_VERIFICATION_TOKEN> using the actual secret value.

Assembly Line uses the user's existing Gmail OAuth grant only to create and renew users.watch; it never needs a Google Cloud service-account key and does not create or delete operator-owned Pub/Sub resources. Notifications are expanded through Gmail History into one stable event per newly received message; sent mail, drafts, spam, and trash are excluded. Add an explicit automations/*.ts event automation to start agent work.

Part of Assembly Line

This package is part of Assembly Line. See the developer documentation for setup, agent authoring, and deployment guides.

License

MIT