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

asasvirtuais-airtable

v1.0.1

Published

TypeScript SDK for Airtable Web API with full type safety and rate limiting

Readme

@asasvirtuais/airtable

TypeScript-first Airtable SDK with rate limiting. This package can be used as a standalone SDK or as a backend for the @asasvirtuais/crud architecture.

Installation

npm install @asasvirtuais/airtable

Features

  • 🎯 Type-safe: Full TypeScript support with generics for records and fields.
  • Rate Limiting: Built-in rate limiter (5 requests/second) to prevent API abuse.
  • 📊 Schema Support: Fetch and manage table schemas programmatically.
  • 🤝 CRUD Interface: Provides a crud() method that implements the @asasvirtuais/crud interface.

Standalone SDK Usage

You can use this package as a standalone, type-safe Airtable client.

Quick Start

import airtable from '@asasvirtuais/airtable'

// Initialize the SDK with your token
const client = airtable(process.env.AIRTABLE_TOKEN!)

// Select your base
const base = client.base('appXXXXXXXXXXXXXX')

// Select your table and define its types
const users = base.table<User.Readable, User.Writable>('Users')

// List records
const userRecords = await users.records.list()

// Create a new record
const newUser = await users.records.create({
  name: 'Jane Doe',
  email: '[email protected]'
})

Integration with @asasvirtuais/crud

This package is designed to be a backend for the @asasvirtuais/crud ecosystem. The @asasvirtuais/crud/airtable submodule uses this SDK.

1. Initialize the CRUD Adapter

Use the airtableCRUD factory from @asasvirtuais/crud/airtable.

// lib/crud.ts
import { airtableCRUD } from '@asasvirtuais/crud/airtable'

export const crud = airtableCRUD({
  token: process.env.AIRTABLE_TOKEN!,
  baseId: process.env.AIRTABLE_BASE_ID!
})

2. Use with React

You can then pass this crud instance to the database factory from @asasvirtuais/crud/react.

// app/data/react.tsx
import { database } from '@asasvirtuais/crud/react'
import { crud } from '@/lib/crud' // Your initialized adapter
import { schema } from './schema'

export const { useTable, CreateForm, ... } = database(schema, crud)

This setup allows you to switch your backend from YAML to Airtable with a one-line change in your data layer, without touching your UI components.

Direct API Access

For more granular control, you can use the direct API methods.

// List records with Airtable-specific options
const { records, offset } = await users.records.list({
  filterByFormula: "AND({active}, {age} > 18)",
  maxRecords: 100,
  sort: [{ field: 'createdAt', direction: 'desc' }],
})

// Get a single record
const record = await users.records.find('recXXXXXXXXXXXXXX')

// Update a record
const updated = await users.records.update('recXXXXXXXXXXXXXX', {
  name: 'Updated Name'
})

Schema Management

// Get table schema
const schema = await base.table('Users').schema()

console.log(schema.fields)
// [
//   { id: 'fldXXXX', name: 'Name', type: 'singleLineText' },
//   { id: 'fldYYYY', name: 'Email', type: 'email' },
// ]

License

MIT