@byline/host-tanstack-start

中文文档
6.13.3发布于 2026/11/09MPL-2.0TypeScriptES Module近 30 天下载 1843

TanStack Start host adapter for Byline CMS — server fns, auth context, integration glue, admin shell, and route factories

原始使用文档
文档目录3 节
  1. Scope
  2. About Byline
  3. License

@byline/host-tanstack-start

TanStack Start host adapter for Byline CMS — the framework-coupled glue between Byline's framework-neutral packages and a TanStack Start application. Server functions, request-scoped auth context, integration glue for the field/admin service contracts, the admin shell (chrome + per-area page containers), and route factories that turn each host route file into a ~10-line re-export.

Scope

This package is not a thin glue layer. It contains the entire admin UI for TanStack Start hosts:

  • admin-shell/chrome/* — app bar, menu drawer, breadcrumbs, route-error boundaries, layout primitives
  • admin-shell/{collections,admin-users,admin-roles,admin-permissions,admin-account}/* — per-area page containers built on @byline/ui primitives
  • routes/* — TanStack Router file-route factories that compose the shell + page containers
  • server-fns/* — TanStack Start server functions wrapping every admin module command from @byline/admin
  • auth/* — request-scoped RequestContext resolution from session cookies
  • integrations/* — bylineFieldServices, bylineAdminServices bindings that adapt TanStack Start primitives onto the framework-neutral contracts in @byline/ui and @byline/client

Porting Byline to a different framework (Next.js, Remix, etc.) means reimplementing the equivalents of admin-shell/, routes/, and server-fns/ against that framework's router and server-action primitives. The framework-neutral packages (@byline/core, @byline/admin, @byline/client, @byline/auth, @byline/ui) stay identical across hosts.

About Byline

This package is part of Byline CMS — a developer-friendly, open-source headless CMS with versioning, editorial workflow, and content translation as first-class concerns.

For documentation, the full architecture overview, and getting started instructions, see the main repository: https://github.com/Byline-CMS/bylinecms.dev.

License

MPL-2.0

版本与发布记录

@byline/host-tanstack-start 共发布 178 个版本,首次发布于 2026/05/03;过去 12 个月发布了 178 个版本。

版本发布日期距今
6.13.3latest2026/11/09今天
6.13.22026/11/09今天
6.13.12026/11/09今天
6.13.02026/11/045 天前
6.12.12026/11/027 天前
6.12.02026/10/319 天前

关于 @byline/host-tanstack-start 的常见问题

@byline/host-tanstack-start 是什么?

TanStack Start host adapter for Byline CMS — server fns, auth context, integration glue, admin shell, and route factories

如何安装 @byline/host-tanstack-start?

在项目目录运行 npm install @byline/host-tanstack-start,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vite(^8.0.0)、react(^19.0.0)、react-dom(^19.0.0)、@tanstack/react-start(^1.167.0)、@tanstack/react-router(^1.167.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@byline/host-tanstack-start 支持 TypeScript 吗?

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

@byline/host-tanstack-start 支持 ESM 还是 CommonJS?

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

@byline/host-tanstack-start 需要什么版本的 Node.js?

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

@byline/host-tanstack-start 可以商用吗?

@byline/host-tanstack-start 使用 MPL-2.0 许可。弱 Copyleft:可以商用,也可以和闭源代码一起使用;但如果分发时修改了 MPL 授权的文件,这些文件的修改需以 MPL 开源。以上为概括,不构成法律意见,请以许可原文为准。

@byline/host-tanstack-start 的下载量有多少?

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

@byline/host-tanstack-start 还在维护吗?

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