@evotecit/canopyx

中文文档
0.4.13发布于 2026/11/12MITTypeScriptES Module零依赖构建来源已验证近 30 天下载 5708

Interactive tree grids and data tables with virtual rows, search, filters and offline HTML reports.

原始使用文档
文档目录9 节
  1. Pick a view
  2. Get started
  3. A report that opens from disk
  4. A file explorer
  5. A table for email and print
  6. Choose a delivery
  7. Guides
  8. Requirements
  9. Community and license

CanopyX

Interactive views of your own records, written in C#: tree grids, data grids, pivots, boards, calendars, plans, status matrices, change reviews and guided flows. Save a report that opens from disk, serve the view from your app, or render it as a script-free table for email and print.

Live demos · Documentation · Getting started · GitHub

A CanopyX data grid of 1,200 devices grouped by site, with health strips, patch-level bars, sign-in sparklines and a grand total

Pick a view

Tree grid
Tree grid
CanopyTreeView
Data grid
Data grid
CanopyDataGridView
Pivot
Pivot
CanopyGridPivot
Board
Board
CanopyBoard
Calendar
Calendar
CanopyCalendar
Plan
Plan
CanopyPlan
Resource timeline
Resource timeline
CanopyCalendarResources
Status matrix
Status matrix
CanopyMatrix
Change review
Change review
CanopyChangeList, CanopyTextDiff
Dataset compare
Dataset compare
CanopyDatasetComparer
Time slider
Time slider
CanopyTimeSlider
Guided flow
Guided flow
CanopyFlow
Approval path
Approval path
CanopyPath
Layer stack
Layer stack
CanopyStack
Script-free table
Script-free table
CanopyStaticHtml

Get started

dotnet add package CanopyX.Html

CanopyX.Html brings in CanopyX and the browser assets. Install CanopyX alone when you only need the model, the bundle writer or the script-free renderer.

A report that opens from disk

using CanopyX;
using CanopyX.Html;

var items = new[] { new Item("Archive", 2048, DateTime.UtcNow), new Item("Documents", 512, DateTime.UtcNow) };
CanopyDataGridView.From(items, x => x.Name).SaveHtmlPage("inventory.html");

record Item(string Name, long Size, DateTime Modified);

Every public property becomes a typed column: Size sorts as a number and Modified as a date. [CanopyColumn(Title = "…", Format = "N0")], [CanopyIgnore] and [CanopyKey] adjust them, and From also takes a DataTable or dictionary rows. To choose the columns yourself, name each one from its member, so a renamed property fails the build:

var inventory = new CanopyDataGridView<Item>("inventory", "Inventory", x => x.Name);
inventory.Column(x => x.Name, configure: column => column.Sortable = true);
inventory.Column(x => x.Size, cell: bytes => new CanopyCell(bytes) { Text = $"{bytes:N0} bytes" });
inventory.AddRows(items).SaveHtmlPage("inventory.html");

Open inventory.html in any browser. It carries its own runtime and data, so you can attach it to a ticket or put it on a file share. Numeric values drive sorting; Text is what the reader sees.

A file explorer

var files = new CanopyTreeView("files", "Project files") { Search = new CanopySearchOptions() };
files.Columns.Add(new CanopyColumn("name", "Name") { Sortable = true });
files.Columns.Add(new CanopyColumn("size", "Size") { Kind = CanopyColumnKind.Number, Sortable = true });

var projects = new CanopyNode("projects", "Projects");
var report = new CanopyNode("quarterly-report", "Quarterly report.pdf");
report.Cells["size"] = new CanopyCell(2048L) { Text = "2 KiB" };
projects.Children.Add(report);
files.Roots.Add(projects);

files.SaveHtmlPage("files.html");     // one file
files.SaveHtmlBundle("file-report");  // or a folder that loads branches on demand

A table for email and print

using CanopyX.Rendering;

string table = inventory.ToStaticHtml();

The result is an HTML table with inline styles and no scripts, ready for a mail body, a print layout or Word.

Choose a delivery

You wantWriteWhat you get
One file to attach or archiveview.SaveHtmlPage("report.html")Data and runtime in a single page
A big tree or grid on a file shareview.SaveHtmlBundle("report")A folder whose branches and rows load as the reader scrolls
Millions of database rowsCanopyX.Data + CanopyX.AspNetCorePaging, filters, summaries, export and edits answered by your server
A table in an emailview.ToStaticHtml()A script-free table that survives mail clients

Guides

Requirements

TargetSupport
.NET 8 and .NET 10Windows, Linux and macOS
.NET Standard 2.0Compatible .NET applications
.NET Framework 4.7.2Windows

The packages add no third-party runtime dependencies, and generating a report needs no Node.js, npm or build step.

Community and license

CanopyX is an Evotec project, licensed under MIT. Questions and feedback are welcome in the Evotec community on Discord. More Evotec projects are at evotec.xyz.

版本与发布记录

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

版本发布日期距今
0.4.13latest2026/11/121 天前
0.4.122026/11/121 天前
0.4.112026/11/122 天前
0.4.102026/11/112 天前
0.4.92026/11/112 天前
0.4.82026/11/104 天前

关于 @evotecit/canopyx 的常见问题

@evotecit/canopyx 是什么?

Interactive tree grids and data tables with virtual rows, search, filters and offline HTML reports.

如何安装 @evotecit/canopyx?

在项目目录运行 npm install @evotecit/canopyx,或使用 pnpm add / yarn add / bun add。

@evotecit/canopyx 支持 TypeScript 吗?

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

@evotecit/canopyx 支持 ESM 还是 CommonJS?

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

@evotecit/canopyx 需要什么版本的 Node.js?

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

@evotecit/canopyx 可以商用吗?

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

@evotecit/canopyx 的下载量有多少?

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

@evotecit/canopyx 还在维护吗?

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