@harperfast/harper-pro

中文文档
5.4.1发布于 2026/11/17Elastic-2.0CommonJS近 30 天下载 5752

Harper is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use. Harper Pro includes replication, certificate management, profiling.

原始使用文档
文档目录6 节
  1. Getting Started
  2. Open Source Core
  3. License
  4. Prerequisites
  5. Installing Harper Pro
  6. Contributing

Harper Pro

Harper Pro is the source-available distribution of Harper, built on top of the open-source Harper core. It extends the core with enterprise features including multi-node replication, certificate management, and extended profiling and analytics. It is licensed under the Elastic License 2.0.

Harper is a Node.js unified development platform that fuses database, cache, application, and messaging layers into one in-memory process. With Harper you can build ultra-high-performance services without boilerplate code and scale them horizontally.

Key Features:

Unified Runtime: Database, cache, application logic, and messaging all operate within a single in-memory Node.js process, eliminating external dependencies and reducing latency.

In-Memory Performance: Data and compute share memory space for microsecond-level access times and exceptional throughput under load.

Native Messaging: Built-in publish/subscribe messaging with Websockets and MQTT enables real-time communication between nodes and clients without external brokers.

Developer Simplicity: Annotate your data schema with @export to instantly generate REST APIs. Extend functionality by defining custom endpoints in JavaScript.


Deploy with Harper Fabric for Horizontal Scalability: Distribute workloads across multiple Harper nodes by selecting your regions and latency targets.


Getting Started

  1. Install Harper Pro
  2. Create Your First App

For full documentation, visit docs.harperdb.io.

Open Source Core

Harper Pro is built on top of Harper, the open-source core licensed under Apache-2.0. The open-source core includes the foundational database, cache, application, and messaging layers. Harper Pro extends the core with additional enterprise features.

If you want to contribute to Harper or report bugs in the underlying platform, please do so in the Harper repository.

License

Harper Pro is source-available software licensed under the Elastic License 2.0 (ELv2). You may view and modify the source, but you may not provide it as a hosted or managed service to third parties. See the LICENSE file for the full license text.

The open-source Harper core is licensed under Apache-2.0.

For more information, see the License FAQ.

Prerequisites

Harper Pro runs on any supported version of Node.js. Node.js versions that are no longer supported are marked as EoL on this page.

Harper Pro has been tested on the following platforms:

  • Linux on AMD64
  • Linux on ARM64
  • macOS on Intel
  • macOS on Apple Silicon
  • Windows

Installing Harper Pro

npm install -g --allow-scripts=re2 @harperfast/harper-pro
harper

npm 12 and later skip dependency install scripts unless allowed, and Harper Pro's web application firewall needs the native binary that re2's install script provides; npm 11 warns that it does not know the flag and runs the script anyway. In a project, add "allowScripts": { "re2": true } to your package.json instead.

Harper will prompt you for configuration options during install, and then automatically start after install.

latest points at the newest release line. To stay on an older line, install by semver range — npm install -g @harperfast/[email protected] resolves to the newest 5.2.x from the versions actually published, and is the form to reach for.

There are also latest-X.Y and next-X.Y dist-tags, but a line only gets one once a newer line has taken over and that older line publishes again — so @latest-5.2 fails with notarget between 5.3 shipping and the next 5.2 release. next tracks the newest prerelease. A release older than every tag it could move publishes under a temporary tag that is removed immediately, so it is reachable only by exact version.

Contributing

Harper Pro does not accept external contributions. To contribute to the open-source core, see the Harper contributing guide.

版本与发布记录

@harperfast/harper-pro 共发布 127 个版本,首次发布于 2026/02/24;过去 12 个月发布了 127 个版本。

版本发布日期距今
5.4.1latest2026/11/17今天
5.4.02026/11/134 天前
5.4.0-beta.4next2026/11/125 天前
5.4.0-beta.32026/11/116 天前
5.3.62026/11/0611 天前
5.4.0-beta.22026/11/0512 天前

其他发布通道:latest-5.1 → 5.1.31,next → 5.4.0-beta.4。

关于 @harperfast/harper-pro 的常见问题

@harperfast/harper-pro 是什么?

Harper is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use. Harper Pro includes replication, certificate management, profiling.

如何安装 @harperfast/harper-pro?

在项目目录运行 npm install @harperfast/harper-pro,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 harper、harperdb,可以用 npx harper 直接运行。

@harperfast/harper-pro 支持 TypeScript 吗?

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

@harperfast/harper-pro 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@harperfast/harper-pro 需要什么版本的 Node.js?

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

@harperfast/harper-pro 可以商用吗?

@harperfast/harper-pro 使用 Elastic-2.0 许可。声明的许可为 Elastic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@harperfast/harper-pro 的下载量有多少?

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

@harperfast/harper-pro 还在维护吗?

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