@1password/connect

中文文档
1.4.3发布于 2026/11/05MITTypeScriptCommonJS构建来源已验证近 30 天下载 77.6万

JavaScript/Typescript SDK for 1Password Connect

原始使用文档
文档目录5 节
  1. 💾 Installation
  2. ✨ Get Started
  3. 🛠️ Development
  4. 💙 Community & Support
  5. 🔐 Security

1Password Connect SDK JS

Access your 1Password items in your JavaScript/TypeScript applications through your self-hosted 1Password Connect server.

Get started

The 1Password Connect SDK JS provides your JavaScript and TypeScript applications access to the 1Password Connect API hosted on your infrastructure and leverages the power of 1Password Secrets Automation.

This library can be used by Node.js applications, tools, and other automations to access and manage items in 1Password vaults.

This project is licensed under MIT. Use of the 1Password APIs and services accessed through these tools is governed by the 1Password API Terms of Service.

💾 Installation

You can install the SDK using npm or Yarn.

npm install @1password/connect
yarn add @1password/connect

✨ Get Started

Refer to QUICKSTART.md for code examples on how to start using this library.

🛠️ Development

From the root of the repo you can run the following make commands. You can also run make help to list out all available commands and their descriptions.

make build
make install
make test

💙 Community & Support

🔐 Security

1Password requests you practice responsible disclosure if you discover a vulnerability.

Please file requests by sending an email to [email protected].

版本与发布记录

@1password/connect 共发布 13 个版本,首次发布于 2021/04/13;过去 12 个月发布了 1 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.4.3latest2026/11/051 天前
1.4.22025/07/181.3 年前
1.4.12023/12/022 年前
1.4.02023/10/193 年前
1.3.02022/09/214 年前
1.2.02022/09/144 年前

关于 @1password/connect 的常见问题

@1password/connect 是什么?

JavaScript/Typescript SDK for 1Password Connect

如何安装 @1password/connect?

在项目目录运行 npm install @1password/connect,或使用 pnpm add / yarn add / bun add。

@1password/connect 支持 TypeScript 吗?

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

@1password/connect 支持 ESM 还是 CommonJS?

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

@1password/connect 可以商用吗?

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

@1password/connect 的下载量有多少?

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

@1password/connect 还在维护吗?

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