Skip to content

allen-n/sheets-ai

Repository files navigation

SheetsAI

CC BY-NC 4.0

This project is a Google Sheets add-on developed using Google Apps Script and TypeScript. It provides access to LLMs providers conveniently inside of google sheets. Currently, it supports the following providers:

  • OpenAI

Table of Contents

Installation

  1. Clone the Repository:

    git clone https://github.com/allen-n/sheets-ai
    cd sheets-ai
  2. Install Dependencies: Ensure you have Node.js and npm installed, then run:

    npm i pnpm -g
    pnpm install
  3. Authenticate Clasp: Run the following command and follow the instructions to authenticate:

    pnpm clasp login

Development

  1. Create your .clasp.json: Create a .clasp.json at the top level of the directory that mirrors example.clasp.json.

  2. Replace the script ID with the ID of your Google Apps Script project

    • Navigate to https://docs.google.com/spreadsheets/ and open the sheet you want to develop the add-on in.
    • Click on Extensions -> Apps Script
    • Navigate to Project Settings (the gear icon.)
    • Copy the Script id listed on the settings page.
  3. Push to Google Apps Script: Use clasp to push your code to Google Apps Script:

    pnpm clasp:push # single push
    pnpm clasp:watch # watch for changes and push

Deployment

  1. Create a New Version: Create a new version of your script:

    clasp version "Your version description"
  2. Deploy as an Add-on: Follow the Google Workspace Marketplace documentation to deploy your add-on.

Usage

  • [TBD: Instructions on how to use the add-on once installed in Google Sheets.]

Testing

  • [TBD: Instructions on how to run tests, if applicable.]

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b yourUsername/YourFeature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin yourUsername/YourFeature).
  5. Open a pull request.
  6. Once approved, squash and merge your branch.

License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

CC BY-NC 4.0

About

Use any LLM, at cost, inside Google Sheets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published