larksuite /node-sdk

larksuite open sdk for nodejs

★ 300⑂ 56👁 1⑃ 44● 176▤ 0
TypeScriptMITCreated 2022-08-02
TA的项目
+0
日增长
300
stars
56
forks
1
watchers
44
prs
176
issues
0
releases

README

Feishu open interface SDK

ClientAssertion authentication for ISV apps

!GitHub Repo stars
!NPM Downloads
!NPM License


中文
 Overview
Feishu Open Platform provides a series of atomic APIs on the server side to realize diversified functions, but the actual coding process is not very smooth: when using these APIs to complete operation, a lot of extra work needs to be considered, such as token acquisition and maintenance, data encryption and decryption, request signature verification, etc.; in the actual coding process, the semantics of function calls are missing, cause mental burden.

All of these make the overall development experience poor. In order to make the open capability easy to use, we have written this SDK, which integrates all the verbose logic into built-in processing, provides a complete type hints, and provides external semantics. Programming interface to improve coding experience. 

Here are some official tutorials based on the sdk:
 Quickly develop interactive cards
 Quick Start of Personnel and Attendance Management System
 Quick access to Base
 Department personnel management based on web app
 Quick access to Contact API
 Automatic attendance management based on approval

 Concept
- Development documentation: A reference to the open interface of the open platform, a must-see for developers, you can use the search function to query documents efficiently. More introduction instructions .

- Developer background: The management background of the developer's development application, more introduction.

- Enterprise self-built Application: The application can only be installed and used within the enterprise, more introduction.

- ISV Application: The app will be listed in the ISV Application
  Display, each enterprise can choose to install, more introduction instructions.

 Installation
npm
shell script
npm install @larksuiteoapi/node-sdk

yarn

yarn add @larksuiteoapi/node-sdk


 How to use
Provides two versions of ECMAScript and CommonJS, and supports the use of native Javascript and Typescript. The examples are all taking Typescript as an example.

Typescript
typescript
import  as lark from '@larksuiteoapi/node-sdk';

CommonJS
javascript
const lark = require('@larksuiteoapi/node-sdk');

ECMAScript
javascript
import  as lark from '@larksuiteoapi/node-sdk';

 API Call
The list of all APIs on Feishu Open Platform: click here.

The SDK provides a semantic calling method. You only need to construct a client instance according to the relevant parameters, and then use the semantic method (client.business domain.resource.method) on it to complete the API call, the calling process and the calling result. There are complete types for prompting, such as sending a message to a group chat:
typescript
import  as lark from '@larksuiteoapi/node-sdk';

const client = new lark.Client({
    appId: 'app id',
    appSecret: 'app secret',
    appType: lark.AppType.SelfBuild,
    domain: lark.Domain.Feishu,
});

const res = await client.im.message.create(

Top issues

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON