SkillAgentSearch skills...

Airtable

An alternate airtable client

Install / Use

/learn @kyeotic/Airtable
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

@kyeotic/airtable

This is alternative to the largely undocumented, and slightly unconventional, official client. This library is heavily inspired by the official client.

Installation

npm install @kyeotic/airtable

Quick Start

const { Client } = require('@kyeotic/airtable')
const client = new Client({
  apiKey: string,
  baseUrl: string
})
const myTable = client.base(baseId).table(tableName)

let query = myTable.query({ view: 'Grid View' })

// --- Paging ---

// AsyncIterator paging
for await (let page of query()) {
  console.log(page) /* {
    records: [Record],
    offset: string
  }*/
}

// Auto paging
let records = await query.all()

// Stream paging
await query.eachPage(async page => {
  await processPage(page.records)
})

// --- CRUD ---

/* Record: {
  id: string,
  fields: {},
  createdOn: Datetime
} */

let dbItem = await myTable.get(recordId)
let newItem = await myTable.create(record)
let updated = await myTable.update({ ...newItem.fields, name: 'updated' })
await myTable.delete(recordId)

API

The Typedoc generated docs are hosted here

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1y ago
Forks0

Languages

JavaScript

Security Score

55/100

Audited on Apr 3, 2025

No findings