@artaio/node-api

中文文档
1.13.0发布于 2026/10/17MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 3662

The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.

原始使用文档
文档目录8 节
  1. Documentation
  2. Getting Started
  3. 1. Install Arta Node Library
  4. 2. Use it to interact with our API in pure JS
  5. 3. Use it to interact with our API in TS
  6. Environment
  7. Contributing
  8. Development

Arta Node.js Library

The Arta Node library provides a seamless integration to Arta API for applications running on Node.js 18+ or any platform using Serverless JS using both Typescript or Javascript.

It is a very light package with zero runtime dependencies using only the fetch Web API.

Documentation

Please refer to Arta official documentation.

Getting Started

1. Install Arta Node Library

$ npm install @artaio/node-api

2. Use it to interact with our API in pure JS

// With top level async/await
const { Arta } = require('@artaio/node-api');
const arta = new Arta('<YOUR_API_TOKEN>');

const { items } = await arta.webhooks.list();
const myHook = items[0];

const pingResult = await myHook.ping();
console.log(pingResult);

3. Use it to interact with our API in TS

// With top level async/await
import { Arta, type Webhook } from '@artaio/node-api';
const arta: Arta = new Arta('<YOUR_API_TOKEN>');

const { items } = await arta.webhooks.list();
const myHook: Webhook = items[0];

const pingResult = await myHook.ping();
console.log(pingResult);

Environment

WARNING: Arta Node SDK was meant to be used on server side javascript, and altough it only uses WebAPIs (fetch) it shouldn't be used on browsers as it requires a Private API Key.

This is a very tiny (about 12kb minified), 0 dependencies JS SDK for interacting with Arta backend that should be able to run in any javascript backend environment that supports fetch webapi.

Contributing

Please be aware of our zero-dependency policy and ensure that there are no packages under "dependencies" in the package.json. Dev dependencies are fine, as these will not be contained in the final published package.

Development

To develop a new function on the SDK, run npm install to install all the dependencies (only dev dependencies) and then run npm run build and the compiled JS code will be stored in the dist/ folder which is the folder with the content published to NPM.

版本与发布记录

@artaio/node-api 共发布 38 个版本,首次发布于 2022/11/29;过去 12 个月发布了 12 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.13.0latest2026/10/1722 天前
1.12.22026/06/294 个月前
1.12.12026/05/295 个月前
1.12.02026/04/156 个月前
1.11.02026/04/156 个月前
1.10.02026/04/096 个月前

其他发布通道:beta → 0.29.2,deploy-draft-on-npm-publish-failure-17355fcb294e1545f5637ff9d5a6c6a27521b9ff → 1.2.2。

关于 @artaio/node-api 的常见问题

@artaio/node-api 是什么?

The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.

如何安装 @artaio/node-api?

在项目目录运行 npm install @artaio/node-api,或使用 pnpm add / yarn add / bun add。

@artaio/node-api 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@artaio/node-api 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@artaio/node-api 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.x。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@artaio/node-api 可以商用吗?

@artaio/node-api 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@artaio/node-api 的下载量有多少?

根据 npm 官方下载统计,@artaio/node-api 在 2026/10/07 – 2026/11/05 这 30 天内被下载 3,662 次,日均约 122 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@artaio/node-api 还在维护吗?

最新版本 1.13.0 发布于 2026/10/17(22 天前);至今共发布 38 个版本,其中过去 12 个月发布了 12 个;首次发布于 2022/11/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。