@flickfyi/flkr

中文文档
0.0.210发布于 2026/11/12MITTypeScriptES Module近 30 天下载 3095

A tool for managing your Flicks

原始使用文档
文档目录5 节
  1. Development
  2. npm releases
  3. First publication
  4. Trusted publishing
  5. Private repository publishing

flkr

Edit and publish your app's Flick views from the terminal.

npm install --global @flickfyi/flkr
flkr

Requires Node.js 24 or later. Run flkr from your app's Xcode project directory.

  1. Quick start: sign in, edit views, and publish
  2. Public-key infrastructure: authorize publication with your app's trust root
  3. Continuous integration: publish from GitHub Actions with a delegate credential

Development

From the monorepo root:

bunx --no-install turbo run build:package --filter=@flickfyi/flkr
bun run --filter @flickfyi/flkr typecheck
bun run --filter @flickfyi/flkr lint
bun run --filter @flickfyi/flkr test

Build and install a release tarball locally:

bun run --filter @flickfyi/flkr pack:release
bun run --filter @flickfyi/flkr test:release "$PWD/.build-storage/flkr-release/flickfyi-flkr-0.0.0.tgz"

Packaging includes the internal JavaScript packages and their dependencies. TSRS stays an npm dependency so installation selects its native binary for the user's platform. The tarball test checks the executable, subcommands, and generated SDK discovery in a separate installation.

The pinned TSRS release ships compiler binaries for Apple Silicon macOS and Linux x64/arm64 (GNU and musl). It does not ship Windows or Intel macOS binaries.

The version comes from this package's package.json. Follow the release workflow's clean production-install steps before packing: it uses Bun's hoisted production layout with a workspace hoisting boundary so native bun pm pack includes the complete bundled dependency tree.

Pulling a canvas inside this monorepo registers its directory as a private Bun workspace. Core and Photon use workspace:*, so their source and builds stay local to the checkout. Bun updates the ordinary root manifest and lockfile; no package registration or path-link protocol is required. External Bun projects use published SDK dependencies, with React and editor type versions supplied by the SDK manifest.

npm releases

flkr-release.yml builds, checks, and installs the release tarball on PRs that change flkr or its dependencies. On merges to main, it publishes @flickfyi/flkr to npm with version 0.0.<GitHub run number>. Documentation-only changes to packages/flkr/docs/ do not publish a release.

The workspace and published package both use the name @flickfyi/flkr.

First publication

Before merging the release workflow, an npm account with publishing access to the @flickfyi scope must create the package. Use Node.js 24 or later, npm 11.5.1 or later, and an account with two-factor authentication enabled.

From the monorepo root, build and test the bootstrap version, then publish it using your own npm login:

bunx --no-install turbo run build:package --filter=@flickfyi/flkr
bun run --filter @flickfyi/flkr pack:release
bun run --filter @flickfyi/flkr test:release "$PWD/.build-storage/flkr-release/flickfyi-flkr-0.0.0.tgz"
npm login
npm publish .build-storage/flkr-release/flickfyi-flkr-0.0.0.tgz --access public

Version 0.0.0 leaves the workflow's 0.0.<run number> versions available. Complete the trusted publisher setup below before merging; no npm publishing secret is needed in GitHub.

Trusted publishing

Once the package exists, configure its npm trusted publisher for GitHub Actions:

SettingValue
Organization or userzshannon
Repositorycrayon
Workflow filenameflkr-release.yml
EnvironmentLeave empty
Allowed actionsAllow direct npm publish

Only the release job on main receives id-token: write. PRs build and test the same tarball with read-only permissions. npm exchanges the GitHub identity for a short-lived publishing credential.

After the first workflow publication succeeds, select Require two-factor authentication and disallow tokens under the package's Settings → Publishing access. Revoke any old publishing tokens for this package and remove any corresponding NPM_TOKEN GitHub secret.

Private repository publishing

npm trusted publishing supports private source repositories. This workflow publishes the public @flickfyi/flkr npm package directly from private zshannon/crayon. npm omits provenance for private repositories; publication still works. The workflow does not request provenance or change repository visibility.

Consumers can check npm registry signatures in a project where the package is installed:

npm audit signatures

Registry signatures verify package integrity at the registry; they do not establish which source commit produced the package.

Staged publishing can require a maintainer's 2FA approval for every release. This workflow uses direct publishing to keep releases automatic after merges to main.

版本与发布记录

@flickfyi/flkr 共发布 19 个版本,首次发布于 2026/10/21;过去 12 个月发布了 19 个版本。

版本发布日期距今
0.0.210latest2026/11/123 天前
0.0.2082026/11/124 天前
0.0.2042026/11/114 天前
0.0.1852026/11/0115 天前
0.0.1822026/10/3115 天前
0.0.1672026/10/3116 天前

关于 @flickfyi/flkr 的常见问题

@flickfyi/flkr 是什么?

A tool for managing your Flicks

如何安装 @flickfyi/flkr?

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

@flickfyi/flkr 支持 TypeScript 吗?

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

@flickfyi/flkr 支持 ESM 还是 CommonJS?

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

@flickfyi/flkr 需要什么版本的 Node.js?

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

@flickfyi/flkr 可以商用吗?

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

@flickfyi/flkr 的下载量有多少?

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

@flickfyi/flkr 还在维护吗?

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