Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
176 lines (176 loc) · 5.35 KB
/
Copy pathpackage.json
File metadata and controls
176 lines (176 loc) · 5.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "@aeven-ai/hypermarkdown",
"version": "0.4.5",
"description": "Ridiculously fast Markdown for React and AI. Streaming-native renderer that caches settled code lines, table rows, and list items so growing LLM output does not re-parse finished work.",
"author": "Aeven",
"repository": {
"type": "git",
"url": "git+https://github.com/Aeven-AI/HyperMarkdown.git"
},
"homepage": "https://aeven-ai.github.io/HyperMarkdown/",
"bugs": {
"url": "https://github.com/Aeven-AI/HyperMarkdown/issues"
},
"type": "module",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"styles"
],
"module": "./dist/hypermarkdown.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/hypermarkdown.js"
},
"./plugins/math": {
"types": "./dist/lib/plugins/math.d.ts",
"import": "./dist/plugins/math.js"
},
"./plugins/code": {
"types": "./dist/lib/plugins/code.d.ts",
"import": "./dist/plugins/code.js"
},
"./plugins/mermaid": {
"types": "./dist/lib/plugins/mermaid.d.ts",
"import": "./dist/plugins/mermaid.js"
},
"./styles.css": "./dist/hypermarkdown.css",
"./plugins/cjk": {
"types": "./dist/lib/plugins/cjk.d.ts",
"import": "./dist/plugins/cjk.js"
}
},
"sideEffects": [
"*.css"
],
"allowScripts": {
"@parcel/watcher@2.6.0": true,
"@swc/core@1.16.1": true,
"esbuild@0.28.2": true,
"fsevents@2.3.3": true
},
"scripts": {
"benchmark": "node benchmarks/run.js --runs=5 --warmup=1",
"build": "tsc -b && vite build && npm run verify:client-boundary && npm run build:css",
"website:benchmarks": "node website/scripts/generate-benchmarks.mjs",
"website:dev": "npm run build && npm run website:benchmarks && npm --prefix website start",
"website:build": "npm run website:benchmarks && npm --prefix website run build",
"website:preview": "npm --prefix website run serve -- --port 3000",
"typecheck": "tsc -b && npm run typecheck:react18 && npm run typecheck:react19",
"typecheck:react18": "tsc -p tsconfig.react18.json",
"typecheck:react19": "tsc -p tsconfig.react19.json",
"test": "vitest run",
"test:correctness": "vitest run tests/correctness",
"test:streaming": "vitest run tests/streaming",
"test:ui": "vitest run tests/ui",
"test:api": "vitest run tests/api tests/plugins",
"test:security": "vitest run tests/security",
"test:unit": "vitest run --config vitest.unit.config.ts",
"test:unit:watch": "vitest --config vitest.unit.config.ts",
"test:coverage": "vitest run --coverage",
"test:coverage:unit": "vitest run --config vitest.unit.config.ts --coverage",
"lint": "eslint .",
"verify:client-boundary": "node scripts/verify-client-boundary.mjs",
"build:css": "node scripts/build-css.mjs",
"bundle-analyzer": "vite-bundle-visualizer",
"bundle-analyzer-network": "vite-bundle-visualizer -t network",
"bundle-analyzer-sunburst": "vite-bundle-visualizer -t sunburst",
"version": "npm --prefix website install --package-lock-only --ignore-scripts && git add website/package-lock.json",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"katex": "^0.16.25",
"mermaid": "^11.12.0",
"react": ">=18",
"react-dom": ">=18",
"rehype-highlight": "^7.0.2",
"rehype-katex": "^7.0.1",
"remark-cjk-friendly": "^2.3.1",
"remark-math": "^6.0.0",
"tippy.js": "^6.3.1"
},
"dependencies": {
"hast-util-to-jsx-runtime": "^2.3.6",
"rehype-raw": "^7.0.0",
"rehype-react": "^8.0.0",
"rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"unist-util-visit-parents": "^6.0.2"
},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@types/hast": "^3.0.4",
"@types/node": "^22.10.2",
"@types/react": "~18.3.1",
"@types/react-dom": "~18.3.0",
"@types/unist": "^3.0.3",
"@vitejs/plugin-react-swc": "^4.1.0",
"@vitest/coverage-v8": "^4.1.8",
"eslint": "^9.36.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.4.0",
"jsdom": "^26.1.0",
"katex": "^0.16.25",
"mermaid": "^11.12.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-highlight": "^7.0.2",
"rehype-katex": "^7.0.1",
"remark-cjk-friendly": "^2.3.1",
"remark-math": "^6.0.0",
"sass": "^1.103.1",
"tippy.js": "^6.3.1",
"types-react-18": "npm:@types/react@^18.3.1",
"types-react-19": "npm:@types/react@^19.2.0",
"typescript": "~5.8.3",
"typescript-eslint": "^8.44.0",
"vfile": "^6.0.3",
"vite": "^7.1.7",
"vite-bundle-visualizer": "^1.2.1",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.1.8"
},
"keywords": [
"markdown",
"streaming",
"react",
"llm",
"renderer",
"gfm",
"katex",
"mermaid"
],
"peerDependenciesMeta": {
"katex": {
"optional": true
},
"mermaid": {
"optional": true
},
"rehype-katex": {
"optional": true
},
"rehype-highlight": {
"optional": true
},
"remark-math": {
"optional": true
},
"remark-cjk-friendly": {
"optional": true
},
"tippy.js": {
"optional": true
}
}
}