omp packages

pi-google-node0.1.0

Google Calendar, Gmail, Tasks, Drive, Contacts, Forms, Docs & Sheets for Pi — pure Node, zero dependencies, works on Android (Saturn Agent / Termux).

gouravraghuwanshi Published 7 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-google-node

Google Calendar, Gmail, Tasks, Drive, Contacts, Forms, Docs & Sheets for Pi: 36 actions in one google tool.

Pure Node.js, zero dependencies, no native binary, so it runs wherever Node runs: Linux, macOS, Windows, and Android (Saturn Agent, Termux).

A Node port of pi-google-services by lucasvidela94 (MIT). That package ships a Go binary, which Android won't execute.

Install

pi install npm:pi-google-node
# or from GitHub
pi install git:github.com/gouravraghuwanshi/pi-google-node

One-time setup: your own Google OAuth client

  1. Open https://console.cloud.google.com/ and create a project.
  2. APIs & Services → Library: enable Gmail, Google Calendar, Tasks, Drive, People, Forms, Docs and Sheets APIs (only the ones you need).
  3. APIs & Services → OAuth consent screen: set it to External and add your own Gmail under Test users.
  4. Credentials → Create credentials → OAuth client ID → Desktop app, then download the JSON.
  5. Ask Pi: "log in to Google with credentials ~/Downloads/client_secret_xxx.json". It calls google with {tool: "login", args: {credentialsPath}}, a browser opens, and you approve. The client file is copied to ~/.config/pi-google-node/, so later logins don't need it.

While the consent screen is in Testing mode, Google expires the login after 7 days. Run login again, or publish the consent screen.

Use

Just ask Pi: "what's on my calendar tomorrow?", "reply to the last email from Ana saying yes", "upload report.pdf to Drive".

Service Actions
Calendar list-events, create-event, update-event, delete-event, search-events, list-calendars, get-freebusy
Gmail list-inbox, search-emails, get-email, send-email, reply-to-email
Tasks list-tasklists, list-tasks, create-task, complete-task, delete-task
Drive list-files, search-drive, upload-file, download-file, create-folder, delete-file
Contacts search-contacts, get-contact, create-contact
Forms create-form, add-form-section, add-form-question, get-form, list-responses
Docs get-doc, create-doc, append-to-doc
Sheets list-sheets, read-sheet (read-only)

CLI

npx pi-google-node login ./client_secret.json
npx pi-google-node tools
npx pi-google-node call list-events '{"timeMin":"2026-12-01T00:00:00Z","timeMax":"2026-12-02T00:00:00Z"}'

Env: GOOGLE_OAUTH_CREDENTIALS (path to the client JSON), PI_GOOGLE_NODE_DIR (config dir).

Privacy

Tokens are stored only on your device (~/.config/pi-google-node/tokens.json, mode 600) and go only to Google's APIs. The login has to be approved in a browser on the same device (loopback redirect).

License

MIT