@64mb/freelens-power

中文文档
2.20.2发布于 2026/11/06Apache-2.0ES Module近 30 天下载 7223

Power tools for Freelens Kubernetes IDE

原始使用文档
文档目录6 节
  1. Install
  2. Screenshots
  3. Features
  4. Develop
  5. CI and releases
  6. License

🔋 Freelens Power

Power tools and personal dashboards for Freelens. Built for Freelens 2.x and tested with 2.0.0.

For Freelens 1.x, use version 1.7.0 (@64mb/freelens-power@freelens-1).

Install

Installation

  • Open Freelens Extensions (Cmd+Shift+E on macOS) and install @64mb/freelens-power from npm
  • Alternatively, install a .tgz from GitHub Releases by its absolute path, or build and pack locally

Updates

  • Click Update on the Power entry or use an update notification to open the native installer and confirm replacement
  • Disable automatic checks below Enable Freelens Power in preferences
  • After updating, use Restart Freelens in the notification when convenient

Screenshots

Real extension components with synthetic websites, prompts, conversations, and disposable Kubernetes fixtures. Click an image to open it at full size.

Dashboard
Dashboard with demonstration websites
AI assistant
AI assistant with example read-only diagnostics
AI preferences
AI preferences with neutral prompts and shortcuts
Focused website cards
Dashboard card editor with an example URL and CSS selector
Resource relationships
Service graph with synthetic Gateway API routes and workload references
Resource search
Resource search with Kubernetes discovery roles
Power Logs
Filtered synthetic workload logs with structured JSON details
Log snapshots and SQL
Read-only SQL aggregation of a synthetic log snapshot
Bulk node actions
Native node table with two synthetic fixture nodes selected for bulk actions

Features

  • 🔐 Secure Node Shell: custom connection commands, optional IPv6 preference, and automatic colima ssh
  • 📜 Secret certificates: PEM chain identities, issuers, serial numbers, validity dates, and expiration details
  • 🎨 Accent themes: eight colors for controls, links, and the welcome logo
  • 🏷️ Cluster icons: searchable grid, SVG icons, editable labels and colors, and live previews
  • 🧩 Power Dashboard: reorderable website cards, focused page elements, shared sessions, pinned windows, and optional automatic refresh
  • 📈 Monitoring: CPU and memory trends, allocation rings, pinned tooltips, and node/pod charts
  • 🩺 Resource diagnostics: resource consumers, warning timelines, Pending/readiness triage, Service/HPA checks, and incident summaries
  • ⚓ Helm: fast release lists, revision history, YAML comparisons, background rollback, and confirmed values editing and deletion
  • 🖥️ Nodes: native table selection, confirmed bulk cordon/uncordon, and sequential drain respecting disruption budgets
  • 📋 Power Logs: colored workload logs, structured fields, source/level filters, local snapshots, read-only SQL, NDJSON export, and reviewable AI context
  • 🔗 Resource relationships: Service graphs connecting Ingress and Gateway API routes to pods, endpoints, owners, and nodes
  • 🔎 Fast resource search: double Shift, local metadata indexing, type/namespace filters, typo matching, resource links, and explicit AI attachments
  • 🗄️ Local metric history: optional SQLite storage, seven-day history within 100 MiB, aggregated ranges, and visible collection gaps
  • 🤖 AI assistant: Codex, Claude, Pi, or OpenAI API, cluster and dashboard chats, model controls, shortcuts, read-only discovery, and attachments
  • 🛡️ Read-only UI: hides common mutation actions without changing Kubernetes permissions
  • 🪟 Interface: reclaims the bottom status bar space; the master switch restores the native interface and preserves settings
  • ⚙️ Settings: native switches, compact dashboard editors, and JSON backup/restore of cards and prompt shortcuts
  • 🍎 macOS Dock icon: follows your accent, with a separate restore toggle

AI context can include resource identities, specifications, environment literals, and bounded logs. Recognized Secret/ConfigMap payloads and last-applied annotations are masked while keys remain visible; copies in free text may remain. Review attachments before sending. Terminal output requires explicit attachment; sent attachments stay in local history. AI SQL drafts never run automatically. OpenAI API keys are encrypted locally and excluded from settings exports; restricted keys need Responses API Write only. Dashboard AI lists widget names and links and can read bounded visible widget text on request. Dashboard websites use isolated Electron views.

Power Logs snapshots stay local, expire after one hour by default, and share a 1 GiB budget. Pinning preserves snapshots across restarts; stopping Power Logs removes unpinned captures. Settings provide retention, capture limits, storage usage, and confirmed cleanup. Writes stop when storage is full. Collection respects Kubernetes permissions; bounded tails can leave gaps. Native Pod logs remain available.

Metric history requires an active cluster view and cannot backfill gaps. Timelines combine retained events with observed changes; Pending checks explain evidence without reproducing the scheduler. Node and Helm mutations require confirmation and respect read-only/context guards. Helm values editing requires the complete installed chart or its exact repository version; the native Helm view remains accessible.

Develop

Requires Node.js 24.22.1 and pnpm 12.15.0.

pnpm install --frozen-lockfile
pnpm build
pnpm test
pnpm lint:check
pnpm pack

Use pnpm dev to rebuild on changes, then reinstall the package.

CI and releases

Pull requests and pushes to main run independent lint, type checking, unit tests, build and real Freelens UI checks against a disposable kind cluster. Scheduled checks add a light/narrow profile, restart and index refresh scenarios. See UI testing for fixtures, screenshots and coverage limits.

Run Make Release in GitHub Actions to create a version bump pull request. Merging it publishes the package to npm and the installable .tgz archive in GitHub Releases. Use Package Release with the merged pull request number to retry a failed release.

PR titles follow Conventional Commits, for example feat(ai): add Claude CLI.

License

Apache-2.0. Original Freelens template code retains its MIT license and attribution in THIRD_PARTY_LICENSES.

GitHub

版本与发布记录

@64mb/freelens-power 共发布 55 个版本,首次发布于 2026/10/21;过去 12 个月发布了 55 个版本。

版本发布日期距今
2.20.2latest2026/11/061 天前
2.20.12026/11/061 天前
2.20.02026/11/061 天前
1.7.0freelens-12026/11/061 天前
2.11.12026/11/061 天前
2.11.02026/11/062 天前

关于 @64mb/freelens-power 的常见问题

@64mb/freelens-power 是什么?

Power tools for Freelens Kubernetes IDE

如何安装 @64mb/freelens-power?

在项目目录运行 npm install @64mb/freelens-power,或使用 pnpm add / yarn add / bun add。

@64mb/freelens-power 支持 TypeScript 吗?

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

@64mb/freelens-power 支持 ESM 还是 CommonJS?

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

@64mb/freelens-power 需要什么版本的 Node.js?

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

@64mb/freelens-power 可以商用吗?

@64mb/freelens-power 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@64mb/freelens-power 的下载量有多少?

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

@64mb/freelens-power 还在维护吗?

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