@markdy/core 1.5.7 → 1.5.8
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/README.md +19 -18
- package/dist/index.d.ts +6 -1
- package/dist/index.js +212 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://markdy.com/playground/"><img src="https://img.shields.io/badge/⚡_Live_Studio-markdy.com%2Fplayground-3b82f6?style=for-the-badge" alt="Live Studio" /></a>
|
|
5
5
|
<a href="https://markdy.com/docs/"><img src="https://img.shields.io/badge/📖_Docs-Documentation-10b981?style=for-the-badge" alt="Documentation" /></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@markdy/core"><img src="https://img.shields.io/npm/dm/%40markdy%2Fcore?style=for-the-badge&logo=npm&color=cb3837&label=npm%20downloads" alt="npm downloads" /></a>
|
|
6
7
|
<a href="https://marketplace.visualstudio.com/items?itemName=hoangyell.markdy-vscode"><img src="https://img.shields.io/badge/🔌_VS_Code-Extension-8b5cf6?style=for-the-badge" alt="VS Code Extension" /></a>
|
|
7
8
|
<a href="https://github.com/sponsors/HoangYell"><img src="https://img.shields.io/badge/📐_Pro_Blueprints-Architecture_Kits-f59e0b?style=for-the-badge" alt="Pro Architecture Blueprints" /></a>
|
|
8
9
|
<a href="https://github.com/sponsors/HoangYell"><img src="https://img.shields.io/badge/💖_Sponsor-Support_Markdy-ea4aaa?style=for-the-badge" alt="Sponsor Markdy" /></a>
|
|
9
10
|
</p>
|
|
10
11
|
|
|
11
|
-
The zero-dependency parser, dynamic port multiplexer, and AST routing engine for [MarkdyScript](https://markdy.com/docs/)
|
|
12
|
+
The zero-dependency parser, dynamic port multiplexer, and AST routing engine for [MarkdyScript](https://markdy.com/docs/): a diagram-native DSL for animated architecture diagrams that AI agents generate reliably.
|
|
12
13
|
|
|
13
14
|
> 🚀 **Try it live**: Test MarkdyScript in the browser at **[markdy.com/playground](https://markdy.com/playground/)**
|
|
14
15
|
> 📚 **Documentation**: Complete syntax guide and examples at **[markdy.com/docs](https://markdy.com/docs/)**
|
|
@@ -17,17 +18,17 @@ The zero-dependency parser, dynamic port multiplexer, and AST routing engine for
|
|
|
17
18
|
|
|
18
19
|
## Features
|
|
19
20
|
|
|
20
|
-
- **Zero runtime dependencies
|
|
21
|
-
- **Single-pass parser
|
|
22
|
-
- **Dynamic Port Multiplexer & Smooth Router
|
|
23
|
-
- **Code Provenance & Git In-Tree Grounding
|
|
24
|
-
- **Architectural Evolution & Git-Diff Matrix
|
|
25
|
-
- **Native Vector Symbol Registry
|
|
26
|
-
- **17 Specialized Layout Engines
|
|
27
|
-
- **
|
|
28
|
-
- **Content-Adaptive Canvas Sizing
|
|
29
|
-
- **Well-Architected Governance & AST Diffing
|
|
30
|
-
- **Isomorphic
|
|
21
|
+
- **Zero runtime dependencies**: pure TypeScript, no DOM or platform APIs (~14 KB minzipped)
|
|
22
|
+
- **Single-pass parser**: line-by-line state machine with strict `ParseError` line-number diagnostics
|
|
23
|
+
- **Dynamic Port Multiplexer & Smooth Router**: obstacle-aware orthogonal Manhattan routing with balanced multi-lane fan-in/fan-out and smooth fillet curves
|
|
24
|
+
- **Code Provenance & Git In-Tree Grounding**: anchor architecture nodes directly to source files (`@src="path/file.ts#L10-L40"`) with automated path traversal security and bounds validation
|
|
25
|
+
- **Architectural Evolution & Git-Diff Matrix**: deep structural and visual comparison of architecture states with auto-generated animated migration storyboards
|
|
26
|
+
- **Native Vector Symbol Registry**: zero-dependency vector SVG icons for 35+ top cloud, web, database, runtime, and messaging technologies (`vercel`, `nextjs`, `hono`, `neon`, `clerk`, `stripe`, `supabase`, `turborepo`, `drizzle`, `bun`, `vitest`, `biome`, `inngest`, `tailwind`, `react`, `astro`)
|
|
27
|
+
- **17 Specialized Layout Engines**: `architecture`, `flowchart`, `tree`, `sequence`, `state`, `layers`, `nested`, `swimlane`, `timeline`, `gantt`, `medallion`, `flywheel`, `constellation`, `quadrant`, `pyramid`, `radar`, `venn`
|
|
28
|
+
- **12 Semantic Themes**: `paper`, `editorial`, `cad`, `cad-dark`, `midnight`, `blueprint`, `graphite`, `nebula`, `terminal`, `sketchy`, `ink`, `doodle`
|
|
29
|
+
- **Content-Adaptive Canvas Sizing**: automatically calculates optimal aspect ratio and bounds based on diagram items and topology
|
|
30
|
+
- **Well-Architected Governance & AST Diffing**: layer boundaries, deadlock cycle detection, gateway isolation, and semantic AST evolution
|
|
31
|
+
- **Isomorphic**: runs in Node.js, Deno, Bun, edge runtimes, and the browser
|
|
31
32
|
|
|
32
33
|
## Installation
|
|
33
34
|
|
|
@@ -102,12 +103,12 @@ try {
|
|
|
102
103
|
|
|
103
104
|
## Ecosystem & Documentation
|
|
104
105
|
|
|
105
|
-
- ⚡ **[Interactive Studio / Playground](https://markdy.com/playground/)
|
|
106
|
-
- 📖 **[Syntax Guide & Reference](https://markdy.com/docs/)
|
|
107
|
-
- 🌟 **[Canonical Blueprints](https://markdy.com/examples/)
|
|
108
|
-
- 🤖 **[Agent Engineering Guide](https://markdy.com/agent/)
|
|
109
|
-
- 🔌 **[VS Code Marketplace Extension](https://marketplace.visualstudio.com/items?itemName=hoangyell.markdy-vscode)
|
|
110
|
-
- 📦 **[GitHub Repository](https://github.com/HoangYell/markdy-com)
|
|
106
|
+
- ⚡ **[Interactive Studio / Playground](https://markdy.com/playground/)**: edit MarkdyScript with instant live preview in your browser
|
|
107
|
+
- 📖 **[Syntax Guide & Reference](https://markdy.com/docs/)**: complete language specification and keywords
|
|
108
|
+
- 🌟 **[Canonical Blueprints](https://markdy.com/examples/)**: production-grade distributed system and cloud architectures
|
|
109
|
+
- 🤖 **[Agent Engineering Guide](https://markdy.com/agent/)**: instructions for LLMs (Claude, GPT, Gemini) to generate valid Markdy
|
|
110
|
+
- 🔌 **[VS Code Marketplace Extension](https://marketplace.visualstudio.com/items?itemName=hoangyell.markdy-vscode)**: syntax highlighting and live preview in editor
|
|
111
|
+
- 📦 **[GitHub Repository](https://github.com/HoangYell/markdy-com)**: source code, benchmarks, and issue tracker
|
|
111
112
|
|
|
112
113
|
## 📐 Production Architecture Blueprints & Pro Support
|
|
113
114
|
|
package/dist/index.d.ts
CHANGED
|
@@ -706,6 +706,11 @@ declare const VECTOR_SYMBOLS: Record<string, VectorSymbol>;
|
|
|
706
706
|
* Resolves a vector symbol definition by key or normalized alias.
|
|
707
707
|
*/
|
|
708
708
|
declare function resolveVectorSymbol(nameOrAlias: string): VectorSymbol | null;
|
|
709
|
+
/**
|
|
710
|
+
* Returns the canonical SVGL CDN URL for a given brand name or slug.
|
|
711
|
+
* Serves as an unbundled fallback when an icon is not directly embedded in the registry.
|
|
712
|
+
*/
|
|
713
|
+
declare function resolveBrandLogoUrl(nameOrAlias: string): string;
|
|
709
714
|
/**
|
|
710
715
|
* Returns a standalone SVG snippet string for a vector symbol.
|
|
711
716
|
*/
|
|
@@ -1150,4 +1155,4 @@ interface AutoHealResult {
|
|
|
1150
1155
|
*/
|
|
1151
1156
|
declare function autoHealArchitectureDrift(ast: DiagramAST, report: ArchitectureDriftReport, existingFiles?: string[]): AutoHealResult;
|
|
1152
1157
|
|
|
1153
|
-
export { ARCHITECTURE_RECIPES, ARCH_RULE_PRESETS, type AnnotationDecl, type ArchRuleType, type ArchitectureDriftReport, type ArchitecturePreset, type ArchitectureRecipe, type ArchitectureRecommendation, type ArchitectureRule, type ArchitectureViolation, type AutoHealResult, type AutoRepairResult, BEAT_CUE_KEYWORDS, type BeatDecl, type BeatRange, type Box, type BrokenAnchorDrift, type C4Level, type C4LevelViewExport, type C4ModelReport, type C4NodeMeta, CUE_ALIASES, type CardinalPort, type CodeProvenanceAnchor, type CodeProvenanceDiagnostic, type CodeProvenanceVerificationReport, type Cue, DIAGRAM_TYPES, type DefaultThemesConfig, type Diagnostic, type DiagnosticIssue, type DiagramAST, type DiagramContext, type DiagramDiffResult, type DiagramQualityMetrics, type DiagramType, type DiffChangeType, EDGE_OPERATORS, type EdgeDecl, type EdgeDiff, type EdgeKind, type EdgeSelector, type ExtractedBeat, type ExtractedGroup, type ExtractedNode, type FlowSegment, type GhostTextSuggestion, type GroupBoundary, type GroupDecl, type GroupDiff, type IntelliCodeItem, type IntelliCodeItemKind, type LayoutDirection, type MarkdyConfig, NODE_ALIASES, NODE_KINDS, type NodeDecl, type NodeDiff, type NodeSelector, type NodeShape, OUTPUT_PRESETS, type OrphanCodeServiceDrift, type OutputPreset, PLAYER_FLAT_KEYS, PLAYER_GROUPS, POPULAR_TECHS, ParseError, type ParseOptions, type ParseResult, type PatternDecl, type PatternRecommendationResult, type PlayerChromeConfig, type PlayerConfig, type PlayerControlsConfig, type PlayerInteractionConfig, type PlayerOverrides, type PlayerPlaybackConfig, type PlayerProgress, type PlayerScope, type Point, type PortLane, type PositionedNode, type QualityCheckItem, type QualityGateOptions, type QualityGateReport, type QualityProfile, type RenderPlan, type RepairPromptBundle, type ResolvedPlayer, type RouteOptions, type RoutedEdge, type RoutedPath, type RuleSeverity, SCENE_KEYS, type SceneMeta, type SemanticProfile, type SequenceActivation, type SequenceMessage, type StyleDecl, type SyntaxDiagnosticReport, type SynthesizedRecipeResult, TECHNICAL_NODE_KINDS, TECHNICAL_NODE_TYPES, THEMES, type TechPreset, type ThemeGeneratorOptions, type ThemeTokens, type TimedCue, type TreeBus, VECTOR_SYMBOLS, VISUAL_PRIMITIVE_TYPES, type VectorSymbol, allocatePortLanes, analyzeAndBuildRepairPrompt, analyzeC4Model, applyPlayerSetting, autoHealArchitectureDrift, buildSmoothSvgPath, canonicalNodeKind, classifyTechnology, compile, compilePlan, compressMarkdyToUrlHash, computeAdaptiveDimensions, computeNodeDimensions, damerauLevenshteinDistance, decompressMarkdyFromUrlHash, detectArchitectureDrift, diagnoseMarkdyCode, diffDiagramASTs, exportC4LevelViews, extractDiagramCodeAnchors, extractDiagramContext, filterC4Hierarchy, findClosestMatch, formatScene, generateC4Storyboard, generateThemeFromBrand, getArchitectureRecipe, getArchitectureSuggestions, getBoxPortPosition, getIntelliCodeCompletions, humanizeId, inferNodeC4Level, listArchitectureRecipes, listAvailableSymbols, listOutputPresets, nodeRole, parse, parseAndCompile, parseCodeAnchor, predictNextLineSuggestion, recommendArchitecturePattern, renderSymbolSvg, repairMarkdyCode, resolveArchitectureConfig, resolveOutputPreset, resolvePlayer, resolveTheme, resolveVectorSymbol, routeOrthogonalEdge, selectOptimalPorts, synthesizeCustomRecipe, validateArchitecture, validateC4Containment, verifyCodeAnchorsWithReader, verifyDiagramQuality };
|
|
1158
|
+
export { ARCHITECTURE_RECIPES, ARCH_RULE_PRESETS, type AnnotationDecl, type ArchRuleType, type ArchitectureDriftReport, type ArchitecturePreset, type ArchitectureRecipe, type ArchitectureRecommendation, type ArchitectureRule, type ArchitectureViolation, type AutoHealResult, type AutoRepairResult, BEAT_CUE_KEYWORDS, type BeatDecl, type BeatRange, type Box, type BrokenAnchorDrift, type C4Level, type C4LevelViewExport, type C4ModelReport, type C4NodeMeta, CUE_ALIASES, type CardinalPort, type CodeProvenanceAnchor, type CodeProvenanceDiagnostic, type CodeProvenanceVerificationReport, type Cue, DIAGRAM_TYPES, type DefaultThemesConfig, type Diagnostic, type DiagnosticIssue, type DiagramAST, type DiagramContext, type DiagramDiffResult, type DiagramQualityMetrics, type DiagramType, type DiffChangeType, EDGE_OPERATORS, type EdgeDecl, type EdgeDiff, type EdgeKind, type EdgeSelector, type ExtractedBeat, type ExtractedGroup, type ExtractedNode, type FlowSegment, type GhostTextSuggestion, type GroupBoundary, type GroupDecl, type GroupDiff, type IntelliCodeItem, type IntelliCodeItemKind, type LayoutDirection, type MarkdyConfig, NODE_ALIASES, NODE_KINDS, type NodeDecl, type NodeDiff, type NodeSelector, type NodeShape, OUTPUT_PRESETS, type OrphanCodeServiceDrift, type OutputPreset, PLAYER_FLAT_KEYS, PLAYER_GROUPS, POPULAR_TECHS, ParseError, type ParseOptions, type ParseResult, type PatternDecl, type PatternRecommendationResult, type PlayerChromeConfig, type PlayerConfig, type PlayerControlsConfig, type PlayerInteractionConfig, type PlayerOverrides, type PlayerPlaybackConfig, type PlayerProgress, type PlayerScope, type Point, type PortLane, type PositionedNode, type QualityCheckItem, type QualityGateOptions, type QualityGateReport, type QualityProfile, type RenderPlan, type RepairPromptBundle, type ResolvedPlayer, type RouteOptions, type RoutedEdge, type RoutedPath, type RuleSeverity, SCENE_KEYS, type SceneMeta, type SemanticProfile, type SequenceActivation, type SequenceMessage, type StyleDecl, type SyntaxDiagnosticReport, type SynthesizedRecipeResult, TECHNICAL_NODE_KINDS, TECHNICAL_NODE_TYPES, THEMES, type TechPreset, type ThemeGeneratorOptions, type ThemeTokens, type TimedCue, type TreeBus, VECTOR_SYMBOLS, VISUAL_PRIMITIVE_TYPES, type VectorSymbol, allocatePortLanes, analyzeAndBuildRepairPrompt, analyzeC4Model, applyPlayerSetting, autoHealArchitectureDrift, buildSmoothSvgPath, canonicalNodeKind, classifyTechnology, compile, compilePlan, compressMarkdyToUrlHash, computeAdaptiveDimensions, computeNodeDimensions, damerauLevenshteinDistance, decompressMarkdyFromUrlHash, detectArchitectureDrift, diagnoseMarkdyCode, diffDiagramASTs, exportC4LevelViews, extractDiagramCodeAnchors, extractDiagramContext, filterC4Hierarchy, findClosestMatch, formatScene, generateC4Storyboard, generateThemeFromBrand, getArchitectureRecipe, getArchitectureSuggestions, getBoxPortPosition, getIntelliCodeCompletions, humanizeId, inferNodeC4Level, listArchitectureRecipes, listAvailableSymbols, listOutputPresets, nodeRole, parse, parseAndCompile, parseCodeAnchor, predictNextLineSuggestion, recommendArchitecturePattern, renderSymbolSvg, repairMarkdyCode, resolveArchitectureConfig, resolveBrandLogoUrl, resolveOutputPreset, resolvePlayer, resolveTheme, resolveVectorSymbol, routeOrthogonalEdge, selectOptimalPorts, synthesizeCustomRecipe, validateArchitecture, validateC4Containment, verifyCodeAnchorsWithReader, verifyDiagramQuality };
|
package/dist/index.js
CHANGED
|
@@ -2990,6 +2990,93 @@ var THEMES = {
|
|
|
2990
2990
|
roles: { ...ROLE_COLORS },
|
|
2991
2991
|
edges: { ...EDGE_COLORS }
|
|
2992
2992
|
},
|
|
2993
|
+
cad: {
|
|
2994
|
+
name: "cad",
|
|
2995
|
+
canvas: "#f8fafc",
|
|
2996
|
+
surface: "#ffffff",
|
|
2997
|
+
surfaceRaised: "#f1f5f9",
|
|
2998
|
+
border: "#cbd5e1",
|
|
2999
|
+
text: "#0f172a",
|
|
3000
|
+
textMuted: "#475569",
|
|
3001
|
+
paper: "#f8fafc",
|
|
3002
|
+
ink: "#0f172a",
|
|
3003
|
+
muted: "#64748b",
|
|
3004
|
+
rule: "rgba(148, 163, 184, 0.28)",
|
|
3005
|
+
soft: "#38bdf8",
|
|
3006
|
+
link: "#2563eb",
|
|
3007
|
+
gridMinor: "rgba(148, 163, 184, 0.22)",
|
|
3008
|
+
gridMajor: "rgba(148, 163, 184, 0.35)",
|
|
3009
|
+
vignette: "rgba(241, 245, 249, 0.15)",
|
|
3010
|
+
accent: "#2563eb",
|
|
3011
|
+
accentTint: "rgba(37, 99, 235, 0.08)",
|
|
3012
|
+
nodeSurface: "#ffffff",
|
|
3013
|
+
nodeSurfaceRaised: "#f8fafc",
|
|
3014
|
+
hairline: "#e2e8f0",
|
|
3015
|
+
shadow: "0 1px 3px rgba(15, 23, 42, 0.08)",
|
|
3016
|
+
labelPlate: "#ffffff",
|
|
3017
|
+
flatCards: true,
|
|
3018
|
+
roles: {
|
|
3019
|
+
...ROLE_COLORS,
|
|
3020
|
+
compute: "#2563eb",
|
|
3021
|
+
client: "#475569",
|
|
3022
|
+
data: "#0284c7"
|
|
3023
|
+
},
|
|
3024
|
+
edges: {
|
|
3025
|
+
request: "#2563eb",
|
|
3026
|
+
response: "#64748b",
|
|
3027
|
+
event: "#f59e0b",
|
|
3028
|
+
dependency: "#94a3b8"
|
|
3029
|
+
},
|
|
3030
|
+
fonts: {
|
|
3031
|
+
title: 'Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
3032
|
+
nodeName: 'Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
3033
|
+
mono: '"JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace'
|
|
3034
|
+
},
|
|
3035
|
+
radiusMd: 8,
|
|
3036
|
+
spacing: { xs: 4, sm: 8, md: 16, lg: 24, xl: 40 },
|
|
3037
|
+
series: ["#2563eb", "#0284c7", "#475569", "#059669", "#7c3aed"]
|
|
3038
|
+
},
|
|
3039
|
+
"cad-dark": {
|
|
3040
|
+
name: "cad-dark",
|
|
3041
|
+
canvas: "#0f172a",
|
|
3042
|
+
surface: "#1e293b",
|
|
3043
|
+
surfaceRaised: "#334155",
|
|
3044
|
+
border: "#475569",
|
|
3045
|
+
text: "#f8fafc",
|
|
3046
|
+
textMuted: "#94a3b8",
|
|
3047
|
+
paper: "#0f172a",
|
|
3048
|
+
ink: "#f8fafc",
|
|
3049
|
+
muted: "#94a3b8",
|
|
3050
|
+
rule: "rgba(148, 163, 184, 0.16)",
|
|
3051
|
+
soft: "#38bdf8",
|
|
3052
|
+
link: "#60a5fa",
|
|
3053
|
+
gridMinor: "rgba(148, 163, 184, 0.12)",
|
|
3054
|
+
gridMajor: "rgba(148, 163, 184, 0.22)",
|
|
3055
|
+
vignette: "rgba(15, 23, 42, 0.6)",
|
|
3056
|
+
accent: "#60a5fa",
|
|
3057
|
+
accentTint: "rgba(96, 165, 250, 0.12)",
|
|
3058
|
+
nodeSurface: "#1e293b",
|
|
3059
|
+
nodeSurfaceRaised: "#334155",
|
|
3060
|
+
hairline: "#334155",
|
|
3061
|
+
shadow: "0 2px 6px rgba(0, 0, 0, 0.4)",
|
|
3062
|
+
labelPlate: "#1e293b",
|
|
3063
|
+
flatCards: true,
|
|
3064
|
+
roles: { ...ROLE_COLORS },
|
|
3065
|
+
edges: {
|
|
3066
|
+
request: "#60a5fa",
|
|
3067
|
+
response: "#94a3b8",
|
|
3068
|
+
event: "#fbbf24",
|
|
3069
|
+
dependency: "#64748b"
|
|
3070
|
+
},
|
|
3071
|
+
fonts: {
|
|
3072
|
+
title: 'Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
3073
|
+
nodeName: 'Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
3074
|
+
mono: '"JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace'
|
|
3075
|
+
},
|
|
3076
|
+
radiusMd: 8,
|
|
3077
|
+
spacing: { xs: 4, sm: 8, md: 16, lg: 24, xl: 40 },
|
|
3078
|
+
series: ["#60a5fa", "#38bdf8", "#94a3b8", "#34d399", "#a78bfa"]
|
|
3079
|
+
},
|
|
2993
3080
|
editorial: {
|
|
2994
3081
|
name: "editorial",
|
|
2995
3082
|
canvas: "#fafafa",
|
|
@@ -6001,6 +6088,119 @@ var VECTOR_SYMBOLS = {
|
|
|
6001
6088
|
viewBox: "0 0 24 24",
|
|
6002
6089
|
svgPaths: `<path fill="currentColor" d="M12 2C12 7.52 7.52 12 2 12c5.48 0 9.95 4.48 10 10 .05-5.52 4.52-10 10-10-5.48 0-9.95-4.48-10-10z"/>`,
|
|
6003
6090
|
brandColor: "#8E75FF"
|
|
6091
|
+
},
|
|
6092
|
+
// Modern Web & Cloud Stack (CAD / Architecture)
|
|
6093
|
+
vercel: {
|
|
6094
|
+
name: "Vercel",
|
|
6095
|
+
category: "cloud",
|
|
6096
|
+
viewBox: "0 0 24 24",
|
|
6097
|
+
svgPaths: `<path fill="currentColor" d="M12 1L24 22H0L12 1z"/>`,
|
|
6098
|
+
brandColor: "#000000"
|
|
6099
|
+
},
|
|
6100
|
+
nextjs: {
|
|
6101
|
+
name: "Next.js",
|
|
6102
|
+
category: "runtime",
|
|
6103
|
+
viewBox: "0 0 24 24",
|
|
6104
|
+
svgPaths: `<path fill="currentColor" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.844 14.532l-4.99-6.425v6.425H9.333V7.468h1.521l4.99 6.425V7.468h1.521v9.064h-1.521z"/>`,
|
|
6105
|
+
brandColor: "#000000"
|
|
6106
|
+
},
|
|
6107
|
+
hono: {
|
|
6108
|
+
name: "Hono",
|
|
6109
|
+
category: "runtime",
|
|
6110
|
+
viewBox: "0 0 24 24",
|
|
6111
|
+
svgPaths: `<path fill="currentColor" d="M12 2c.5 3 2.5 5 4 7 1.5 2 2 4.5 1 7-1 2.5-3.5 4-6 4s-5.5-2-5.5-5.5c0-4 3.5-7.5 5.5-10.5.5-1 1-2 1-2z"/>`,
|
|
6112
|
+
brandColor: "#E36002"
|
|
6113
|
+
},
|
|
6114
|
+
neon: {
|
|
6115
|
+
name: "Neon Postgres",
|
|
6116
|
+
category: "database",
|
|
6117
|
+
viewBox: "0 0 24 24",
|
|
6118
|
+
svgPaths: `<path fill="currentColor" d="M4 4h3.5l9 12V4H20v16h-3.5l-9-12v12H4V4z"/>`,
|
|
6119
|
+
brandColor: "#00E599"
|
|
6120
|
+
},
|
|
6121
|
+
clerk: {
|
|
6122
|
+
name: "Clerk",
|
|
6123
|
+
category: "security",
|
|
6124
|
+
viewBox: "0 0 24 24",
|
|
6125
|
+
svgPaths: `<path fill="currentColor" d="M12 2a5 5 0 0 0-5 5v2H5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-2V7a5 5 0 0 0-5-5zm-3 5a3 3 0 0 1 6 0v2H9V7zm3 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"/>`,
|
|
6126
|
+
brandColor: "#6C47FF"
|
|
6127
|
+
},
|
|
6128
|
+
stripe: {
|
|
6129
|
+
name: "Stripe",
|
|
6130
|
+
category: "client",
|
|
6131
|
+
viewBox: "0 0 24 24",
|
|
6132
|
+
svgPaths: `<path fill="currentColor" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697.5 12.38.5 7.18.5 3.393 3.238 3.393 7.643c0 4.793 4.195 5.922 7.785 7.025 2.502.768 3.42 1.488 3.42 2.502 0 .992-.89 1.488-2.333 1.488-2.618 0-5.362-1.127-7.234-2.138L4.1 22.1c1.861.806 4.887 1.4 8.01 1.4 5.385 0 9.497-2.618 9.497-7.234 0-5.017-4.223-6.195-7.631-7.116z"/>`,
|
|
6133
|
+
brandColor: "#635BFF"
|
|
6134
|
+
},
|
|
6135
|
+
supabase: {
|
|
6136
|
+
name: "Supabase",
|
|
6137
|
+
category: "database",
|
|
6138
|
+
viewBox: "0 0 24 24",
|
|
6139
|
+
svgPaths: `<path fill="currentColor" d="M21.362 9.354H12V.5a.5.5 0 0 0-.877-.333L2.638 12.646A.5.5 0 0 0 3 13.5h9.362v8.854a.5.5 0 0 0 .877.333l8.485-12.479a.5.5 0 0 0-.362-.854z"/>`,
|
|
6140
|
+
brandColor: "#3ECF8E"
|
|
6141
|
+
},
|
|
6142
|
+
turborepo: {
|
|
6143
|
+
name: "Turborepo",
|
|
6144
|
+
category: "runtime",
|
|
6145
|
+
viewBox: "0 0 24 24",
|
|
6146
|
+
svgPaths: `<path fill="currentColor" d="M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2zm0 16a6 6 0 1 1 6-6 6.006 6.006 0 0 1-6 6zm-1-9h2v4h-2zm0 5h2v2h-2z"/>`,
|
|
6147
|
+
brandColor: "#0096FF"
|
|
6148
|
+
},
|
|
6149
|
+
drizzle: {
|
|
6150
|
+
name: "Drizzle ORM",
|
|
6151
|
+
category: "database",
|
|
6152
|
+
viewBox: "0 0 24 24",
|
|
6153
|
+
svgPaths: `<path fill="currentColor" d="M4 19h16v2H4zm2-6h12v2H6zm3-6h6v2H9zM12 1l3 3h-6l3-3z"/>`,
|
|
6154
|
+
brandColor: "#C5F74F"
|
|
6155
|
+
},
|
|
6156
|
+
bun: {
|
|
6157
|
+
name: "Bun",
|
|
6158
|
+
category: "runtime",
|
|
6159
|
+
viewBox: "0 0 24 24",
|
|
6160
|
+
svgPaths: `<path fill="currentColor" d="M12 3c-5.5 0-9 3.5-9 8 0 4 3 7 7 7.5v2.5h4v-2.5c4-.5 7-3.5 7-7.5 0-4.5-3.5-8-9-8zm-2.5 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>`,
|
|
6161
|
+
brandColor: "#FBF0DF"
|
|
6162
|
+
},
|
|
6163
|
+
vitest: {
|
|
6164
|
+
name: "Vitest",
|
|
6165
|
+
category: "runtime",
|
|
6166
|
+
viewBox: "0 0 24 24",
|
|
6167
|
+
svgPaths: `<path fill="currentColor" d="M12 2L3 17h6l3-5 3 5h6L12 2zm0 7.5L14 14h-4l2-4.5z"/>`,
|
|
6168
|
+
brandColor: "#FCC72B"
|
|
6169
|
+
},
|
|
6170
|
+
biome: {
|
|
6171
|
+
name: "Biome",
|
|
6172
|
+
category: "runtime",
|
|
6173
|
+
viewBox: "0 0 24 24",
|
|
6174
|
+
svgPaths: `<path fill="currentColor" d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1 5h2v6h-2zm0 8h2v2h-2z"/>`,
|
|
6175
|
+
brandColor: "#60A5FA"
|
|
6176
|
+
},
|
|
6177
|
+
inngest: {
|
|
6178
|
+
name: "Inngest",
|
|
6179
|
+
category: "messaging",
|
|
6180
|
+
viewBox: "0 0 24 24",
|
|
6181
|
+
svgPaths: `<path fill="currentColor" d="M12 2L2 9.5 12 17l10-7.5L12 2zm0 18l-8-6v3l8 6 8-6v-3l-8 6z"/>`,
|
|
6182
|
+
brandColor: "#3B82F6"
|
|
6183
|
+
},
|
|
6184
|
+
tailwind: {
|
|
6185
|
+
name: "Tailwind CSS",
|
|
6186
|
+
category: "client",
|
|
6187
|
+
viewBox: "0 0 24 24",
|
|
6188
|
+
svgPaths: `<path fill="currentColor" d="M12.001 4.8c-3.2 0-5.2 1.6-6 4.8 1.2-1.6 2.6-2.2 4.2-1.8.913.228 1.565.89 2.288 1.624C13.666 10.618 15.027 12 18.001 12c3.2 0 5.2-1.6 6-4.8-1.2 1.6-2.6 2.2-4.2 1.8-.913-.228-1.565-.89-2.288-1.624C16.336 6.182 14.975 4.8 12.001 4.8zm-6 7.2c-3.2 0-5.2 1.6-6 4.8 1.2-1.6 2.6-2.2 4.2-1.8.913.228 1.565.89 2.288 1.624 1.177 1.194 2.538 2.576 5.512 2.576 3.2 0 5.2-1.6 6-4.8-1.2 1.6-2.6 2.2-4.2 1.8-.913-.228-1.565-.89-2.288-1.624C10.336 13.382 8.975 12 6.001 12z"/>`,
|
|
6189
|
+
brandColor: "#06B6D4"
|
|
6190
|
+
},
|
|
6191
|
+
react: {
|
|
6192
|
+
name: "React",
|
|
6193
|
+
category: "client",
|
|
6194
|
+
viewBox: "0 0 24 24",
|
|
6195
|
+
svgPaths: `<ellipse cx="12" cy="12" rx="9" ry="3.5" fill="none" stroke="currentColor" stroke-width="1.5"/><ellipse cx="12" cy="12" rx="9" ry="3.5" fill="none" stroke="currentColor" stroke-width="1.5" transform="rotate(60 12 12)"/><ellipse cx="12" cy="12" rx="9" ry="3.5" fill="none" stroke="currentColor" stroke-width="1.5" transform="rotate(120 12 12)"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/>`,
|
|
6196
|
+
brandColor: "#61DAFB"
|
|
6197
|
+
},
|
|
6198
|
+
astro: {
|
|
6199
|
+
name: "Astro",
|
|
6200
|
+
category: "client",
|
|
6201
|
+
viewBox: "0 0 24 24",
|
|
6202
|
+
svgPaths: `<path fill="currentColor" d="M8.5 17.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM12 2C8 6 6 11 6 16c0 2.5 1 4.5 3 5 1-1.5 1.5-3 1.5-4h3c0 1 1 2.5 1.5 4 2-.5 3-2.5 3-5 0-5-2-10-6.5-14z"/>`,
|
|
6203
|
+
brandColor: "#FF5D01"
|
|
6004
6204
|
}
|
|
6005
6205
|
};
|
|
6006
6206
|
function resolveVectorSymbol(nameOrAlias) {
|
|
@@ -6029,11 +6229,21 @@ function resolveVectorSymbol(nameOrAlias) {
|
|
|
6029
6229
|
deltalake: "delta",
|
|
6030
6230
|
lakehouse: "delta",
|
|
6031
6231
|
llm: "gemini",
|
|
6032
|
-
ai: "gemini"
|
|
6232
|
+
ai: "gemini",
|
|
6233
|
+
next: "nextjs",
|
|
6234
|
+
turbo: "turborepo",
|
|
6235
|
+
tailwindcss: "tailwind",
|
|
6236
|
+
tw: "tailwind",
|
|
6237
|
+
neonpostgres: "neon",
|
|
6238
|
+
drizzleorm: "drizzle"
|
|
6033
6239
|
};
|
|
6034
6240
|
const target = aliases[key];
|
|
6035
6241
|
return target ? VECTOR_SYMBOLS[target] || null : null;
|
|
6036
6242
|
}
|
|
6243
|
+
function resolveBrandLogoUrl(nameOrAlias) {
|
|
6244
|
+
const slug = nameOrAlias.trim().toLowerCase().replace(/[\s_.]+/g, "-");
|
|
6245
|
+
return `https://svgl.app/library/${encodeURIComponent(slug)}.svg`;
|
|
6246
|
+
}
|
|
6037
6247
|
function renderSymbolSvg(symbol, options) {
|
|
6038
6248
|
const resolved = typeof symbol === "string" ? resolveVectorSymbol(symbol) : symbol;
|
|
6039
6249
|
if (!resolved) return null;
|
|
@@ -9553,6 +9763,7 @@ export {
|
|
|
9553
9763
|
renderSymbolSvg,
|
|
9554
9764
|
repairMarkdyCode,
|
|
9555
9765
|
resolveArchitectureConfig,
|
|
9766
|
+
resolveBrandLogoUrl,
|
|
9556
9767
|
resolveOutputPreset,
|
|
9557
9768
|
resolvePlayer,
|
|
9558
9769
|
resolveTheme,
|
package/package.json
CHANGED