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

@vinnyum/newsletter-sync

v1.0.5

Published

Weekly automated newsletter to PDF converter and Google NotebookLM source synchronizer

Readme

@vinnyum/newsletter-sync

Automated, weekly CLI tool to download newsletters from Zoho Mail (via Composio), convert them into PDF files using Puppeteer, and upload them as sources directly into a Google NotebookLM notebook.

Includes support for failure alerts sent directly to your email if a sync fails.

Installation

Within the vinnyum-tools monorepo root:

npm install

To run it locally or link the bin:

npm link

CLI Usage

npx newsletter-sync [options]

Options

| Flag | Description | | --- | --- | | -c, --config <file> | Path to a JSON configuration file | | --apiKey <key> | Composio API Key (overrides env COMPOSIO_API_KEY) | | --zohoAccountId <id> | Zoho Mail Account ID | | --zohoFolderId <id> | Zoho Mail Folder ID (e.g. your newsletter folder) | | --senderFilter <email> | Filter string to identify the newsletter sender | | --notebookId <id> | Google NotebookLM ID | | --alertEmail <email> | Destination email address for critical failures | | --fromEmail <email> | From email address for Zoho Mail alert emails | | --processed <path> | Path to save the processed IDs tracking list (default: ./processed_emails.json) | | --log <path> | Path to save the execution logs (default: ./cron.log) | | --supabaseUrl <url> | Supabase Project URL (overrides env SUPABASE_URL) | | --supabaseKey <key> | Supabase Key (overrides env SUPABASE_KEY) |

Setup Example (Local Execution)

1. Create a config.json file

{
  "composioApiKey": "your-composio-api-key",
  "zohoAccountId": "your-zoho-account-id",
  "zohoFolderId": "your-zoho-folder-id",
  "senderFilter": "[email protected]",
  "notebookId": "your-notebook-id-uuid",
  "alertEmail": "[email protected]",
  "fromEmail": "[email protected]",
  "processedPath": "./processed_emails.json",
  "logPath": "./cron.log"
}

2. Run the command with config

npx newsletter-sync --config ./config.json

Setup for Cloud Execution (GitHub Actions + Supabase)

To run this tool in the cloud weekly, we use a combination of GitHub Actions and a Supabase database to track processed email IDs.

1. Setup Supabase Table

In your Supabase SQL Editor, run the following DDL query to create the tracking table:

create table processed_emails (
    message_id text primary key,
    created_at timestamp with time zone default timezone('utc'::text, now()) not null
);

2. Export NotebookLM Cookies

The nlm CLI needs your Google Account session. To get the cookies in JSON format:

  1. Log in to notebooklm.google.com in Chrome.
  2. Use a Chrome extension like EditThisCookie or Get cookies.txt as JSON to copy all active cookies as a JSON array.

3. Add Secrets in GitHub Repository

Go to your GitHub repository Settings ➜ Secrets and Variables ➜ Actions, and add the following repository secrets:

  • COMPOSIO_API_KEY: Your Composio API Key.

  • SUPABASE_URL: Your Supabase Project URL.

  • SUPABASE_KEY: Your Supabase Project Anon/Service Key.

  • NLM_COOKIES_JSON: The JSON array of cookies copied in step 2.

  • SYNC_CONFIG_JSON: A JSON config representing your Zoho and NotebookLM IDs:

    {
      "zohoAccountId": "your-zoho-account-id",
      "zohoFolderId": "your-zoho-folder-id",
      "senderFilter": "[email protected]",
      "notebookId": "your-notebook-id-uuid",
      "alertEmail": "[email protected]",
      "fromEmail": "[email protected]"
    }

Once configured, the GitHub Action workflow will run automatically every Monday at 9:00 AM UTC. You can also trigger it manually from the Actions tab in your repository.