@fias/arche-sdk

中文文档
2.35.0发布于 2026/11/14MITTypeScriptESM + CJS零依赖近 30 天下载 3746

SDK for building FIAS platform plugin arches

原始使用文档
文档目录5 节
  1. Quick Start
  2. Full developer guide
  3. Keeping an existing project current
  4. Related docs
  5. License

@fias/arche-sdk

The runtime SDK for building plugin arches on the FIAS platform. Provides React hooks, a sandboxed iframe bridge, and the in-app purchase / Vault / asset library / image generation surfaces a plugin needs at runtime.

Quick Start

Scaffold a new plugin:

npx create-fias-plugin my-plugin
cd my-plugin
npm install
npm start

Wrap your app in <FiasProvider>:

import { FiasProvider, useFiasTheme } from '@fias/arche-sdk';

function App() {
  const theme = useFiasTheme();
  if (!theme) return null;
  return <div style={{ color: theme.colors.text }}>Hello, plugin!</div>;
}

ReactDOM.createRoot(document.getElementById('root')!).render(
  <FiasProvider>
    <App />
  </FiasProvider>,
);

Full developer guide

The complete plugin-development reference — every hook, the manifest schema, IAP, Vault, the asset library, permission scopes, sandbox constraints, and submission workflow — ships with this package at:

./templates/default/CLAUDE.md

This file is the canonical AI-readable plugin guide and is identical to the CLAUDE.md / AGENTS.md written into newly scaffolded projects. Open it inside your node_modules/@fias/arche-sdk/templates/default/CLAUDE.md after install.

Keeping an existing project current

npx fias-dev sync

Updates CLAUDE.md, AGENTS.md, .cursorrules, and .github/copilot-instructions.md in your project from the latest SDK templates. Never touches package.json, fias-plugin.json, or src/.

License

MIT

版本与发布记录

@fias/arche-sdk 共发布 69 个版本,首次发布于 2026/02/22;过去 12 个月发布了 69 个版本。

版本发布日期距今
2.35.0latest2026/11/14今天
2.34.02026/11/095 天前
2.33.02026/10/3114 天前
2.32.02026/10/2916 天前
2.31.02026/10/2817 天前
2.30.02026/10/2619 天前

关于 @fias/arche-sdk 的常见问题

@fias/arche-sdk 是什么?

SDK for building FIAS platform plugin arches

如何安装 @fias/arche-sdk?

在项目目录运行 npm install @fias/arche-sdk,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0 || ^19.0.0)、react-dom(^18.0.0 || ^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 create-fias-plugin,可以用 npx create-fias-plugin 直接运行。

@fias/arche-sdk 支持 TypeScript 吗?

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

@fias/arche-sdk 支持 ESM 还是 CommonJS?

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

@fias/arche-sdk 可以商用吗?

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

@fias/arche-sdk 的下载量有多少?

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

@fias/arche-sdk 还在维护吗?

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