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

@stagware/nocodb-sdk

v0.1.8

Published

TypeScript SDK for the NocoDB v2 API — typed clients for metadata, data, and admin operations

Readme

@stagware/nocodb-sdk

TypeScript SDK for the NocoDB v2 API — typed clients for metadata, data, and admin operations.

Install

npm install @stagware/nocodb-sdk

Quick Start

import { NocoClient, MetaApi } from '@stagware/nocodb-sdk';

const client = new NocoClient({
  baseUrl: 'https://app.nocodb.com',
  headers: { 'xc-token': 'your-api-token' },
});

const meta = new MetaApi(client);

// List all bases
const bases = await meta.listBases();
console.log(bases.list);

// Create a table
const table = await meta.createTable('base_id', {
  title: 'Users',
  table_name: 'users',
});

// CRUD on records
const rows = await client.request('GET', '/api/v2/tables/tbl_id/records');

Features

  • 50+ typed API methods — bases, tables, views, columns, filters, sorts, hooks, sources, tokens, users, comments, shared views/base, visibility rules, duplicates, app info, cloud workspaces
  • Auto-paginationfetchAllPages() fetches all pages of any paginated endpoint
  • Typed errorsAuthenticationError, NotFoundError, ValidationError, ConflictError, NetworkError
  • Retry & timeout — configurable via RetryOptions and timeoutMs
  • Tree-shakeable — ESM-only, all types exported

API Classes

NocoClient

Low-level HTTP client with error mapping, retry, and timeout.

const client = new NocoClient({
  baseUrl: 'https://app.nocodb.com',
  headers: { 'xc-token': 'token' },
  timeoutMs: 30000,
  retry: { retry: 3, retryDelay: 1000, retryStatusCodes: [429, 500, 502, 503] },
});

const result = await client.request<MyType>('GET', '/api/v2/meta/bases');
const allRows = await client.fetchAllPages<Row>('GET', '/api/v2/tables/tbl_id/records');

MetaApi

Typed methods for all metadata CRUD operations.

const meta = new MetaApi(client);

await meta.listBases();
await meta.createTable(baseId, { title: 'Tasks' });
await meta.listViews(tableId);
await meta.createViewFilter(viewId, { fk_column_id: 'col_id', comparison_op: 'eq', value: 'active' });

DataApi

Record and link operations.

const data = new DataApi(client);

await data.listLinks(tableId, linkFieldId, recordId);
await data.linkRecords(tableId, linkFieldId, recordId, [{ Id: 100 }]);

Types

All entity types are exported: Base, Table, View, Column, Filter, Sort, Row, Hook, ApiToken, BaseUser, Comment, SharedView, SharedBase, ViewColumn, FormView, GalleryView, KanbanView, GridView, AppInfo, VisibilityRule, DuplicateOptions, NcWorkspace, NcWorkspaceUser.

Response types: ListResponse<T>, PageInfo, BulkCreateResponse, BulkUpdateResponse, BulkDeleteResponse, ErrorResponse.

License

MIT