Repository navigation
Folio 0.9.0
Pre-releaseFolio 0.9.0 (pre-release)
What Folio is
Folio is a lightweight HTML/CSS rendering engine for .NET, written from scratch in C#. It renders and runs AI-written
HTML artifacts (reports, tables, charts, small interactive pages) inside a host application's own window.
What's included
- Packages:
Folio(portable static rendering),Folio.Diagrams,Folio.ScriptingandFolio.WinForms(the Windows
control), all version 0.9.0, as.nupkgfiles. Folio.ContentHost-0.9.0-win-x64.zip: the NativeAOT content host that runs page scripts in a separate process. Extract
and deploy the whole directory, includingfonts.SHA256SUMS.txt.
Supported
- Static HTML/CSS rendering, text, SVG and images, headless render to PNG, with bundled fonts.
- Interaction in the Windows control: hover, clicks, scrolling, text selection and relayout on resize.
- Scripting with the Folio-owned JavaScript engine, run in a sandboxed content process with strict limits.
- Pinned libraries from the tested scripting and canvas corpus: React 18.3.1 with Babel Standalone 7.26.4, Twind 0.16.19, D3 7.9.0, Chart.js 4.4.7, Mermaid 11.4.1 and Phaser 3.90.0.
- Canvas graphics.
- Diagrams (
Folio.Diagrams).
Advanced APIs have narrower support than a general-purpose browser; see the
consumer readiness audit. Folio is not a general-purpose browser.
Known limits in this pre-release
Measured on an AMD Ryzen 7 5800X (8 cores), Windows 11 (10.0.26300), .NET SDK 10.0.403, on 2026-11-13, at commit
f452490d30c42ace16fb278cc1fbb8f7ddcc96aa of main plus three unmerged benchmark-only branches
(test/frame-benchmarks-steady-state, test/library-startup-benchmark, test/canvas-frames-native-aot; no engine
changes). Figures are the median of the runs' medians, with the range in brackets.
- Paint budgets: warmed-up JIT inside the host application, 3 runs (5 warm-ups, 30 frames each).
- Scripted start-up, library start-up and script-driven canvas frames: the published NativeAOT content host. Scripted
and library start-up are 2 runs each. The canvas figure is one run of the probe, which itself takes the median of 4
runs of 30 frames. - Machine load: the paint runs were on a quiet machine. For the start-up runs the machine was not fully quiet (RAM use
85 to 89%, no other benchmark processes), and the second scripted run was visibly slower than the first, so treat
those figures as upper-end.
| Area | Measured | Target | Where measured |
|---|---|---|---|
| Animation frame (typical dashboard) | 10.2 ms (8.7 to 10.6): misses target | 8 ms | JIT, in-process, 3 runs |
| Hover restyle | 5.4 ms (4.4 to 5.7): misses target | 4 ms | JIT, in-process, 3 runs |
| Scroll frame | 19.3 ms (15.5 to 20.2): misses target | 8 ms | JIT, in-process, 3 runs |
| First paint in a visible Windows control | 60.2 to 65.7 ms median over two runs, p95 160 to 173 ms, 24 fixtures: misses target | 50 ms median, 150 ms p95 | Visible WinForms benchmark, from issue #722 (comment of 2026-11-11, main at 873759a); not re-run for this release |
| Scripted start-up (D1) | Cold start 291 ms (261 to 320); warm first frame 29.7 ms median of the run medians (21.8 and 37.5; per-artifact 19.5 to 67.5 ms); working set 42 to 62 MB: meets target. In the second, noisier run 3 of 12 D1 artifacts exceeded 50 ms | Warm 50 ms, cold 400 ms, 80 MB | NativeAOT host, 2 runs |
| Library start-up, ordinary libraries (D2 React/Babel, D3 Twind, D6 Mermaid) | Median 36 to 39 ms (range 30 to 95 ms); 58 to 62 MiB; 21 and 25 of 27 artifacts within 50 ms / 80 MiB: meets target for most, misses for some | 50 ms, 80 MiB | NativeAOT host, 2 runs |
| Library start-up, chart and canvas libraries (D4 D3, D5 Chart.js) | D4 median 56 ms (51 to 82), 67 MiB; D5 median 50.5 ms (47 to 56), 63 MiB; 0 of 9 (D4) and 1 and 6 of 9 (D5) within 50 ms: misses target on time, meets it on memory | 50 ms, 80 MiB | NativeAOT host, 2 runs |
| Library start-up, Phaser-class (D7 Phaser) | Median 238 ms (219 to 311); about 100 MiB (88 to 104); 0 of 9 within target: misses target on time and memory | 50 ms, 80 MiB | NativeAOT host, 2 runs |
| Script-driven canvas frame, D5 | Total p95 median 0.03 ms, worst 7.2 ms (animated-bars sample); 0 of 10 rows over 16.7 ms: meets target | 16.7 ms | NativeAOT canvas probe, 30 frames, 1 run |
| Script-driven canvas frame, D7 | Total p95 median 19.8 ms, worst 21.7 ms; 9 of 10 rows over 16.7 ms (only the snake game, 3.1 ms, is under): misses target | 16.7 ms | NativeAOT canvas probe, 30 frames, 1 run |
Heavy libraries will get their own documented start-up limits before 1.0. The library numbers above are measured
against the current single 50 ms / 80 MiB limit. The JIT canvas-frame figures were not measured for this release.
Requirements
- .NET 10 (SDK 10.0.403 or newer to build; the packages target
net10.0). - Windows for the content host and the WinForms control (
net10.0-windows). The portableFolioandFolio.Diagrams
static rendering also runs on Linux.
Verification
- CI run for the release commit: see the release's target commit on GitHub Actions.
- Checksums:
SHA256SUMS.txt, attached to this release; see releasing Folio for how to verify them.