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

zoho-creator-sdk-v2

v1.0.1

Published

Typed TypeScript/JavaScript SDK for the Zoho Creator API v2

Downloads

212

Readme

Zoho Creator SDK v2

A fully-typed TypeScript/JavaScript SDK for the Zoho Creator API v2. Works with Node.js ≥ 18, TypeScript, and modern JavaScript projects.

Generated from the Zoho Creator OpenAPI 3.0 specification.

Features

  • Full API coverage — Data, Meta, File, Bulk Read, and Publish APIs
  • TypeScript-first — Complete type definitions and type guards
  • Dual module support — CommonJS and ESM outputs
  • Zero dependencies — Uses native fetch (Node.js 18+)
  • Async token refresh — Pass a function that returns a fresh OAuth token
  • Multi-region — Supports all 8 Zoho data centers (US, IN, EU, JP, SA, CA, AU, CN)

Installation

npm i zoho-creator-sdk-v2
# From within the monorepo (local dependency)
npm install ./sdk/zoho-creator-sdk-v2

# Or link it
cd sdk/zoho-creator-sdk-v2
npm install
npm run build
npm link
# Then in your project:
npm link zoho-creator-sdk-v2

Quick Start

TypeScript

import { ZohoCreatorClient } from "zoho-creator-sdk-v2";

const client = new ZohoCreatorClient(
  {
    accessToken: "your-oauth2-access-token",
    dataCenter: "IN", // US | IN | EU | JP | SA | CA | AU | CN
    timeout: 30000,
  },
  {
    accountOwnerName: "your_workspace",
    appLinkName: "your-app",
  },
);

// Fetch records
const { data } = await client.data.getRecords("All_Orders", {
  limit: 50,
  criteria: '(Status == "Active")',
});
console.log(data);

JavaScript (CommonJS)

const { ZohoCreatorClient } = require("zoho-creator-sdk-v2");

const client = new ZohoCreatorClient(
  {
    accessToken: async () => {
      // Return a fresh token (e.g. from Zoho OAuth refresh)
      return await getAccessToken();
    },
    dataCenter: "US",
  },
  {
    accountOwnerName: "jason18",
    appLinkName: "zylker-store",
  },
);

API Reference

new ZohoCreatorClient(config, appContext)

| Parameter | Type | Description | | ----------------------------- | --------------------------------- | ---------------------------------------- | | config.accessToken | string \| () => Promise<string> | OAuth2 access token or async provider | | config.dataCenter | ZohoDataCenter | Data center region (default: 'US') | | config.baseUrl | string | Custom base URL (overrides dataCenter) | | config.timeout | number | Request timeout in ms (default: 30000) | | config.fetch | typeof fetch | Custom fetch implementation | | appContext.accountOwnerName | string | Workspace / account owner name | | appContext.appLinkName | string | Application link name |


client.data — Data APIs

| Method | Description | | ----------------------------------------- | ------------------------------- | | addRecords(form, request) | Add records to a form (max 200) | | getRecords(report, params?) | Get records quick view | | getRecordById(report, id) | Get single record detail view | | updateRecords(report, request, params?) | Update records by criteria | | updateRecordById(report, id, request) | Update a single record | | deleteRecords(report, request, params?) | Delete records by criteria | | deleteRecordById(report, id, request?) | Delete a single record |

client.meta — Meta APIs

| Method | Description | | ------------------------------------ | -------------------------------- | | getApplications() | List all accessible applications | | getApplicationsByWorkspace(owner?) | List applications in a workspace | | getForms() | List forms in the application | | getReports() | List reports in the application | | getPages() | List pages in the application | | getSections() | List sections and components | | getFields(form) | List fields in a form |

client.files — File APIs

| Method | Description | | ----------------------------- | ------------------------------------- | | downloadFile(params) | Download a file from a record field | | downloadSubformFile(params) | Download a file from a subform record | | uploadFile(params) | Upload a file to a record field |

client.bulk — Bulk Read APIs

| Method | Description | | -------------------------------------- | ----------------------------------- | | createReadJob(report, request) | Create a bulk export job | | getReadJobStatus(report, jobId) | Check job status | | downloadReadResult(report, jobId) | Download result as ZIP (CSV inside) | | waitForReadJob(report, jobId, opts?) | Poll until job completes |

client.publish — Publish APIs

| Method | Description | | ---------------------------------------- | --------------------------------- | | addRecords(form, request, privatelink) | Add records via published form | | getRecords(report, params) | Get records from published report | | getRecordById(report, id, privatelink) | Get record from published report |


Error Handling

All API errors throw typed error classes:

import {
  ZohoCreatorApiResponseError,
  ZohoCreatorNetworkError,
  ZohoCreatorTimeoutError,
} from "zoho-creator-sdk-v2";

try {
  await client.data.getRecords("Missing_Report");
} catch (error) {
  if (error instanceof ZohoCreatorApiResponseError) {
    console.error(
      "API Error:",
      error.statusCode,
      error.zohoCode,
      error.message,
    );
  } else if (error instanceof ZohoCreatorTimeoutError) {
    console.error("Timeout:", error.timeoutMs);
  } else if (error instanceof ZohoCreatorNetworkError) {
    console.error("Network Error:", error.message);
  }
}

| Error Class | When | | ----------------------------- | ------------------------- | | ZohoCreatorApiResponseError | HTTP 4xx/5xx from the API | | ZohoCreatorNetworkError | Connection/DNS failures | | ZohoCreatorTimeoutError | Request timeout exceeded | | ZohoCreatorValidationError | Invalid SDK configuration |

Type Guards

Validate unknown data at runtime:

import { isZohoApplication, isZohoCreatorApiError } from "zoho-creator-sdk-v2";

if (isZohoApplication(someObj)) {
  console.log(someObj.application_name); // typed!
}

Available guards: isZohoApplication, isZohoForm, isZohoReport, isZohoPage, isZohoField, isZohoSection, isRecordMutationResult, isBulkReadJobDetails, isZohoCreatorApiError.

Data Centers

| Code | Base URL | | ---- | ------------------------- | | US | https://zohoapis.com | | IN | https://zohoapis.in | | EU | https://zohoapis.eu | | JP | https://zohoapis.jp | | SA | https://zohoapis.sa | | CA | https://zohoapis.ca | | AU | https://zohoapis.com.au | | CN | https://zohoapis.com.cn |

Building

cd sdk/zoho-creator-sdk-v2
npm install
npm run build

Output:

  • dist/cjs/ — CommonJS modules
  • dist/esm/ — ES modules
  • dist/types/ — TypeScript declarations

License

MIT