@astrale-domains/integrations

中文文档
0.6.10发布于 2026/11/05TypeScriptES Module近 30 天下载 2648

integrations.astrale.ai owns provider discovery and caller-owned external account connections. It exposes one provider-neutral connection-broker contract and binds it to Nango at Runtime initialization.

原始使用文档

Integrations Domain

integrations.astrale.ai owns provider discovery and caller-owned external account connections. It exposes one provider-neutral connection-broker contract and binds it to Nango at Runtime initialization.

The package is authored on the current Astrale Application model:

schema/        public catalog, Connection facts, relationships, Functions, Core, and View
schema/modules/connection/states/  closed Connection lifecycle vocabulary
queries/       named catalog and owner-scoped graph observations
mutations/     atomic catalog and Connection changes
integrations/  provider-neutral connection-broker ability
providers/     Nango protocol admission
functions/     Actions and provider plus graph Workflows
views/         Shell-bound application projection
ui/            Domain-free presentation
frontend/      Vite and TanStack Router application

Credentials are fetched from a Provider only when requested and are never written to the graph. Every Connection read first traverses owned_by from the authenticated caller, so a supplied Connection ID alone is not authority.

Development

Copy .env.example to .env.dev, set NANGO_SECRET_KEY, then run:

pnpm install
pnpm typecheck
pnpm test
pnpm lint
pnpm build
pnpm package

Domain source imports Kernel concepts only through semantic @astrale-os/sdk/* facades and owns no .spec tree.

Application logos

Catalog logos are unmodified SVGs returned by Nango's integration metadata API. They are served locally so rendering does not require a Nango API call, browser credentials, or third-party image requests.

After configuring an integration and adding its App/Core entries, run pnpm --dir integrations logos:sync from the workspace root. Pass an environment file relative to the domain directory if needed: pnpm --dir integrations logos:sync .env.prod. The file must contain an environment-level NANGO_SECRET_KEY.

The command resolves the schema catalog, looks up each integration by its actual Nango integration key, and downloads the returned logo URL into the App's logoUrl asset path. No app-specific logo mapping or hand-drawn SVG is needed. All downloads are checked before files are written. Commit the assets and generated frontend/public/provider-logos/sources.json together; the manifest records each source URL and SHA-256, and catalog tests verify every logo matches it. Normal builds and tests remain offline. Application names and an initials fallback remain available if an image cannot load.

版本与发布记录

@astrale-domains/integrations 共发布 36 个版本,首次发布于 2026/08/26;过去 12 个月发布了 36 个版本。

版本发布日期距今
0.6.10latest2026/11/052 天前
0.6.92026/11/052 天前
0.6.82026/11/044 天前
0.6.72026/11/034 天前
0.6.62026/11/025 天前
0.6.52026/10/317 天前

关于 @astrale-domains/integrations 的常见问题

@astrale-domains/integrations 是什么?

integrations.astrale.ai owns provider discovery and caller-owned external account connections. It exposes one provider-neutral connection-broker contract and binds it to Nango at Runtime initialization.

如何安装 @astrale-domains/integrations?

在项目目录运行 npm install @astrale-domains/integrations,或使用 pnpm add / yarn add / bun add。

@astrale-domains/integrations 支持 TypeScript 吗?

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

@astrale-domains/integrations 支持 ESM 还是 CommonJS?

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

@astrale-domains/integrations 需要什么版本的 Node.js?

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

@astrale-domains/integrations 可以商用吗?

@astrale-domains/integrations 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@astrale-domains/integrations 的下载量有多少?

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

@astrale-domains/integrations 还在维护吗?

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