Skip to content

Quickstart

  1. Install:
bash
npm install holysheets
bash
yarn add holysheets
bash
pnpm install holysheets
  1. Authenticate with Google APIs (using a Service Account or OAuth).

  2. Initialize HolySheets!:

Typescript
import HolySheets from 'holysheets'

const sheets = new HolySheets({
  spreadsheetId: 'YOUR_SPREADSHEET_ID',
  auth: yourAuthClient
})

const users = sheets.base<{ name: string; email: string }>('Users')
  1. Perform Operations:
Typescript
await users.insert({ data: [{ name: 'Alice', email: 'alice@example.com' }] })
const found = await users.findMany({ where: { name: { equals: 'Alice' } } })
console.log(found.data)

Check out the guides and concepts sections for deeper explanations.

Released under the MIT License.