@akanjs/devkit

中文文档
3.1.1发布于 2026/11/08MITTypeScriptES Module近 30 天下载 2.4万
原始使用文档
文档目录7 节
  1. Install
  2. Usage
  3. What It Provides
  4. Dev Server Sizing
  5. Package Boundary
  6. Requirements
  7. License

@akanjs/devkit

한국어 | Docs | npm | Runtime

Development tooling primitives for Akan.js.

@akanjs/devkit contains the build runners, workspace executors, config loaders, dependency scanners, frontend artifact builders, command decorators, prompts, and release helpers used by the Akan CLI and by framework-level tooling. It is intended for tools and package authors, not for application runtime code.

Install

Most users should install the CLI instead:

bun install -g @akanjs/cli

Install @akanjs/devkit directly only when building Akan-aware tooling:

bun add -d @akanjs/devkit

Usage

import { ApplicationBuildRunner } from "@akanjs/devkit/applicationBuildRunner";
import { AppExecutor, WorkspaceExecutor } from "@akanjs/devkit/executors";

const workspace = WorkspaceExecutor.fromRoot();
const app = AppExecutor.from(workspace, "my-app");
const runner = new ApplicationBuildRunner(app);

await runner.typecheck();
await runner.build();

Import values from the facet that owns them (@akanjs/devkit/executors, @akanjs/devkit/akanConfig, @akanjs/devkit/workflow, …). The root @akanjs/devkit entry exports types only, so loading a tool does not pull every facet into the process.

What It Provides

  • Workspace, app, library, package, and module executors.
  • akan.config.ts loading and normalization.
  • Application build, typecheck, SSR, CSR, and release runners.
  • Dependency scanning and package metadata generation helpers.
  • Frontend build transforms and RSC/SSR artifact builders.
  • Command/script decorators used by @akanjs/cli.
  • Guidelines, code generation, and the plan-then-apply workflows behind akan workflow and the Akan MCP server.
  • The shared Biome config (@akanjs/devkit/biome.base.json) and the grit lint rules every workspace extends.
  • Native app builds on the Akan native runtime (iOS, Android, macOS, Windows, Linux), store releases, and signed update releases.
  • The akan code agent engine, the tools it is given, and the shipped akan skills (@akanjs/devkit/codeAgent).

Dev Server Sizing

The dev server bounds its own memory by recycling the processes that grow, and every threshold it uses can be set from the environment. DEV_RUNTIME_KNOBS.md lists them with their defaults, the shares they derive from AKAN_MEMORY_LIMIT, and what a small container should expect.

Package Boundary

  • Runtime code should import from akanjs, including shared config types such as AppConfig, LibConfig, AppInfo, and LibInfo.
  • CLI users should install @akanjs/cli; the published CLI bundles this devkit internally.
  • Tooling authors can import @akanjs/devkit directly when they need Akan workspace introspection or build APIs.

Requirements

  • Bun >=1.4.4
  • TypeScript
  • react is an optional peer, needed only by the features that render.

License

MIT

版本与发布记录

@akanjs/devkit 共发布 614 个版本,首次发布于 2025/04/26;过去 12 个月发布了 436 个版本。

版本发布日期距今
3.1.1latest2026/11/08今天
3.1.1-rc.192026/11/07今天
3.1.1-rc.18rc2026/11/07今天
3.1.1-rc.172026/11/07今天
3.1.1-rc.162026/11/07今天
3.1.1-rc.152026/11/043 天前

其他发布通道:canary → 1.0.7-canary.5,akan-1 → 1.0.21,alpha → 3.0.0-alpha.113,beta → 3.0.0-beta.33,rc → 3.1.1-rc.18。

关于 @akanjs/devkit 的常见问题

@akanjs/devkit 是什么?

한국어 | Docs | npm | Runtime

如何安装 @akanjs/devkit?

在项目目录运行 npm install @akanjs/devkit,或使用 pnpm add / yarn add / bun add。

@akanjs/devkit 支持 TypeScript 吗?

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

@akanjs/devkit 支持 ESM 还是 CommonJS?

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

@akanjs/devkit 可以商用吗?

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

@akanjs/devkit 的下载量有多少?

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

@akanjs/devkit 还在维护吗?

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