@useairfoil/producer-linear

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

Syncs issues and their history, comments, projects, initiatives, cycles, documents, customers, releases, release notes, and the lists that name their IDs from one Linear workspace. It backfills each resource, polls for changes, and uses a webhook for arch

原始使用文档
文档目录6 节
  1. Config
  2. Setup
  3. Data
  4. Limits
  5. Demo data
  6. Local development

Linear producer

Syncs issues and their history, comments, projects, initiatives, cycles, documents, customers, releases, release notes, and the lists that name their IDs from one Linear workspace. It backfills each resource, polls for changes, and uses a webhook for archives, deletes, and restores.

Config

VariableRequiredDefault
LINEAR_API_KEYyesnone
LINEAR_WEBHOOK_SECRETyesnone

Setup

  1. Create a personal API key in Linear under Settings > Account > Security & access. Choose "Only select permissions" and tick Read. Use a dedicated user, because the key sees what that user sees, including their private teams.
  2. As a workspace admin, add a webhook in Settings > Administration > API. Point it at https://<host>/webhooks/linear, pick all public teams, and tick every data change type. Use its signing secret as LINEAR_WEBHOOK_SECRET. For each private team the key can read, add a webhook for that team too. Use the same URL and set the same secret through the GraphQL API.

Data

  • Archived and trashed items stay as rows, with archived_at and trashed. Deleted items get _deleted on the tables Linear has webhooks for: issues, comments, attachments, issue labels, users, cycles, projects, project updates, project labels, initiatives, initiative updates, documents, customers, and customer needs.
  • Deletes on the other tables aren't seen, such as a removed relation or team member.
  • issue_history has one row per change, with the before and after values.
  • projects.team_ids reads up to 50 teams, and member_ids up to 100 members.
  • Customers need customer requests turned on. Releases need the Business plan.
  • Tables hold names, emails, and issue and comment text. Treat them as confidential.

Limits

  • An API key gets 2,500 requests and 3,000,000 complexity points an hour. A used-up limit waits and tries again.
  • Large resources are polled every 5 minutes, and the lists that name IDs every hour.
  • Archive, trash, and restore don't change updatedAt, so only the webhook sees them. Linear retries a webhook 3 times over about 7 hours.

Demo data

pnpm demo --size 128MiB writes made-up Linear data without Linear credentials. See the Connector Kit README for the flags and the variables it needs.

Each issue has its history, comments, and sometimes a relation, a GitHub pull request, a customer request, and a release. The workspace is written once and doesn't grow with the size: 4 teams with their workflow states, 16 users, two-week cycles, 8 projects with milestones, updates, and specs, 3 initiatives, 12 customers, and a year of monthly releases.

Local development

cd connectors/producer-linear
pnpm sandbox

pnpm start runs the hosted connector. It needs the Wings and PostgreSQL variables from the Connector Kit README.

版本与发布记录

@useairfoil/producer-linear 共发布 4 个版本,首次发布于 2026/10/29;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.0.3latest2026/11/03今天
0.0.22026/10/295 天前
0.0.12026/10/295 天前
0.0.0-stage2026/10/295 天前

关于 @useairfoil/producer-linear 的常见问题

@useairfoil/producer-linear 是什么?

从一个Linear工作区同步问题及其历史、评论、项目、计划、周期、文档、客户、发布、发布说明,以及命名其id的列表。它回填每个资源,轮询更改,并使用webhook进行arch

如何安装 @useairfoil/producer-linear?

在项目目录运行 npm install @useairfoil/producer-linear,或使用 pnpm add / yarn add / bun add。

@useairfoil/producer-linear 支持 TypeScript 吗?

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

@useairfoil/producer-linear 支持 ESM 还是 CommonJS?

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

@useairfoil/producer-linear 可以商用吗?

@useairfoil/producer-linear 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@useairfoil/producer-linear 还在维护吗?

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