Overview
The NocoDB SDK (nocodb-sdk) is a TypeScript/JavaScript library that provides programmatic access to your NocoDB databases. It is used in both the NocoDB frontend and backend, offering a consistent API for interacting with your data.
Key Features
- Full TypeScript Support: Complete type definitions for all API methods and data structures
- Database Operations: Create, read, update, and delete records across tables
- Table Management: Programmatically manage tables and their schemas
- Advanced Filtering: Build complex queries with filters, sorting, and pagination
- Authentication: Built-in support for JWT-based authentication
- Base Management: Work with multiple bases and workspaces
- Column Utilities: Helper functions for working with different column types
Architecture
The SDK is built on top of Axios and provides a strongly-typed interface to the NocoDB REST API. All API endpoints are organized into logical namespaces:auth- User authentication and session managementbase- Base-level operations and metadatadbTable- Table creation, listing, and managementdbTableRow- CRUD operations on table recordsuserProfile- User profile management
Version
Current version: 0.301.3Requirements
- Node.js >= 18
- NocoDB instance (self-hosted or cloud)
Next Steps
Installation
Install the SDK in your project
Quickstart
Get started with your first API call
Tables
Learn to work with tables
Records
Perform CRUD operations on records