googleworkspace/apps-script-samples

Apps Script samples for Google Workspace products.

JavaScript

5,250

523 commits

updated Jul 30, 2026

See the code

README

Google Apps Script Samples

Various sample code and projects for the Google Apps Script platform, a JavaScript platform in the cloud.

Learn more at developers.google.com.

Google APIs

AdminSDK

Advanced Services

Calendar

Classroom

Data Studio

Docs

Drive

Forms

Gmail

People

Sheets

Slides

Tasks

Templates

  • Build off a working framework for new Apps Script projects.

Triggers

  • Call an Apps Script function such as onOpen, onEdit, or onInstall in an add-on
  • Create a time-driven trigger

Codelabs

Codelab tutorials combine detailed explanation, coding exercises, and documented best practices to help engineers get up to speed with key Google technologies. Here's a list of Apps Script codelabs:

Clone using the clasp command-line tool

Learn how to clone, pull, and push Apps Script projects on the command-line using clasp.

Lint

Run ESLint over this whole repository with:

pnpm lint

This command will fix simple errors.

Type Checking

Run the TypeScript-based check over the repository with:

pnpm check

This command validates .gs files by temporarily converting them to .js and running tsc. It checks for syntax errors and type issues using JSDoc annotations.

adminsdk
apps-script
calendar
classroom
cloud
drive
google-apps-script
google-workspace
gsuite
samples

googleworkspace/apps-script-samples

Apps Script samples for Google Workspace products.

JavaScript

5,250

523 commits

updated Jul 30, 2026

See the code

README

Google Apps Script Samples

Various sample code and projects for the Google Apps Script platform, a JavaScript platform in the cloud.

Learn more at developers.google.com.

Google APIs

AdminSDK

Advanced Services

Calendar

Classroom

Data Studio

Docs

Drive

Forms

Gmail

People

Sheets

Slides

Tasks

Templates

  • Build off a working framework for new Apps Script projects.

Triggers

  • Call an Apps Script function such as onOpen, onEdit, or onInstall in an add-on
  • Create a time-driven trigger

Codelabs

Codelab tutorials combine detailed explanation, coding exercises, and documented best practices to help engineers get up to speed with key Google technologies. Here's a list of Apps Script codelabs:

Clone using the clasp command-line tool

Learn how to clone, pull, and push Apps Script projects on the command-line using clasp.

Lint

Run ESLint over this whole repository with:

pnpm lint

This command will fix simple errors.

Type Checking

Run the TypeScript-based check over the repository with:

pnpm check

This command validates .gs files by temporarily converting them to .js and running tsc. It checks for syntax errors and type issues using JSDoc annotations.

adminsdk
apps-script
calendar
classroom
cloud
drive
google-apps-script
google-workspace
gsuite
samples

Project health

Overall

5.2/10

Maintained

0/10

Code review

3/10
OpenSSF Scorecard

Significant stargazers

Parker Brown

218 followers · starred Jun 2021

Eiji Kitamura

837 followers · starred Jul 2017

Munieru

60 followers · starred Dec 2025

Andrew Haberlandt

57 followers · starred Sep 2016