Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@coze/api

coze-dev2.9kMIT1.2.0TypeScript support: included

Official Coze Node.js SDK for seamless AI integration into your applications | 扣子官方 Node.js SDK,助您轻松集成 AI 能力到应用中

coze, ai, nodejs, sdk, chatbot, typescript

readme

Monorepo of Coze Orz

codecov ci

English | 简体中文

📦 Packages

This monorepo contains the following packages:

Package Description Version
@coze/api Coze API SDK npm
@coze/realtime-api Realtime API SDK npm
@coze/taro-api Taro Mini Program Coze API SDK npm

🎮 Examples

Find usage examples for each package in the examples directory:

🚀 Getting Started

Prerequisites

  • Node.js 18+ (LTS/Hydrogen recommended)
  • pnpm 9.12.0
  • Rush 5.140.0

Installation

  1. Install Node.js 18+
nvm install lts/hydrogen
nvm alias default lts/hydrogen # set default node version
nvm use lts/hydrogen
  1. Clone the repository
git clone git@github.com:coze-dev/coze-js.git
  1. Install required global dependencies
npm i -g pnpm@9.12.0 @microsoft/rush@5.140.0
  1. Install project dependencies
rush update
  1. Build the project
rush build

After that, you can start to develop projects inside this repository.

Enjoy it!

🔨 Development

Each package in this monorepo can be developed and published independently. To start developing:

  1. Navigate to the package directory:
cd packages/<package-name>
  1. Start development:
npm run start

📖 Documentation

📄 License

MIT