@tryghost/sodo-search

中文文档
1.9.7发布于 2026/11/03MITES Module构建来源已验证

Search interface for Ghost sites

原始使用文档
文档目录4 节
  1. Development
  2. Pre-requisites
  3. Running via Ghost from the monorepo root
  4. Release

Sodo Search

Search interface injected into Ghost sites.

Development

Pre-requisites

  • Run pnpm bootstrap in the Ghost monorepo root

Running via Ghost from the monorepo root

Start Ghost with the public-app watchers enabled:

pnpm dev:public

This starts the standard development environment and the Sodo Search watcher. To work on this package by itself, run these commands from this directory:

pnpm build    # one-off build
pnpm dev      # watch and rebuild the UMD JavaScript and CSS
pnpm test                  # type-check and run unit tests once
pnpm test:acceptance       # browser tests in Chromium
pnpm test:acceptance:full  # browser tests in Chromium and WebKit
pnpm lint                  # lint source and tests

Release

Patch releases are automatic. When Sodo Search changes on main, CI publishes the next patch version to npm and clears the jsDelivr cache. Sites using that major/minor line receive the patch without a Ghost release.

For an intentional minor or major release:

  1. From a clean branch, run pnpm ship and select a minor or major version
  2. Merge the release commit to main
  3. Wait for a public Ghost release to ship the new default version line

pnpm ship updates both the package version and Ghost's default Sodo Search version.

Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.

版本与发布记录

@tryghost/sodo-search 共发布 739 个版本,首次发布于 2022/07/06;过去 12 个月发布了 712 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.9.7latest2026/11/03今天
1.9.62026/10/277 天前
1.9.52026/10/1518 天前
1.9.42026/10/1420 天前
1.9.32026/10/1321 天前
1.9.22026/10/1222 天前

关于 @tryghost/sodo-search 的常见问题

@tryghost/sodo-search 是什么?

幽灵网站的搜索界面

如何安装 @tryghost/sodo-search?

在项目目录运行 npm install @tryghost/sodo-search,或使用 pnpm add / yarn add / bun add。

@tryghost/sodo-search 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/tryghost__sodo-search 是否存在。

@tryghost/sodo-search 支持 ESM 还是 CommonJS?

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

@tryghost/sodo-search 可以商用吗?

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

@tryghost/sodo-search 还在维护吗?

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