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

@mirobestbg/gas-ci

v1.1.0

Published

GAS CI is a CLI tool for building and deploying Google Apps Script (GAS) projects with modern JavaScript/TypeScript tooling. It acts as a wrapper around `clasp`, adding support for bundling, obfuscation, and automatic preservation of GAS entry-point funct

Readme

GAS CI

GAS CI is a CLI tool for building and deploying Google Apps Script (GAS) projects with modern JavaScript/TypeScript tooling. It acts as a wrapper around clasp, adding support for bundling, obfuscation, and automatic preservation of GAS entry-point functions.

This is the second version of GAS-CI. Previous iteration: GAS-CD.

Features

  • TypeScript Support: Write your GAS projects in modern TypeScript.
  • Bundling: Automatically bundles your source files into a single script suitable for GAS.
  • Obfuscation: Built-in support for code obfuscation using javascript-obfuscator.
  • Smart Exports: Automatically preserves top-level functions, classes, and variables tagged with @public or @preserveName JSDoc comments so they remain accessible to the GAS environment (e.g., for triggers or UI calls) even after bundling and obfuscation.
  • Watch Mode: Automatically re-bundle and push on file changes.

Prerequisites

  • Bun installed.
  • Clasp installed and authenticated (clasp login).

Usage

You can run the CLI via Bun:

bun run index.ts

Alternatively, link it globally or compile it to an executable.

Commands

init

Initializes a new GAS project using a built-in template.

gas init <projectName> [scriptId] [options]
  • <projectName>: Name of the folder to create.
  • [scriptId]: Optional Google Apps Script ID to clone an existing project.
  • -f, --force: Remove the project directory if it already exists.

push

Bundles, obfuscates, and pushes local changes to Google Apps Script.

gas push [options]
  • -w, --watch: Watch for changes in the src directory and push automatically.

Project Structure

A typical initialized project looks like this:

my-project/
├── .clasp.json       # Clasp configuration
├── appsscript.json   # GAS manifest
├── config.ts         # GAS CI configuration (obfuscation settings, etc.)
├── package.json
├── tsconfig.json
└── src/              # Your TypeScript source files
    └── _entrypoint.ts

Preserving Functions for GAS

Google Apps Script requires certain functions (like onEdit, doGet, or functions called from the UI) to be globally accessible. Bundlers and obfuscators often mangle or hide these names.

To ensure a function remains accessible in GAS, simply add a @public or @preserveName JSDoc tag above it:

/**
 * @public
 */
function onOpen() {
  // This function name will be preserved and accessible in GAS
}

Configuration (config.ts)

The config.ts file in your project root controls the obfuscator settings:

import { ObfuscatorOptions } from "javascript-obfuscator";

export type ConfigSchema = {
	obfuscate: {
		enabled: boolean;
		options: ObfuscatorOptions;
	};
};

export interface ConfigFile {
	config: () => Promise<ConfigSchema>;
}

export function config(): ConfigSchema {
	return {
		obfuscate: {
			enabled: true,
			options: {
                // ... obfuscator options
			}
		}
	};
}