+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
#188[bug] urgent_app 加急推送锁屏内容兜底为「请升级至最新版本客户端」,与非加急同卡片表现不一致1 comments · 2026-05-16#236[OpenAPI 咨询] 如何查询飞书日程的会议室候补统计?0 comments · 2026-11-13#234WSClient reconnection stalls on a silent HTTP CONNECT proxy even after connectivity returns (Bun 1.4.3)0 comments · 2026-11-06#233WSClient: document or enable a safe default for half-open connection detection0 comments · 2026-11-01#228切换到现代 JS 写法0 comments · 2026-10-12#226`ReferenceError: __dirname is not defined`0 comments · 2026-10-11