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

@ltphat2204/teable-sdk

v1.0.0

Published

Modern, type-safe TypeScript SDK for Teable with auto-pagination and Zod validation

Readme

@ltphat2204/teable-sdk

A premium, modern, and type-safe TypeScript SDK for Teable.

npm version license

Features

  • 🚀 Full TypeScript Support: Get full IDE completion and type safety for your record fields.
  • Zod Validation: Runtime configuration validation ensures your setup is correct.
  • 🔄 Auto-Pagination: Fetch thousands of records effortlessly with built-in pagination handling.
  • 📦 Multi-Format: Supports ESM, CommonJS, and UMD out of the box.
  • 🛡️ Robust Error Handling: Clear error classes and descriptive messages for API failures.
  • 🎯 Table-Centric API: Intuitive helper class for working with specific tables.

Installation

npm install @ltphat2204/teable-sdk
# or
yarn add @ltphat2204/teable-sdk
# or
pnpm add @ltphat2204/teable-sdk

Quick Start

Create a Client

import { createTeableClient } from '@ltphat2204/teable-sdk';

const client = createTeableClient({
  baseURL: 'https://app.teable.io',
  token: 'your_api_token_here',
});

Working with a Specific Table (Recommended)

This approach gives you the best type safety and developer experience.

interface MyFields {
  Name: string;
  Status: 'Active' | 'Inactive';
  Age: number;
}

const table = client.table<MyFields>('your_table_id');

// List records
const { records } = await table.listRecords({
  take: 10,
  filter: { Name: { is: 'John' } }
});

// Get all records (auto-pagination)
const allRecords = await table.getAllRecords();

// Create a record
const newRecord = await table.createRecord({
  Name: 'Jane Doe',
  Status: 'Active',
  Age: 25,
});

// Update a record
await table.updateRecord('record_id', {
  Status: 'Inactive',
});

Generic Record Operations

If you prefer a more stateless approach or need to dynamic table IDs:

const records = await client.records.get('table_id', { take: 50 });

API Documentation

TeableClient

The main entry point for the SDK.

  • table<TFields>(tableId: string): Returns a TeableTable instance.
  • records: Access the generic Records API.
  • http: Direct access to the Axios instance.

TeableTable

A helper class for a specific table.

  • listRecords(options): List records with filtering, sorting, and pagination.
  • getAllRecords(options): Fetch all records, automatically handling pagination.
  • getRecord(recordId, options): Fetch a single record.
  • createRecord(fields, options): Create a single record.
  • createRecords(records, options): Bulk create records.
  • updateRecord(recordId, fields, options): Update a single record.
  • updateRecords(records, options): Bulk update records.
  • deleteRecord(recordId): Delete a single record.
  • deleteRecords(recordIds): Bulk delete records.
  • findRecord(filter, options): Find the first record matching a filter.
  • getFields(): Get table field metadata.

License

MIT © ltphat2204