@markdy/core 1.0.24 → 1.0.26

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.
Files changed (2) hide show
  1. package/README.md +19 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,10 +4,12 @@ The parser and AST types for [MarkdyScript](../../docs/SYNTAX.md) — a diagram-
4
4
 
5
5
  ## Features
6
6
 
7
- - **Zero runtime dependencies** — pure TypeScript, no DOM or platform APIs
8
- - **Single-pass parser** — line-by-line state machine with strict `ParseError` diagnostics
9
- - **Diagram-native grammar** — scene metadata, architecture nodes, groups, styles, beats, flow chains, annotations, visual primitives, and reusable patterns
10
- - **Focused modes** — `architecture`, `flowchart`, `tree`, `state`, `sequence`, and `constellation` compile into deterministic render-plan metadata
7
+ - **Zero runtime dependencies** — pure TypeScript, no DOM or platform APIs (~14 KB minzipped)
8
+ - **Single-pass parser** — line-by-line state machine with strict `ParseError` line-number diagnostics
9
+ - **17 Specialized Layout Engines** — `architecture`, `flowchart`, `tree`, `sequence`, `state`, `layers`, `nested`, `swimlane`, `timeline`, `gantt`, `medallion`, `flywheel`, `constellation`, `quadrant`, `pyramid`, `radar`, `venn`
10
+ - **8 Semantic Themes** — `paper`, `editorial`, `midnight`, `blueprint`, `graphite`, `nebula`, `terminal`, `sketchy`
11
+ - **Content-Adaptive Canvas Sizing** — automatically calculates optimal aspect ratio and bounds based on diagram items and topology
12
+ - **Well-Architected Governance & AST Diffing** — layer boundaries, deadlock cycle detection, gateway isolation, and semantic AST evolution
11
13
  - **Isomorphic** — runs in Node.js, Deno, Bun, edge runtimes, and the browser
12
14
 
13
15
  ## Installation
@@ -27,7 +29,14 @@ pnpm add @markdy/core
27
29
  ## Output preview
28
30
 
29
31
  <p align="center">
30
- <img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/markdy-split-editor.webp" alt="Markdy AST & DSL Editor Preview" width="900" />
32
+ <a href="https://markdy.com/playground/">
33
+ <img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/scene-url-shortener.webp" alt="Markdy Core Parser Architecture Preview" width="900" />
34
+ </a>
35
+ </p>
36
+ <p align="center">
37
+ <a href="https://markdy.com/playground/">
38
+ <img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/scene-concurrency-decision-flowchart.webp" alt="Markdy Concurrency Flowchart Preview" width="900" />
39
+ </a>
31
40
  </p>
32
41
 
33
42
  ## Usage
@@ -72,10 +81,11 @@ try {
72
81
  | `RenderPlan` | type | Positioned nodes, routed edges, group zones, sequence messages, timed cues, beat ranges |
73
82
  | `SceneMeta` | type | Scene configuration; `meta.player` is authoritative, with deprecated flat mirrors retained for compatibility |
74
83
  | `PlayerConfig` / `resolvePlayer` | type / function | Grouped playback, controls, interaction, and chrome configuration with host resolution |
75
- | `NodeDecl` | type | Node declaration (kind, id, label, style) |
76
- | `EdgeDecl` | type | Edge declaration (kind, from, to, label) |
77
- | `BeatDecl` | type | Named beat with cues |
78
- | `THEMES` / `resolveTheme` | tokens | Semantic theme palettes (`paper`, `editorial`, `nebula`, `midnight`, `blueprint`, `graphite`) |
84
+ | `generateThemeFromBrand` | `(hexColor, name?) => { light, dark }` | Generate WCAG-compliant light and dark theme palettes from any brand hex color |
85
+ | `validateArchitectureRules` | `(ast) => Diagnostic[]` | Run Well-Architected rules: cycle detection, layer boundaries, and gateway checks |
86
+ | `diffAST` | `(astA, astB) => ASTDiffResult` | Compare architecture versions, calculate diff metrics, and generate migration scenes |
87
+ | `compressUrlState` / `decompressUrlState` | `(code, opts?) => string` | Zero-dependency URL hash state encoder for shareable playground links |
88
+ | `THEMES` / `resolveTheme` | tokens / function | 8 Semantic theme palettes (`paper`, `editorial`, `nebula`, `midnight`, `blueprint`, `graphite`, `terminal`, `sketchy`) |
79
89
 
80
90
  ## Documentation
81
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/core",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Diagram-native MarkdyScript parser and compiler (auto-layout, edge routing, cue scheduling) — zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",