@liceron/nexura-sdk

中文文档
0.9.1发布于 2026/11/01Apache-2.0TypeScriptES Module零依赖

TypeScript HTTP client for the Nexura Service API

原始使用文档
文档目录4 节
  1. Install
  2. Minimal example
  3. Status and limits
  4. Documentation and licence

Nexura TypeScript client

HTTP client for the local single-user Nexura Service API only. Requires a running Nexura service and a JavaScript environment with fetch (for example Node.js 18 or later).

Install

npm install @liceron/nexura-sdk

Minimal example

Start the local service with nexura-runtime serve, then:

import { NexuraClient } from "@liceron/nexura-sdk";

const client = new NexuraClient({
  baseUrl: "http://127.0.0.1:8765",
  workspaceId: "default",
});
const workflows = await client.workflows.list();
console.log(workflows);

Status and limits

Alpha (0.4). Node 24 is the tested version; other fetch-capable environments are not covered by that verification. This is an API client, with no standalone agent runtime. The open-source service is single user, this machine only. Its session token stops other web pages, not local programs that can read it; it adds no shared-service authentication.

The local session token is fetched automatically when a state-changing request needs it, and refreshed once after a token refusal (for example after a server restart). This is enabled by default with autoSessionToken: true. The server allows token retrieval from its own browser origin or local non-browser clients. You can also provide sessionToken explicitly.

Documentation and licence

See the main docs, Service and Studio and API reference. Apache-2.0, Copyright (c) 2026 Liceron; see LICENSE.

版本与发布记录

@liceron/nexura-sdk 共发布 12 个版本,首次发布于 2026/10/25;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.9.1latest2026/11/011 天前
0.9.02026/11/012 天前
0.8.02026/11/012 天前
0.7.12026/10/313 天前
0.7.02026/10/313 天前
0.6.02026/10/313 天前

关于 @liceron/nexura-sdk 的常见问题

@liceron/nexura-sdk 是什么?

Nexura服务API的TypeScript HTTP客户端

如何安装 @liceron/nexura-sdk?

在项目目录运行 npm install @liceron/nexura-sdk,或使用 pnpm add / yarn add / bun add。

@liceron/nexura-sdk 支持 TypeScript 吗?

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

@liceron/nexura-sdk 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@liceron/nexura-sdk 需要什么版本的 Node.js?

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

@liceron/nexura-sdk 可以商用吗?

@liceron/nexura-sdk 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@liceron/nexura-sdk 还在维护吗?

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