@keneth80/k-chart 1.19.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.21.0 - 2026-07-25
4
+
5
+ ### Changed
6
+
7
+ - Added granular `core/*`, `series/*`, and `options/*` package exports so consumers can bundle only the renderers they use.
8
+ - Documented bundle-focused imports for embedded applications and plugin packages.
9
+
10
+ ### Tests
11
+
12
+ - Added package export resolution coverage for the core and line renderer entry points.
13
+
14
+ ### Package
15
+
16
+ - Versioned granular renderer entry points as `@keneth80/k-chart@1.21.0`.
17
+
18
+ ## 1.20.0 - 2026-07-25
19
+
20
+ ### Added
21
+
22
+ - Added the provider-neutral `@keneth80/k-chart/ai` entry point with typed `ChartPlan` contracts, a generated JSON Schema, and the machine-readable KChart capability catalog.
23
+ - Added `validateKChartAIPlan()` / `assertKChartAIPlan()` for strict capability, renderer, field-binding, option-compatibility, and JSON-safe settings validation.
24
+ - Added `compileKChartAIPlan()` / `renderKChartAIPlan()` to convert validated plans into real KChart configurations without executing model-generated source.
25
+ - Added trusted runtime settings and registered custom series compilers so applications can inject callbacks, GeoJSON, providers, credentials, and custom recipes outside the model trust boundary.
26
+ - Added `llms.txt`, natural-language intent fixtures, agent guides, Cursor/Codex/Claude Code instructions, and reusable dashboard generation prompts.
27
+
28
+ ### Changed
29
+
30
+ - Updated CI and package checks to validate generated AI metadata, 32 natural-language intent fixtures, compiler behavior, adapter credential stripping, and packaged AI exports.
31
+ - Migrated the Next.js Playground AI flow to validated `ChartPlan` JSON with separate server/client feature flags; QA and Live remain disabled by default.
32
+
33
+ ### Package
34
+
35
+ - Versioned the provider-neutral AI planning and compilation layer as `@keneth80/k-chart@1.20.0`.
36
+
3
37
  ## 1.19.0 - 2026-07-17
4
38
 
5
39
  ### Changed
package/README.md CHANGED
@@ -18,6 +18,7 @@
18
18
  <a href="https://www.npmjs.com/package/@keneth80/k-chart"><img alt="npm" src="https://img.shields.io/npm/v/%40keneth80%2Fk-chart?style=for-the-badge&label=npm&color=0ea5e9"></a>
19
19
  <a href="https://github.com/keneth80/k-chart/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/keneth80/k-chart?style=for-the-badge&color=22c55e"></a>
20
20
  <a href="https://k-chart-playground.vercel.app/"><img alt="Playground" src="https://img.shields.io/badge/Live_Playground-open-8b5cf6?style=for-the-badge"></a>
21
+ <a href="https://k-chart-bench.vercel.app/"><img alt="Benchmark" src="https://img.shields.io/badge/Live_Benchmark-view-f59e0b?style=for-the-badge"></a>
21
22
  </p>
22
23
 
23
24
  <p align="center">
@@ -36,10 +37,16 @@
36
37
  <p align="center">
37
38
  <a href="https://k-chart-playground.vercel.app/"><strong>Open Playground</strong></a>
38
39
  ·
40
+ <a href="https://k-chart-bench.vercel.app/"><strong>View Benchmark</strong></a>
41
+ ·
39
42
  <a href="#quick-start"><strong>Quick Start</strong></a>
40
43
  ·
41
44
  <a href="docs/functional-api.md"><strong>API Guide</strong></a>
42
45
  ·
46
+ <a href="docs/ai/index.md"><strong>AI & Agent Guide</strong></a>
47
+ ·
48
+ <a href="llms.txt"><strong>llms.txt</strong></a>
49
+ ·
43
50
  <a href="packages/k-chart-three/README.md"><strong>Three.js Adapter</strong></a>
44
51
  </p>
45
52
 
@@ -93,6 +100,20 @@
93
100
  <a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-three-wafer-basic?title=KChart%20Three.js%20Wafer&file=src/main.ts"><strong>Three.js Wafer</strong></a>
94
101
  </p>
95
102
 
103
+ ## Hybrid Rendering In 60 Seconds
104
+
105
+ <p align="center">
106
+ <a href="https://raw.githubusercontent.com/keneth80/k-chart/main/docs/promotion/kchart-hybrid-rendering-60s-ko.mp4">
107
+ <img src="docs/promotion/kchart-hybrid-rendering-preview.gif" alt="Watch the KChart hybrid rendering video" width="100%" />
108
+ </a>
109
+ </p>
110
+
111
+ <p align="center">
112
+ <a href="https://raw.githubusercontent.com/keneth80/k-chart/main/docs/promotion/kchart-hybrid-rendering-60s-ko.mp4"><strong>Watch the 60-second video</strong></a>
113
+ ·
114
+ <a href="docs/promotion/hybrid-rendering-ko.md"><strong>Read the Korean technical article</strong></a>
115
+ </p>
116
+
96
117
  ## Overview
97
118
 
98
119
  KChart는 TypeScript 기반 D3 하이브리드 차트 엔진입니다.
@@ -145,7 +166,7 @@ KChart의 성능 방향은 “모든 기능을 하나의 거대한 chart object
145
166
  - 수천에서 수만 개의 point를 빠르게 그려야 하면 Canvas series를 사용합니다.
146
167
  - 더 큰 line/point 데이터나 잦은 viewport 변경이 있으면 WebGL series와 LTTB downsampling을 조합합니다.
147
168
  - 3D, 지도, 지구본은 optional adapter package로 분리해 필요한 화면에서만 로드합니다.
148
- - 수치 비교가 필요한 경우 playground example 기준으로 같은 dataset, 같은 viewport, 같은 browser에서 FPS, first render time, memory를 측정하는 benchmark를 추가할 수 있습니다.
169
+ - 렌더링 성능 비교와 재현 조건은 [KChart Benchmark](https://k-chart-bench.vercel.app/)에서 확인할 수 있습니다. 결과를 해석할 때는 dataset, viewport, browser, 측정 종점과 각 라이브러리 설정을 함께 확인해야 합니다.
149
170
 
150
171
  ## Core Concept
151
172
 
@@ -252,6 +273,12 @@ npm install @keneth80/k-chart
252
273
 
253
274
  The playground demonstrates the React wrapper, chart examples, configuration editor, and AI Builder flow.
254
275
 
276
+ ## Benchmark
277
+
278
+ - Live benchmark: [https://k-chart-bench.vercel.app/](https://k-chart-bench.vercel.app/)
279
+
280
+ The benchmark publishes reproducible rendering measurements alongside the dataset size, browser environment, library versions, and measurement methodology. Use the methodology shown with each result when comparing KChart with other chart libraries.
281
+
255
282
  ## Local Development
256
283
 
257
284
  ```bash
@@ -307,6 +334,25 @@ import {downsampleLTTB} from '@keneth80/k-chart/utils';
307
334
  import {startKChartRenderWorker} from '@keneth80/k-chart/worker';
308
335
  ```
309
336
 
337
+ Applications that use only a small renderer subset can import concrete modules
338
+ to avoid bundling unrelated charts and map data:
339
+
340
+ ```ts
341
+ import {createKChart} from '@keneth80/k-chart/core/create-kchart';
342
+ import type {
343
+ KChartAxis,
344
+ KChartController,
345
+ KChartSeries
346
+ } from '@keneth80/k-chart/core/contracts';
347
+ import {createLineSeries} from '@keneth80/k-chart/series/svg-line';
348
+ import {createCanvasLineSeries} from '@keneth80/k-chart/series/canvas-line';
349
+ import {createWebglLineSeries} from '@keneth80/k-chart/series/webgl-line';
350
+ ```
351
+
352
+ Use the root or category entry points when convenience matters more than bundle
353
+ size. Use concrete module entry points in plugins and embedded applications
354
+ where only a known renderer subset is needed.
355
+
310
356
  The core calls concrete renderers only through the
311
357
  `KChartSeries.render(context)` contract.
312
358