wiki-viewer 2.15.0 → 2.16.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.
Files changed (114) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
  14. package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js +1 -1
  16. package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js +1 -1
  18. package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/agent/fs/move/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/agent/fs/search/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js +1 -1
  24. package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/assets/[...path]/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/pdf/save/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/share/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/branch/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/system/workspaces/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/upload/[...path]/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/wiki/download/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/api/wiki/git-history/route.js.nft.json +1 -1
  49. package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
  52. package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/api/wiki/presence/route.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
  56. package/.next/standalone/.next/server/app/api/wiki/scratch/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/wiki/search/route.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
  60. package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  62. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  63. package/.next/standalone/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  64. package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0j.bds6._.js → [root-of-the-server]__041fu_k._.js} +1 -1
  66. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__08fx_k~._.js → [root-of-the-server]__0sylq_1._.js} +1 -1
  67. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__13zhdeu._.js → [root-of-the-server]__0wgd88e._.js} +1 -1
  68. package/.next/standalone/.next/server/chunks/_079xuln._.js +1 -1
  69. package/.next/standalone/.next/server/chunks/ssr/{0~w0_katex_dist_katex_mjs_0-3_aoy._.js → 0~w0_katex_dist_katex_mjs_0xzjko-._.js} +1 -1
  70. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0~m~z0y._.js → [root-of-the-server]__0tzc7v8._.js} +2 -2
  71. package/.next/standalone/.next/server/chunks/ssr/_0k6g8yo._.js +12 -12
  72. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0l46b3a._.js → node_modules__pnpm_0-n2gwk._.js} +1 -1
  73. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02sf5uz._.js → node_modules__pnpm_001.y5w._.js} +1 -1
  74. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0j9f~iy._.js → node_modules__pnpm_00vy.j_._.js} +2 -2
  75. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0b~.qh~._.js → node_modules__pnpm_00~a731._.js} +2 -2
  76. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0rh-zcl._.js → node_modules__pnpm_00~jzwc._.js} +1 -1
  77. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0w~zagu._.js → node_modules__pnpm_016a47p._.js} +1 -1
  78. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02vhxu0._.js → node_modules__pnpm_060xsml._.js} +1 -1
  79. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0l-njqa._.js → node_modules__pnpm_09al-ho._.js} +2 -2
  80. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0uqp9ub._.js → node_modules__pnpm_0_q.~_7._.js} +1 -1
  81. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0glio92._.js → node_modules__pnpm_0a5sxi_._.js} +1 -1
  82. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0cuto1v._.js → node_modules__pnpm_0bu2dgl._.js} +1 -1
  83. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0.12fs7._.js → node_modules__pnpm_0ekyo6p._.js} +1 -1
  84. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0fdagb-._.js → node_modules__pnpm_0fhf5x4._.js} +2 -2
  85. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0~fb-9i._.js → node_modules__pnpm_0gn2-4t._.js} +1 -1
  86. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0xkmke3._.js → node_modules__pnpm_0hzuxm7._.js} +1 -1
  87. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_07q685o._.js → node_modules__pnpm_0jf-4l.._.js} +2 -2
  88. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0gltr2_._.js → node_modules__pnpm_0kcg69-._.js} +1 -1
  89. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0jubgl7._.js → node_modules__pnpm_0l7d83j._.js} +1 -1
  90. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0isf.lk._.js → node_modules__pnpm_0ov77qd._.js} +1 -1
  91. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0y2-hzg._.js → node_modules__pnpm_0pe1~kx._.js} +1 -1
  92. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0--~poz._.js → node_modules__pnpm_0qix0pb._.js} +2 -2
  93. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02labul._.js → node_modules__pnpm_0y.f9wx._.js} +1 -1
  94. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0fvrb_r._.js → node_modules__pnpm_0z-f4u~._.js} +1 -1
  95. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_004l-2q._.js → node_modules__pnpm_0z5~pmj._.js} +2 -2
  96. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0j~n8iw._.js → node_modules__pnpm_0~ej02a._.js} +1 -1
  97. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_10rxs5p._.js → node_modules__pnpm_0~s_k7m._.js} +1 -1
  98. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0529x0t._.js → node_modules__pnpm_11jj9fz._.js} +1 -1
  99. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  100. package/.next/standalone/.next/server/pages/500.html +1 -1
  101. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  102. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  103. package/.next/standalone/.next/static/chunks/0_j_xobbe4f4t.css +1 -0
  104. package/.next/standalone/.next/static/chunks/{186jm_vojgx39.js → 0enm-3xy21jcx.js} +21 -21
  105. package/.next/standalone/.test-floor +1 -1
  106. package/.next/standalone/isometric-codebase-map.html +2 -2
  107. package/.next/standalone/isometric-codebase-map.json +2 -2
  108. package/.next/standalone/package.json +131 -131
  109. package/.next/standalone/server.js +1 -1
  110. package/package.json +131 -131
  111. package/.next/standalone/.next/static/chunks/08yacu3xgkqp0.css +0 -1
  112. /package/.next/standalone/.next/static/{zl14ApzGoNeeNLkePt7NU → 7EbGXTo8ObPhr7UobKARQ}/_buildManifest.js +0 -0
  113. /package/.next/standalone/.next/static/{zl14ApzGoNeeNLkePt7NU → 7EbGXTo8ObPhr7UobKARQ}/_clientMiddlewareManifest.js +0 -0
  114. /package/.next/standalone/.next/static/{zl14ApzGoNeeNLkePt7NU → 7EbGXTo8ObPhr7UobKARQ}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- 645
1
+ 673
@@ -793,7 +793,7 @@
793
793
  const STATS = [
794
794
  { value: "60,395", label: "source LOC" },
795
795
  { value: "79", label: "API routes" },
796
- { value: "75", label: "test files" },
796
+ { value: "71", label: "test files" },
797
797
  { value: "1", label: "deployed service" }
798
798
  ];
799
799
 
@@ -894,7 +894,7 @@
894
894
  { code: "EM", name: "Embeds", h: 4, what: "Detect supported external media and document embeds.", how: "lib/embeds detects supported external media and document embeds." }
895
895
  ] },
896
896
  { id: "scratch", code: "SC", name: "Scratchpad", group: "domain", loc: "355 LOC", gx: 8, gy: 13, w: 2, d: 2, h: 4, what: "Captures quick snippets before they become normal workspace files.", how: "Scratch config and detection modules create, sweep, and promote temporary captures.", talks: ["wiki-api", "path", "state"] },
897
- { id: "tests", code: "TS", name: "Proof test suite", group: "delivery", loc: "14,849 LOC", gx: 12, gy: 13, w: 2, d: 2, h: 5, what: "Exercises the filesystem, auth, collaboration, and agent safety contracts.", how: "71 proof test files run through scripts/test-floor.mjs, which enforces a 691-test minimum.", talks: ["proof", "agent-api", "wiki-api", "ci"] },
897
+ { id: "tests", code: "TS", name: "Proof test suite", group: "delivery", loc: "14,849 LOC", gx: 12, gy: 13, w: 2, d: 2, h: 5, what: "Exercises the filesystem, auth, collaboration, and agent safety contracts.", how: "71 proof test files run through scripts/test-floor.mjs, which enforces a 673-test minimum.", talks: ["proof", "agent-api", "wiki-api", "ci"] },
898
898
  { id: "ci", code: "CI", name: "Build and publish", group: "delivery", loc: "3 workflow files", gx: 15, gy: 13, w: 3, d: 2, h: 3, what: "Checks changes and prepares the standalone package for release.", how: "Versioned workflows run formatting, tests, builds, and npm publishing around the one server artifact.", talks: ["cli", "editor", "agent-api", "tests"] },
899
899
 
900
900
  { id: "auth-store", code: "DB", name: "Auth store", group: "data", loc: "role", gx: 0, gy: 16, w: 3, d: 2, h: 1, slab: true, what: "Durable users, sessions, and account records.", how: "Better Auth uses a local SQLite store through the project database adapter.", talks: ["auth", "system-api", "proof"] },
@@ -6,7 +6,7 @@
6
6
  "stats": [
7
7
  { "value": "60,395", "label": "source LOC" },
8
8
  { "value": "79", "label": "API routes" },
9
- { "value": "75", "label": "test files" },
9
+ { "value": "71", "label": "test files" },
10
10
  { "value": "1", "label": "deployed service" }
11
11
  ],
12
12
  "groups": [
@@ -101,7 +101,7 @@
101
101
  { "code": "EM", "name": "Embeds", "h": 4, "what": "Detect supported external media and document embeds.", "how": "lib/embeds detects supported external media and document embeds." }
102
102
  ] },
103
103
  { "id": "scratch", "code": "SC", "name": "Scratchpad", "group": "domain", "loc": "355 LOC", "gx": 8, "gy": 13, "w": 2, "d": 2, "h": 4, "what": "Captures quick snippets before they become normal workspace files.", "how": "Scratch config and detection modules create, sweep, and promote temporary captures.", "talks": ["wiki-api", "path", "state"] },
104
- { "id": "tests", "code": "TS", "name": "Proof test suite", "group": "delivery", "loc": "14,849 LOC", "gx": 12, "gy": 13, "w": 2, "d": 2, "h": 5, "what": "Exercises the filesystem, auth, collaboration, and agent safety contracts.", "how": "71 proof test files run through scripts/test-floor.mjs, which enforces a 691-test minimum.", "talks": ["proof", "agent-api", "wiki-api", "ci"] },
104
+ { "id": "tests", "code": "TS", "name": "Proof test suite", "group": "delivery", "loc": "14,849 LOC", "gx": 12, "gy": 13, "w": 2, "d": 2, "h": 5, "what": "Exercises the filesystem, auth, collaboration, and agent safety contracts.", "how": "71 proof test files run through scripts/test-floor.mjs, which enforces a 673-test minimum.", "talks": ["proof", "agent-api", "wiki-api", "ci"] },
105
105
  { "id": "ci", "code": "CI", "name": "Build and publish", "group": "delivery", "loc": "3 workflow files", "gx": 15, "gy": 13, "w": 3, "d": 2, "h": 3, "what": "Checks changes and prepares the standalone package for release.", "how": "Versioned workflows run formatting, tests, builds, and npm publishing around the one server artifact.", "talks": ["cli", "editor", "agent-api", "tests"] },
106
106
  { "id": "auth-store", "code": "DB", "name": "Auth store", "group": "data", "loc": "role", "gx": 0, "gy": 16, "w": 3, "d": 2, "h": 1, "slab": true, "what": "Durable users, sessions, and account records.", "how": "Better Auth uses a local SQLite store through the project database adapter.", "talks": ["auth", "system-api", "proof"] },
107
107
  { "id": "share-store", "code": "DB", "name": "Share store", "group": "data", "loc": "role", "gx": 4, "gy": 16, "w": 3, "d": 2, "h": 1, "slab": true, "what": "Durable public-share grants, expiry data, and view counts.", "how": "shared-docs/db.ts persists opaque share metadata in SQLite.", "talks": ["share-api"] },
@@ -1,133 +1,133 @@
1
1
  {
2
- "name": "wiki-viewer",
3
- "version": "2.15.0",
4
- "description": "Local file viewer and wiki — view markdown, HTML, PDFs, notebooks, office docs, and more from any directory",
5
- "license": "MIT",
6
- "type": "module",
7
- "bin": {
8
- "wiki-viewer": "bin/wiki-viewer.js",
9
- "wiki-viewer-lite": "bin/wiki-viewer-lite.js"
10
- },
11
- "files": [
12
- "bin",
13
- ".next/standalone"
14
- ],
15
- "scripts": {
16
- "predev": "node scripts/copy-excalidraw-assets.mjs",
17
- "dev": "next dev",
18
- "dev:https": "next dev --experimental-https",
19
- "prebuild": "node scripts/copy-excalidraw-assets.mjs",
20
- "build": "next build",
21
- "start": "next start",
22
- "wiki": "node bin/wiki-viewer.js",
23
- "postbuild": "node bin/postbuild.js",
24
- "prepublishOnly": "npm run build",
25
- "prepack": "node -e \"require('fs').existsSync('.next/standalone/server.js')||(console.error('ERROR: .next/standalone/server.js missing, run pnpm build before publishing'),process.exit(1))\"",
26
- "lint": "biome check .",
27
- "format:check": "node scripts/format-check.mjs",
28
- "test": "node scripts/test-floor.mjs",
29
- "test:raw": "tsx --import ./src/tests/proof/preload.ts --test src/tests/proof/*.test.ts",
30
- "typecheck": "tsc --noEmit"
31
- },
32
- "engines": {
33
- "node": ">=20.9.0"
34
- },
35
- "keywords": [
36
- "wiki",
37
- "markdown",
38
- "viewer",
39
- "notes",
40
- "local",
41
- "cli"
42
- ],
43
- "repository": {
44
- "type": "git",
45
- "url": "https://github.com/anh-chu/wiki-viewer.git"
46
- },
47
- "optionalDependencies": {
48
- "@vscode/ripgrep": "^1.18.0"
49
- },
50
- "dependencies": {
51
- "@excalidraw/excalidraw": "0.18.1",
52
- "better-auth": "^1.6.12",
53
- "chokidar": "^5.0.0",
54
- "jszip": "^3.10.1",
55
- "kysely": "0.28.5",
56
- "next": "16.2.4",
57
- "pdfjs-dist": "5.4.296",
58
- "proper-lockfile": "^4.1.2",
59
- "react": "19.2.5",
60
- "react-dom": "19.2.5",
61
- "rehype-parse": "^9.0.1",
62
- "rehype-raw": "^7.0.0",
63
- "rehype-sanitize": "^6.0.0",
64
- "undici": "^8.3.0"
65
- },
66
- "devDependencies": {
67
- "@biomejs/biome": "^2.5.6",
68
- "@radix-ui/react-context-menu": "^2.2.16",
69
- "@radix-ui/react-dialog": "^1.1.15",
70
- "@radix-ui/react-dropdown-menu": "^2.1.16",
71
- "@radix-ui/react-label": "^2.1.8",
72
- "@radix-ui/react-popover": "^1.1.15",
73
- "@radix-ui/react-separator": "^1.1.8",
74
- "@radix-ui/react-slot": "^1.2.4",
75
- "@radix-ui/react-switch": "^1.2.6",
76
- "@radix-ui/react-tooltip": "^1.2.8",
77
- "@tailwindcss/typography": "^0.5.19",
78
- "@tiptap/core": "^3.22.5",
79
- "@tiptap/extension-bubble-menu": "^3.22.5",
80
- "@tiptap/extension-code-block-lowlight": "^3.22.5",
81
- "@tiptap/extension-image": "^3.22.5",
82
- "@tiptap/extension-link": "^3.22.5",
83
- "@tiptap/extension-placeholder": "^3.22.5",
84
- "@tiptap/extension-subscript": "^3.22.5",
85
- "@tiptap/extension-superscript": "^3.22.5",
86
- "@tiptap/extension-table": "^3.22.5",
87
- "@tiptap/extension-table-cell": "^3.22.5",
88
- "@tiptap/extension-table-header": "^3.22.5",
89
- "@tiptap/extension-table-row": "^3.22.5",
90
- "@tiptap/extension-task-item": "^3.22.5",
91
- "@tiptap/extension-task-list": "^3.22.5",
92
- "@tiptap/extension-text-align": "^3.22.5",
93
- "@tiptap/extension-underline": "^3.22.5",
94
- "@tiptap/pm": "^3.22.5",
95
- "@tiptap/react": "^3.22.5",
96
- "@tiptap/starter-kit": "^3.22.5",
97
- "@tiptap/suggestion": "^3.22.5",
98
- "@types/mdast": "^4.0.4",
99
- "@types/node": "^22.15.0",
100
- "@types/proper-lockfile": "^4.1.4",
101
- "@types/react": "19.2.14",
102
- "@types/react-dom": "19.2.3",
103
- "@types/turndown": "^5.0.6",
104
- "autoprefixer": "^10.4.20",
105
- "class-variance-authority": "^0.7.1",
106
- "clsx": "^2.1.1",
107
- "cmdk": "^1.1.1",
108
- "docx-preview": "^0.3.7",
109
- "hast-util-to-html": "^9.0.5",
110
- "highlight.js": "^11.11.1",
111
- "lowlight": "^3.3.0",
112
- "lucide-react": "^0.525.0",
113
- "mermaid": "^11.14.0",
114
- "next-themes": "^0.4.6",
115
- "postcss": "^8.5.6",
116
- "pptx-preview": "^1.0.7",
117
- "rehype-stringify": "^10.0.1",
118
- "remark-gfm": "^4.0.1",
119
- "remark-parse": "^11.0.0",
120
- "remark-rehype": "^11.1.2",
121
- "remark-stringify": "^11.0.0",
122
- "sonner": "^2.0.7",
123
- "tailwind-merge": "^3.3.0",
124
- "tailwindcss": "^3.4.17",
125
- "tsx": "^4.22.3",
126
- "turndown": "^7.2.4",
127
- "turndown-plugin-gfm": "^1.0.2",
128
- "typescript": "^5.8.0",
129
- "unified": "^11.0.5",
130
- "xlsx": "^0.18.5",
131
- "zustand": "^5.0.12"
132
- }
2
+ "name": "wiki-viewer",
3
+ "version": "2.16.0",
4
+ "description": "Local file viewer and wiki — view markdown, HTML, PDFs, notebooks, office docs, and more from any directory",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "wiki-viewer": "bin/wiki-viewer.js",
9
+ "wiki-viewer-lite": "bin/wiki-viewer-lite.js"
10
+ },
11
+ "files": [
12
+ "bin",
13
+ ".next/standalone"
14
+ ],
15
+ "scripts": {
16
+ "predev": "node scripts/copy-excalidraw-assets.mjs",
17
+ "dev": "next dev",
18
+ "dev:https": "next dev --experimental-https",
19
+ "prebuild": "node scripts/copy-excalidraw-assets.mjs",
20
+ "build": "next build",
21
+ "start": "next start",
22
+ "wiki": "node bin/wiki-viewer.js",
23
+ "postbuild": "node bin/postbuild.js",
24
+ "prepublishOnly": "npm run build",
25
+ "prepack": "node -e \"require('fs').existsSync('.next/standalone/server.js')||(console.error('ERROR: .next/standalone/server.js missing, run pnpm build before publishing'),process.exit(1))\"",
26
+ "lint": "biome check .",
27
+ "format:check": "node scripts/format-check.mjs",
28
+ "test": "node scripts/test-floor.mjs",
29
+ "test:raw": "tsx --import ./src/tests/proof/preload.ts --test src/tests/proof/*.test.ts",
30
+ "typecheck": "tsc --noEmit"
31
+ },
32
+ "engines": {
33
+ "node": ">=20.9.0"
34
+ },
35
+ "keywords": [
36
+ "wiki",
37
+ "markdown",
38
+ "viewer",
39
+ "notes",
40
+ "local",
41
+ "cli"
42
+ ],
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "https://github.com/anh-chu/wiki-viewer.git"
46
+ },
47
+ "optionalDependencies": {
48
+ "@vscode/ripgrep": "^1.18.0"
49
+ },
50
+ "dependencies": {
51
+ "@excalidraw/excalidraw": "0.18.1",
52
+ "better-auth": "^1.6.12",
53
+ "chokidar": "^5.0.0",
54
+ "jszip": "^3.10.1",
55
+ "kysely": "0.28.5",
56
+ "next": "16.2.4",
57
+ "pdfjs-dist": "5.4.296",
58
+ "proper-lockfile": "^4.1.2",
59
+ "react": "19.2.5",
60
+ "react-dom": "19.2.5",
61
+ "rehype-parse": "^9.0.1",
62
+ "rehype-raw": "^7.0.0",
63
+ "rehype-sanitize": "^6.0.0",
64
+ "undici": "^8.3.0"
65
+ },
66
+ "devDependencies": {
67
+ "@biomejs/biome": "^2.5.6",
68
+ "@radix-ui/react-context-menu": "^2.2.16",
69
+ "@radix-ui/react-dialog": "^1.1.15",
70
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
71
+ "@radix-ui/react-label": "^2.1.8",
72
+ "@radix-ui/react-popover": "^1.1.15",
73
+ "@radix-ui/react-separator": "^1.1.8",
74
+ "@radix-ui/react-slot": "^1.2.4",
75
+ "@radix-ui/react-switch": "^1.2.6",
76
+ "@radix-ui/react-tooltip": "^1.2.8",
77
+ "@tailwindcss/typography": "^0.5.19",
78
+ "@tiptap/core": "^3.22.5",
79
+ "@tiptap/extension-bubble-menu": "^3.22.5",
80
+ "@tiptap/extension-code-block-lowlight": "^3.22.5",
81
+ "@tiptap/extension-image": "^3.22.5",
82
+ "@tiptap/extension-link": "^3.22.5",
83
+ "@tiptap/extension-placeholder": "^3.22.5",
84
+ "@tiptap/extension-subscript": "^3.22.5",
85
+ "@tiptap/extension-superscript": "^3.22.5",
86
+ "@tiptap/extension-table": "^3.22.5",
87
+ "@tiptap/extension-table-cell": "^3.22.5",
88
+ "@tiptap/extension-table-header": "^3.22.5",
89
+ "@tiptap/extension-table-row": "^3.22.5",
90
+ "@tiptap/extension-task-item": "^3.22.5",
91
+ "@tiptap/extension-task-list": "^3.22.5",
92
+ "@tiptap/extension-text-align": "^3.22.5",
93
+ "@tiptap/extension-underline": "^3.22.5",
94
+ "@tiptap/pm": "^3.22.5",
95
+ "@tiptap/react": "^3.22.5",
96
+ "@tiptap/starter-kit": "^3.22.5",
97
+ "@tiptap/suggestion": "^3.22.5",
98
+ "@types/mdast": "^4.0.4",
99
+ "@types/node": "^22.15.0",
100
+ "@types/proper-lockfile": "^4.1.4",
101
+ "@types/react": "19.2.14",
102
+ "@types/react-dom": "19.2.3",
103
+ "@types/turndown": "^5.0.6",
104
+ "autoprefixer": "^10.4.20",
105
+ "class-variance-authority": "^0.7.1",
106
+ "clsx": "^2.1.1",
107
+ "cmdk": "^1.1.1",
108
+ "docx-preview": "^0.3.7",
109
+ "hast-util-to-html": "^9.0.5",
110
+ "highlight.js": "^11.11.1",
111
+ "lowlight": "^3.3.0",
112
+ "lucide-react": "^0.525.0",
113
+ "mermaid": "^11.14.0",
114
+ "next-themes": "^0.4.6",
115
+ "postcss": "^8.5.6",
116
+ "pptx-preview": "^1.0.7",
117
+ "rehype-stringify": "^10.0.1",
118
+ "remark-gfm": "^4.0.1",
119
+ "remark-parse": "^11.0.0",
120
+ "remark-rehype": "^11.1.2",
121
+ "remark-stringify": "^11.0.0",
122
+ "sonner": "^2.0.7",
123
+ "tailwind-merge": "^3.3.0",
124
+ "tailwindcss": "^3.4.17",
125
+ "tsx": "^4.22.3",
126
+ "turndown": "^7.2.4",
127
+ "turndown-plugin-gfm": "^1.0.2",
128
+ "typescript": "^5.8.0",
129
+ "unified": "^11.0.5",
130
+ "xlsx": "^0.18.5",
131
+ "zustand": "^5.0.12"
132
+ }
133
133
  }
@@ -15,7 +15,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
15
15
  const hostname = process.env.HOSTNAME || '0.0.0.0'
16
16
 
17
17
  let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
18
- const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"2.15.0"},"webpack":null,"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":true,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/runner/work/wiki-viewer/wiki-viewer","allowedDevOrigins":["localhost"],"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"experimental":{"appNewScrollHandler":false,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"partialFallbacks":false,"dynamicOnHover":false,"varyParams":false,"prefetchInlining":false,"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":3,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"imgOptSkipMetadata":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"viewTransition":false,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":false,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":false,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","turbopack":{"root":"/home/runner/work/wiki-viewer/wiki-viewer"},"distDirRoot":".next"}
18
+ const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"2.16.0"},"webpack":null,"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":true,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/runner/work/wiki-viewer/wiki-viewer","allowedDevOrigins":["localhost"],"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"experimental":{"appNewScrollHandler":false,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"partialFallbacks":false,"dynamicOnHover":false,"varyParams":false,"prefetchInlining":false,"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":3,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"imgOptSkipMetadata":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"viewTransition":false,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":false,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":false,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","turbopack":{"root":"/home/runner/work/wiki-viewer/wiki-viewer"},"distDirRoot":".next"}
19
19
 
20
20
  process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
21
21