@keneth80/k-chart 1.19.0 → 1.20.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 +19 -0
- package/README.md +28 -1
- package/ai/catalog.json +2291 -0
- package/ai/chart-plan.schema.json +372 -0
- package/ai/examples/intent-to-config.jsonl +32 -0
- package/ai/prompts/dashboard-system.md +42 -0
- package/docs/ai/agent-usage.md +79 -0
- package/docs/ai/chart-selection.md +65 -0
- package/docs/ai/index.md +195 -0
- package/lib/ai/catalog.d.ts +4 -0
- package/lib/ai/catalog.d.ts.map +1 -0
- package/lib/ai/catalog.js +676 -0
- package/lib/ai/catalog.js.map +1 -0
- package/lib/ai/compiler.d.ts +63 -0
- package/lib/ai/compiler.d.ts.map +1 -0
- package/lib/ai/compiler.js +950 -0
- package/lib/ai/compiler.js.map +1 -0
- package/lib/ai/contracts.d.ts +117 -0
- package/lib/ai/contracts.d.ts.map +1 -0
- package/lib/ai/contracts.js +3 -0
- package/lib/ai/contracts.js.map +1 -0
- package/lib/ai/index.d.ts +6 -0
- package/lib/ai/index.d.ts.map +1 -0
- package/lib/ai/index.js +22 -0
- package/lib/ai/index.js.map +1 -0
- package/lib/ai/schema.d.ts +272 -0
- package/lib/ai/schema.d.ts.map +1 -0
- package/lib/ai/schema.js +199 -0
- package/lib/ai/schema.js.map +1 -0
- package/lib/ai/validate-plan.d.ts +5 -0
- package/lib/ai/validate-plan.d.ts.map +1 -0
- package/lib/ai/validate-plan.js +877 -0
- package/lib/ai/validate-plan.js.map +1 -0
- package/llms.txt +37 -0
- package/package.json +19 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.20.0 - 2026-07-25
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- Added `validateKChartAIPlan()` / `assertKChartAIPlan()` for strict capability, renderer, field-binding, option-compatibility, and JSON-safe settings validation.
|
|
9
|
+
- Added `compileKChartAIPlan()` / `renderKChartAIPlan()` to convert validated plans into real KChart configurations without executing model-generated source.
|
|
10
|
+
- 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.
|
|
11
|
+
- Added `llms.txt`, natural-language intent fixtures, agent guides, Cursor/Codex/Claude Code instructions, and reusable dashboard generation prompts.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Updated CI and package checks to validate generated AI metadata, 32 natural-language intent fixtures, compiler behavior, adapter credential stripping, and packaged AI exports.
|
|
16
|
+
- Migrated the Next.js Playground AI flow to validated `ChartPlan` JSON with separate server/client feature flags; QA and Live remain disabled by default.
|
|
17
|
+
|
|
18
|
+
### Package
|
|
19
|
+
|
|
20
|
+
- Versioned the provider-neutral AI planning and compilation layer as `@keneth80/k-chart@1.20.0`.
|
|
21
|
+
|
|
3
22
|
## 1.19.0 - 2026-07-17
|
|
4
23
|
|
|
5
24
|
### 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
|
-
-
|
|
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
|