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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cli4ai/notebooklm

v1.0.1

Published

NotebookLM CLI - create projects, upload documents, ask questions, generate media

Readme

NotebookLM CLI

CLI tool for Google NotebookLM - create projects, upload documents, ask questions, and generate media.

Installation

cli4ai add notebooklm

Prerequisites

  • Chrome browser with the cli4ai/chrome package
  • Logged into Google NotebookLM in the managed Chrome browser
# Start the managed Chrome browser
cli4ai run chrome launch

# Navigate to NotebookLM and log in
cli4ai run chrome navigate https://notebooklm.google.com

Commands

List Notebooks

cli4ai run notebooklm list

Create Notebook

cli4ai run notebooklm create "My Research Project"

Open Notebook

cli4ai run notebooklm open <notebook-id>

Add Sources

# Add URL source
cli4ai run notebooklm add-url <notebook-id> "https://example.com/article"

# Add text source
cli4ai run notebooklm add-text <notebook-id> "Your content here..."

List Sources

cli4ai run notebooklm sources <notebook-id>

Ask Questions

cli4ai run notebooklm ask <notebook-id> "What are the key points?"

Generate Media

# Generate audio overview (AI podcast)
cli4ai run notebooklm generate <notebook-id> audio

# Generate with custom prompt
cli4ai run notebooklm generate <notebook-id> audio --prompt "Focus on key insights"

# Other media types
cli4ai run notebooklm generate <notebook-id> video
cli4ai run notebooklm generate <notebook-id> slides
cli4ai run notebooklm generate <notebook-id> quiz
cli4ai run notebooklm generate <notebook-id> flashcards
cli4ai run notebooklm generate <notebook-id> mindmap
cli4ai run notebooklm generate <notebook-id> infographic
cli4ai run notebooklm generate <notebook-id> report
cli4ai run notebooklm generate <notebook-id> table

Check Status

cli4ai run notebooklm status <notebook-id>

Download Generated Content

cli4ai run notebooklm download <notebook-id> audio

List Media Types

cli4ai run notebooklm types

Media Types

| Type | Description | |------|-------------| | audio | AI-generated podcast discussion | | video | Video overview presentation | | slides | Slide deck | | quiz | Knowledge quiz | | flashcards | Study flashcards | | mindmap | Visual mind map | | infographic | Visual data summary | | report | Detailed written report | | table | Structured data table |

Example Workflow

# Create a new notebook
cli4ai run notebooklm create "AI Research"
# Returns: { id: "abc-123", name: "AI Research", url: "..." }

# Add sources
cli4ai run notebooklm add-url abc-123 "https://en.wikipedia.org/wiki/Artificial_intelligence"
cli4ai run notebooklm add-text abc-123 "Additional context about AI..."

# Ask questions
cli4ai run notebooklm ask abc-123 "What is artificial intelligence?"

# Generate an audio overview
cli4ai run notebooklm generate abc-123 audio --prompt "Make it engaging and educational"

# Check status
cli4ai run notebooklm status abc-123

# Download when ready
cli4ai run notebooklm download abc-123 audio

Notes

  • NotebookLM has no public API - this tool uses browser automation
  • User must be logged into Google in the managed Chrome browser
  • Audio/video generation can take several minutes
  • File upload is not supported (use URLs or paste text instead)

License

BUSL-1.1