markshelf 0.1.4 → 0.2.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 (232) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +2 -0
  3. package/.next/standalone/.next/build-manifest.json +3 -3
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/required-server-files.json +3 -3
  6. package/.next/standalone/.next/routes-manifest.json +12 -0
  7. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/standalone/.next/server/app/api/asset/route/app-paths-manifest.json +3 -0
  24. package/.next/standalone/.next/server/app/api/asset/route/build-manifest.json +9 -0
  25. package/.next/standalone/.next/server/app/api/asset/route/server-reference-manifest.json +4 -0
  26. package/.next/standalone/.next/server/app/api/asset/route.js +7 -0
  27. package/.next/standalone/.next/server/app/api/asset/route.js.map +5 -0
  28. package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -0
  29. package/.next/standalone/.next/server/app/api/asset/route_client-reference-manifest.js +3 -0
  30. package/.next/standalone/.next/server/app/api/diff/route.js +3 -2
  31. package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/file/route.js +3 -2
  33. package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/graph/route.js +3 -2
  35. package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/history/route.js +3 -2
  37. package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/search/route.js +3 -2
  39. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/timeline/route.js +3 -2
  41. package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/tree/route.js +3 -2
  43. package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/watch/route/app-paths-manifest.json +3 -0
  45. package/.next/standalone/.next/server/app/api/watch/route/build-manifest.json +9 -0
  46. package/.next/standalone/.next/server/app/api/watch/route/server-reference-manifest.json +4 -0
  47. package/.next/standalone/.next/server/app/api/watch/route.js +6 -0
  48. package/.next/standalone/.next/server/app/api/watch/route.js.map +5 -0
  49. package/.next/standalone/.next/server/app/api/watch/route.js.nft.json +1 -0
  50. package/.next/standalone/.next/server/app/api/watch/route_client-reference-manifest.js +3 -0
  51. package/.next/standalone/.next/server/app/favicon.ico/route.js +2 -1
  52. package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/index.html +1 -1
  54. package/.next/standalone/.next/server/app/index.rsc +3 -3
  55. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  56. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
  57. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  58. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
  59. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  60. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  62. package/.next/standalone/.next/server/app-paths-manifest.json +2 -0
  63. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-_k816._.js +3 -0
  64. package/.next/standalone/.next/server/chunks/[root-of-the-server]__01e7zo7._.js +3 -0
  65. package/.next/standalone/.next/server/chunks/[root-of-the-server]__04mxfkc._.js +3 -0
  66. package/.next/standalone/.next/server/chunks/[root-of-the-server]__053gm34._.js +3 -0
  67. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d.-s5p._.js +3 -0
  68. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0i.wyss._.js +6 -0
  69. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__01cq2u6._.js → [root-of-the-server]__0nr71d2._.js} +2 -2
  70. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0op9af~._.js +3 -0
  71. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rwylex._.js +3 -0
  72. package/.next/standalone/.next/server/chunks/[root-of-the-server]__13vatcq._.js +3 -0
  73. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_asset_route_actions_03nkw38.js +3 -0
  74. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_watch_route_actions_0go0kk3.js +3 -0
  75. package/.next/standalone/.next/server/chunks/node_modules_next_04~_e52._.js +13 -0
  76. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05ar4zx._.js +2 -2
  77. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09qrkq5._.js +5 -5
  78. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0serya4._.js → [root-of-the-server]__0u7hi3-._.js} +2 -2
  79. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0eva9q1._.js → node_modules_035nqw0._.js} +1 -1
  80. package/.next/standalone/.next/server/chunks/ssr/{node_modules_06r3o30._.js → node_modules_0_lpyzd._.js} +1 -1
  81. package/.next/standalone/.next/server/chunks/ssr/{node_modules_09.cbx4._.js → node_modules_0d0g.gp._.js} +1 -1
  82. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0ic-wja._.js → node_modules_0m258l0._.js} +1 -1
  83. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0w2-q.z._.js → node_modules_0sxu8tl._.js} +1 -1
  84. package/.next/standalone/.next/server/chunks/ssr/{node_modules_11wp0ye._.js → node_modules_0ub-k6d._.js} +1 -1
  85. package/.next/standalone/.next/server/chunks/ssr/{node_modules_05e-8m3._.js → node_modules_0uebmgu._.js} +1 -1
  86. package/.next/standalone/.next/server/chunks/ssr/{node_modules_10cz306._.js → node_modules_0~vmgv6._.js} +1 -1
  87. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  88. package/.next/standalone/.next/server/pages/404.html +1 -1
  89. package/.next/standalone/.next/server/pages/500.html +1 -1
  90. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  92. package/.next/standalone/.next/static/chunks/0.z3b.-~oogkw.js +11 -0
  93. package/.next/standalone/.next/static/chunks/13tjphiswda64.css +1 -0
  94. package/.next/standalone/Dockerfile +54 -0
  95. package/.next/standalone/LICENSE +21 -0
  96. package/.next/standalone/README.md +71 -21
  97. package/.next/standalone/docker/README.md +65 -0
  98. package/.next/standalone/docker-entrypoint.sh +40 -0
  99. package/.next/standalone/docs//344/273/225/346/247/230/README.md +9 -0
  100. package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/README.md +8 -0
  101. package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.1-bin-cli.md +14 -0
  102. package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.2-Dockerfile.md +18 -0
  103. package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.3-basePath.md +11 -0
  104. package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.4-/347/222/260/345/242/203/345/244/211/346/225/260.md +14 -0
  105. package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/README.md +3 -0
  106. package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.1-graph-api.md +16 -0
  107. package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.2-breadthfirst-layout.md +10 -0
  108. package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.3-/343/203/252/343/203/263/343/202/257/350/247/243/346/236/220.md +32 -0
  109. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/README.md +12 -0
  110. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.1-PreviewPopup.md +10 -0
  111. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.2-TreeView.md +10 -0
  112. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.3-TableOfContents.md +11 -0
  113. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.4-DetailPanel/343/202/277/343/203/226.md +13 -0
  114. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.5-Markdown/343/203/254/343/203/263/343/203/200/343/203/252/343/203/263/343/202/260.md +22 -0
  115. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.6-SearchBar.md +15 -0
  116. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.7-/343/203/221/343/203/215/343/203/253/343/203/252/343/202/265/343/202/244/343/202/266/343/203/274.md +11 -0
  117. package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.8-/347/224/273/345/203/217/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274.md +11 -0
  118. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/README.md +12 -0
  119. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.1-tree.md +23 -0
  120. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.2-file.md +14 -0
  121. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.3-search.md +23 -0
  122. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.4-watch.md +17 -0
  123. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.5-history.md +22 -0
  124. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.6-timeline.md +26 -0
  125. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.7-diff.md +13 -0
  126. package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.8-asset.md +22 -0
  127. package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/README.md +8 -0
  128. package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/SPEC5.1-localStorage.md +20 -0
  129. package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/SPEC5.2-URL/343/202/257/343/202/250/343/203/252.md +17 -0
  130. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/Cytoscape.md +5 -0
  131. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/Markdown.md +5 -0
  132. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/Nextjs.md +5 -0
  133. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/breadthfirst.md +5 -0
  134. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/npx.md +5 -0
  135. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/standalone.md +5 -0
  136. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206//343/203/204/343/203/252/343/203/274/343/203/223/343/203/245/343/203/274.md +5 -0
  137. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206//343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/203/235/343/203/203/343/203/227/343/202/242/343/203/203/343/203/227.md +5 -0
  138. package/.next/standalone/docs//347/224/250/350/252/236/351/233/206//343/203/252/343/203/263/343/202/257/343/202/260/343/203/251/343/203/225.md +5 -0
  139. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/README.md +9 -0
  140. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ1-/343/203/223/343/203/245/343/203/274/343/202/242/350/265/267/345/213/225/README.md +5 -0
  141. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ1-/343/203/223/343/203/245/343/203/274/343/202/242/350/265/267/345/213/225/REQ1.1-npx/350/265/267/345/213/225.md +13 -0
  142. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ1-/343/203/223/343/203/245/343/203/274/343/202/242/350/265/267/345/213/225/REQ1.2-Docker/350/265/267/345/213/225.md +14 -0
  143. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ1-/343/203/223/343/203/245/343/203/274/343/202/242/350/265/267/345/213/225/REQ1.3-BASE_PATH/351/205/215/344/277/241.md +10 -0
  144. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ2-/343/203/252/343/203/263/343/202/257/343/202/260/343/203/251/343/203/225/README.md +3 -0
  145. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ2-/343/203/252/343/203/263/343/202/257/343/202/260/343/203/251/343/203/225/REQ2.1-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273.md +11 -0
  146. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ2-/343/203/252/343/203/263/343/202/257/343/202/260/343/203/251/343/203/225/REQ2.2-/351/232/216/345/261/244/345/210/207/346/233/277.md +10 -0
  147. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ2-/343/203/252/343/203/263/343/202/257/343/202/260/343/203/251/343/203/225/REQ2.3-/343/203/225/343/202/251/343/203/253/343/203/200/351/231/244/345/244/226.md +10 -0
  148. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/README.md +5 -0
  149. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.1-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/203/235/343/203/203/343/203/227/343/202/242/343/203/203/343/203/227.md +15 -0
  150. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.2-/343/203/204/343/203/252/343/203/274/343/203/223/343/203/245/343/203/274.md +14 -0
  151. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.3-/347/233/256/346/254/241.md +10 -0
  152. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.4-/343/203/221/343/203/215/343/203/253/343/203/252/343/202/265/343/202/244/343/202/266/343/203/274.md +10 -0
  153. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.5-/343/202/277/343/203/226/343/202/267/343/202/271/343/203/206/343/203/240.md +10 -0
  154. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ3-/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274/343/201/250/343/203/204/343/203/252/343/203/274/REQ3.6-/347/224/273/345/203/217/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274.md +10 -0
  155. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ4-/343/203/212/343/203/223/343/202/262/343/203/274/343/202/267/343/203/247/343/203/263/README.md +3 -0
  156. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ4-/343/203/212/343/203/223/343/202/262/343/203/274/343/202/267/343/203/247/343/203/263/REQ4.1-/346/210/273/343/202/213/351/200/262/343/202/200.md +10 -0
  157. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ4-/343/203/212/343/203/223/343/202/262/343/203/274/343/202/267/343/203/247/343/203/263/REQ4.2-/345/205/261/346/234/211/345/217/257/350/203/275URL.md +10 -0
  158. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ5-/343/203/225/343/202/241/343/202/244/343/203/253/346/244/234/347/264/242/README.md +3 -0
  159. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ5-/343/203/225/343/202/241/343/202/244/343/203/253/346/244/234/347/264/242/REQ5.1-/343/203/225/343/202/241/343/202/244/343/203/253/345/220/215/346/244/234/347/264/242.md +11 -0
  160. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ6-/343/203/225/343/202/241/343/202/244/343/203/253/347/233/243/350/246/226/README.md +3 -0
  161. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ6-/343/203/225/343/202/241/343/202/244/343/203/253/347/233/243/350/246/226/REQ6.1-SSE/345/244/211/346/233/264/351/200/232/347/237/245.md +10 -0
  162. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ7-/345/244/211/346/233/264/345/261/245/346/255/264/README.md +3 -0
  163. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ7-/345/244/211/346/233/264/345/261/245/346/255/264/REQ7.1-/343/203/225/343/202/241/343/202/244/343/203/253/345/244/211/346/233/264/345/261/245/346/255/264.md +10 -0
  164. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ7-/345/244/211/346/233/264/345/261/245/346/255/264/REQ7.2-/343/202/277/343/202/244/343/203/240/343/203/251/343/202/244/343/203/263.md +10 -0
  165. package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ7-/345/244/211/346/233/264/345/261/245/346/255/264/REQ7.3-diff/350/241/250/347/244/272.md +10 -0
  166. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.1-/347/213/254/347/253/213/343/203/223/343/203/245/343/203/274/343/202/242.md +11 -0
  167. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.2-/345/244/247/347/224/273/351/235/242/350/241/250/347/244/272.md +11 -0
  168. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.3-/343/203/212/343/203/223/343/202/262/343/203/274/343/202/267/343/203/247/343/203/263/345/261/245/346/255/264.md +9 -0
  169. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.4-/344/277/235/345/255/230/345/215/263/345/217/215/346/230/240.md +9 -0
  170. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.5-/345/205/261/346/234/211/345/217/257/350/203/275URL.md +9 -0
  171. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/README.md +7 -0
  172. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R2-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/242/344/277/202/343/201/256/345/217/257/350/246/226/345/214/226/R2.1-/344/276/235/345/255/230/351/226/242/344/277/202/343/201/256/346/212/212/346/217/241.md +9 -0
  173. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R2-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/242/344/277/202/343/201/256/345/217/257/350/246/226/345/214/226/R2.2-/345/217/202/347/205/247/345/205/203/343/201/256/346/212/212/346/217/241.md +9 -0
  174. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R2-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/242/344/277/202/343/201/256/345/217/257/350/246/226/345/214/226/README.md +8 -0
  175. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R3-/343/202/252/343/203/263/343/203/234/343/203/274/343/203/207/343/202/243/343/203/263/343/202/260/346/224/257/346/217/264/R3.1-/347/224/250/350/252/236/343/201/256/345/215/263/346/231/202/347/242/272/350/252/215.md +11 -0
  176. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R3-/343/202/252/343/203/263/343/203/234/343/203/274/343/203/207/343/202/243/343/203/263/343/202/260/346/224/257/346/217/264/README.md +7 -0
  177. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R4-/345/244/211/346/233/264/345/261/245/346/255/264/343/201/256/346/212/212/346/217/241/R4.1-/345/244/211/346/233/264/345/206/205/345/256/271/343/201/256/350/277/275/350/267/241.md +9 -0
  178. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R4-/345/244/211/346/233/264/345/261/245/346/255/264/343/201/256/346/212/212/346/217/241/R4.2-/345/275/261/351/237/277/347/257/204/345/233/262/343/201/256/344/277/257/347/236/260.md +9 -0
  179. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R4-/345/244/211/346/233/264/345/261/245/346/255/264/343/201/256/346/212/212/346/217/241/README.md +7 -0
  180. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R5-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/346/216/242/347/264/242/346/200/247/R5.1-/343/203/225/343/202/241/343/202/244/343/203/253/345/220/215/346/244/234/347/264/242.md +9 -0
  181. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R5-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/346/216/242/347/264/242/346/200/247/README.md +7 -0
  182. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R6-/343/203/207/343/203/227/343/203/255/343/202/244/346/237/224/350/273/237/346/200/247/R6.1-Docker/351/205/215/344/277/241.md +9 -0
  183. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R6-/343/203/207/343/203/227/343/203/255/343/202/244/346/237/224/350/273/237/346/200/247/R6.2-/343/202/265/343/203/226/343/203/221/343/202/271/351/205/215/344/277/241.md +9 -0
  184. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R6-/343/203/207/343/203/227/343/203/255/343/202/244/346/237/224/350/273/237/346/200/247/README.md +7 -0
  185. package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/README.md +9 -0
  186. package/.next/standalone/next.config.ts +7 -0
  187. package/.next/standalone/package.json +23 -1
  188. package/.next/standalone/scripts/docker-run.mjs +24 -0
  189. package/.next/standalone/server.js +1 -1
  190. package/.next/standalone/src/app/api/asset/route.ts +40 -0
  191. package/.next/standalone/src/app/api/watch/route.ts +89 -0
  192. package/.next/standalone/src/app/page.tsx +72 -9
  193. package/.next/standalone/src/components/DetailPanel.tsx +40 -7
  194. package/.next/standalone/src/components/DiffView.tsx +2 -1
  195. package/.next/standalone/src/components/HistoryPanel.tsx +5 -2
  196. package/.next/standalone/src/components/LinkGraph.tsx +181 -10
  197. package/.next/standalone/src/components/Markdown.tsx +128 -8
  198. package/.next/standalone/src/components/PreviewPopup.tsx +6 -3
  199. package/.next/standalone/src/components/SearchBar.tsx +2 -1
  200. package/.next/standalone/src/components/TimelinePanel.tsx +5 -2
  201. package/.next/standalone/src/components/TreeView.tsx +36 -9
  202. package/.next/standalone/src/lib/basePath.ts +8 -0
  203. package/.next/standalone/src/lib/docs.ts +12 -0
  204. package/.next/standalone/src/lib/links.ts +98 -25
  205. package/.next/standalone/src/lib/useRefreshTick.ts +44 -0
  206. package/.next/standalone/tsconfig.tsbuildinfo +1 -1
  207. package/.next/static/chunks/0.z3b.-~oogkw.js +11 -0
  208. package/.next/static/chunks/13tjphiswda64.css +1 -0
  209. package/LICENSE +21 -0
  210. package/README.md +71 -21
  211. package/package.json +23 -1
  212. package/.next/standalone/.next/server/chunks/[root-of-the-server]__04otwp7._.js +0 -3
  213. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_gt~a4._.js +0 -3
  214. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0j8-xkl._.js +0 -13
  215. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0owpp0l._.js +0 -3
  216. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qnrcw7._.js +0 -3
  217. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0yvq0sd._.js +0 -3
  218. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zoyna0._.js +0 -3
  219. package/.next/standalone/.next/static/chunks/04x.fjh8sw0s1.css +0 -1
  220. package/.next/standalone/.next/static/chunks/0z_707.y37o2..js +0 -11
  221. package/.next/standalone/AGENTS.md +0 -5
  222. package/.next/standalone/CLAUDE.md +0 -1
  223. package/.next/standalone/markshelf-0.1.0.tgz +0 -0
  224. package/.next/standalone/markshelf-0.1.2.tgz +0 -0
  225. package/.next/static/chunks/04x.fjh8sw0s1.css +0 -1
  226. package/.next/static/chunks/0z_707.y37o2..js +0 -11
  227. /package/.next/standalone/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_buildManifest.js +0 -0
  228. /package/.next/standalone/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_clientMiddlewareManifest.js +0 -0
  229. /package/.next/standalone/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_ssgManifest.js +0 -0
  230. /package/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_buildManifest.js +0 -0
  231. /package/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_clientMiddlewareManifest.js +0 -0
  232. /package/.next/static/{JkyieJgBB2eU8MtnlBGvG → JZXBFyFBzt6ffFpnmO9cB}/_ssgManifest.js +0 -0
@@ -0,0 +1,11 @@
1
+ # REQ5.1: 全文検索
2
+
3
+ [R5.1 — 全文検索](../../要求定義/R5-ドキュメント探索性/R5.1-ファイル名検索.md) を満たすため、ツリー上部に検索入力を置き、ドキュメント本文に対する全文検索を提供する。
4
+
5
+ ## 要件
6
+
7
+ - ツリー上部に常設の検索ボックスを置く
8
+ - 入力に応じて候補がリアルタイムに絞り込まれる(大文字小文字を区別しない部分一致)
9
+ - 各候補にはファイル名・パスに加え、ヒットした行とその付近のテキストを表示する
10
+ - 空文字のときは通常のツリー表示に戻る
11
+ - 候補クリックで該当ドキュメントへ遷移する
@@ -0,0 +1,3 @@
1
+ # REQ6: ファイル監視
2
+
3
+ [R1.4 — 保存即反映](../../要求定義/R1-ドキュメント閲覧性/R1.4-保存即反映.md) を満たすため、ファイルシステムの変更を監視しビューアに通知する仕組みを定義する。
@@ -0,0 +1,10 @@
1
+ # REQ6.1: SSE による変更通知
2
+
3
+ [R1.4 — 保存即反映](../../要求定義/R1-ドキュメント閲覧性/R1.4-保存即反映.md) を満たすため、サーバー側でファイル変更を監視し、Server-Sent Events でクライアントに通知する。
4
+
5
+ ## 要件
6
+
7
+ - ドキュメントルート配下の変更(作成・更新・削除・リネーム)を検知する
8
+ - 変更検知時にクライアントへイベントを送信し、ツリーと本文が自動で再取得される
9
+ - `node_modules`・`.git`・`.next`・`dist`・`.turbo` など明らかに無関係なディレクトリは監視対象外
10
+ - 接続が長時間続いてもプロキシやブラウザに切断されないよう keep-alive を送信する
@@ -0,0 +1,3 @@
1
+ # REQ7: 変更履歴
2
+
3
+ [R4 — 変更履歴の把握](../../要求定義/R4-変更履歴の把握/README.md) を満たすため、git ログを元にした履歴・タイムライン・差分機能を定義する。
@@ -0,0 +1,10 @@
1
+ # REQ7.1: ファイル変更履歴
2
+
3
+ [R4.1 — 変更内容の追跡](../../要求定義/R4-変更履歴の把握/R4.1-変更内容の追跡.md) を満たすため、選択中ファイルの git コミット履歴を詳細パネルの「履歴」タブに表示する。
4
+
5
+ ## 要件
6
+
7
+ - 選択中ファイルに触れたコミットを新しい順で一覧表示する
8
+ - 各コミットのハッシュ・日付・作者・件名を確認できる
9
+ - コミット一覧からそのコミットの diff 表示([REQ7.3](REQ7.3-diff表示.md))へ遷移できる
10
+ - `.git` が存在しない環境でもビューア自体は動作し、履歴タブは空または無効状態として扱う
@@ -0,0 +1,10 @@
1
+ # REQ7.2: タイムライン
2
+
3
+ [R4.2 — 影響範囲の俯瞰](../../要求定義/R4-変更履歴の把握/R4.2-影響範囲の俯瞰.md) を満たすため、リポジトリ全体の最近の変更を時系列パネルで俯瞰できるようにする。
4
+
5
+ ## 要件
6
+
7
+ - ヘッダのボタンでタイムラインパネルを開閉できる
8
+ - パネルにはリポジトリ全体の最近のコミットが新しい順で並ぶ
9
+ - 各コミットから、そのコミットで変更されたファイルを開ける
10
+ - タイムラインは下部パネルとして表示し、本文閲覧を大きく遮らない
@@ -0,0 +1,10 @@
1
+ # REQ7.3: diff 表示
2
+
3
+ [R4.1 — 変更内容の追跡](../../要求定義/R4-変更履歴の把握/R4.1-変更内容の追跡.md) を満たすため、任意の 2 点(コミット)間での差分を同じビューア内で確認できる。
4
+
5
+ ## 要件
6
+
7
+ - base/head の 2 リビジョンを指定して diff を取得できる
8
+ - 追加・削除行が視覚的に区別される
9
+ - Markdown ファイルの diff を、本文と近いスタイルで読める
10
+ - diff 元のコミット情報(ハッシュ・件名など)と紐づいて表示される
@@ -0,0 +1,11 @@
1
+ # R1.1: 独立ビューア
2
+
3
+ エディタ(VSCode 等)から切り離された、ブラウザ上で動作する独立したビューアを提供する。
4
+
5
+ ## 要求
6
+
7
+ - エディタを開かなくても閲覧できる
8
+ - エディタを起動する/しないに関係なく、閲覧体験が一定である
9
+ - 複数メンバーで同時に閲覧する使い方にも耐える
10
+
11
+
@@ -0,0 +1,11 @@
1
+ # R1.2: 大画面表示
2
+
3
+ ドキュメント内容を、横に広い大画面で読みやすく表示する。
4
+
5
+ ## 要求
6
+
7
+ - 本文を読む領域を最大限広く取る
8
+ - 必要に応じてツリー・目次を折りたためる
9
+ - 長文でも読み疲れしない行間・フォントを既定値で提供する
10
+
11
+
@@ -0,0 +1,9 @@
1
+ # R1.3: ナビゲーション履歴
2
+
3
+ リンクを辿ってドキュメント間を行き来する際、ブラウザの戻る/進むのような履歴操作が使える。
4
+
5
+ ## 要求
6
+
7
+ - リンクやノードで遷移した後、元のドキュメントに戻れる
8
+ - 戻ったあとに、戻る前の位置に進める
9
+ - 操作は視覚的に明示されたボタン(またはショートカット)で完結する
@@ -0,0 +1,9 @@
1
+ # R1.4: 保存即反映
2
+
3
+ 編集者がファイルを保存すると、ビューア側の表示もリロード操作なしに反映される。
4
+
5
+ ## 要求
6
+
7
+ - エディタで保存した変更が数秒以内にビューアへ反映される
8
+ - 閲覧者が明示的にリロード操作をせずに最新状態になる
9
+ - ツリー構造(ファイルの追加・削除・リネーム)の変化も自動で反映される
@@ -0,0 +1,9 @@
1
+ # R1.5: 共有可能 URL
2
+
3
+ いま見ているドキュメントの URL を他の人に渡すだけで、同じドキュメントを開かせることができる。
4
+
5
+ ## 要求
6
+
7
+ - 特定ファイルを開いた状態の URL を共有できる
8
+ - URL を受け取った人がそのリンクを踏むと、同じファイルが開いた状態でビューアが立ち上がる
9
+ - 戻る/進むなどのナビゲーション履歴を壊さずに URL が追従する
@@ -0,0 +1,7 @@
1
+ # R1: ドキュメント閲覧性
2
+
3
+ Markdown ドキュメントを、編集環境から独立した形で快適に閲覧できること。
4
+
5
+ ## 背景
6
+
7
+ AI駆動開発で Markdown 管理のドキュメントが急増し、VSCode のプレビュー窓を毎回独立化して広げる手間が大きくなっている。
@@ -0,0 +1,9 @@
1
+ # R2.1: 依存関係の把握
2
+
3
+ あるドキュメントが「何に依存しているか(参照先)」を視覚的に把握できる。
4
+
5
+ ## 要求
6
+
7
+ - 参照先を一目で列挙できる
8
+ - リンク先がドキュメントか用語かの区別までは問わない
9
+ - 1階層だけでなく、深い依存も辿れる
@@ -0,0 +1,9 @@
1
+ # R2.2: 参照元の把握
2
+
3
+ あるドキュメントが「どこから参照されているか(参照元)」を視覚的に把握できる。
4
+
5
+ ## 要求
6
+
7
+ - 参照元を見落とさずに把握できる
8
+ - 参照元の更新の影響範囲を見積もれる
9
+ - 孤立したドキュメントを発見できる
@@ -0,0 +1,8 @@
1
+ # R2: ドキュメント関係の可視化
2
+
3
+ ドキュメント間の依存関係・参照関係を、フォルダ階層以外の形でも把握できること。
4
+
5
+ ## 背景
6
+
7
+ フォルダ階層は親子関係しか表現できず、要求→要件→仕様のような派生関係や、複数ドキュメントから参照される用語の広がりは見えない。
8
+
@@ -0,0 +1,11 @@
1
+ # R3.1: 用語の即時確認
2
+
3
+ ドキュメント中の用語リンクにカーソルを合わせるだけで、用語の定義を確認できる。
4
+
5
+ ## 要求
6
+
7
+ - ページ遷移せずに定義を確認できる
8
+ - 定義が長文の場合でも、本文を離れずに読める程度に収まる
9
+ - プレビューポップアップ 1 機能で賄える
10
+
11
+
@@ -0,0 +1,7 @@
1
+ # R3: オンボーディング支援
2
+
3
+ 新メンバーがドキュメント群の内容を素早く把握できる導線を用意する。
4
+
5
+ ## 背景
6
+
7
+ ドキュメント内のドメイン用語が理解の壁になる。用語定義までの導線が弱いと、読み進めるたびに別ファイルを開く/戻るの手間がかかる。
@@ -0,0 +1,9 @@
1
+ # R4.1: 変更内容の追跡
2
+
3
+ あるドキュメントが「いつ・どう変わったか」を、ビューアを離れずに確認できる。
4
+
5
+ ## 要求
6
+
7
+ - 特定ファイルのコミット履歴を時系列で一覧できる
8
+ - 任意のコミット間の差分を本文と並べて読める
9
+ - ドキュメント本文とコミット情報を行き来する手間がかからない
@@ -0,0 +1,9 @@
1
+ # R4.2: 影響範囲の俯瞰
2
+
3
+ リポジトリ全体で最近どのドキュメントが動いているかを俯瞰できる。
4
+
5
+ ## 要求
6
+
7
+ - 最近の変更を時系列でまとめた一覧を提供する
8
+ - 変更が集中している領域を一目で把握できる
9
+ - 一覧から該当ドキュメントへすぐ遷移できる
@@ -0,0 +1,7 @@
1
+ # R4: 変更履歴の把握
2
+
3
+ ドキュメントがいつ・誰によって・どう変わったかを、ビューア内で把握できること。
4
+
5
+ ## 背景
6
+
7
+ git の履歴を `git log` や GitHub で別途確認するのは文脈が切れる。ドキュメントを読みながら「なぜこう書かれているのか」「最近どこが変わったのか」を同じ画面で追えると、読解とレビューが一体化する。
@@ -0,0 +1,9 @@
1
+ # R5.1: 全文検索
2
+
3
+ ドキュメント本文中のキーワードから、該当ドキュメントを検索できる。
4
+
5
+ ## 要求
6
+
7
+ - キーワードの部分一致でヒットしたドキュメントを一覧できる
8
+ - 一致箇所が本文のどの付近かを、候補上で確認できる
9
+ - 候補からクリック 1 回で該当ドキュメントを開ける
@@ -0,0 +1,7 @@
1
+ # R5: ドキュメント探索性
2
+
3
+ ツリーをたどる以外の方法でも、目的のドキュメントへ素早くたどり着けること。
4
+
5
+ ## 背景
6
+
7
+ リポジトリ内のドキュメント数が増えると、フォルダ階層をたどるだけでは目的ファイルに到達しづらい。ファイル名の一部しか覚えていないケースにも応えられる導線が必要になる。
@@ -0,0 +1,9 @@
1
+ # R6.1: Docker 配信
2
+
3
+ Docker イメージとして配布・実行できる形で提供する。
4
+
5
+ ## 要求
6
+
7
+ - イメージを `docker run` するだけで閲覧サーバーが立ち上がる
8
+ - ドキュメントをボリュームマウントでも、イメージに焼き込む形でも配信できる
9
+ - ホスト環境に Node.js を用意しなくても動く
@@ -0,0 +1,9 @@
1
+ # R6.2: サブパス配信
2
+
3
+ ドメイン直下ではなく、サブパス(例: `example.com/wiki`)に載せる形でも動作する。
4
+
5
+ ## 要求
6
+
7
+ - リバースプロキシ配下でサブパスにマウントしても、アセット参照や API パスが壊れない
8
+ - サブパスの値は設定で切り替えられ、イメージや成果物を作り直す必要が最小限に収まる
9
+ - サブパス未設定時はルート直下で動作する
@@ -0,0 +1,7 @@
1
+ # R6: デプロイ柔軟性
2
+
3
+ ローカルでの閲覧だけでなく、チームやプロジェクト向けに配信する形態も選べること。
4
+
5
+ ## 背景
6
+
7
+ 個人で `npx` 起動する用途と、チーム横断のドキュメントポータルとしてサーバー常駐させる用途では前提が違う。配信形態や URL の切り方を柔軟に選べないと、既存のリバースプロキシ構成や社内イントラに組み込めない。
@@ -0,0 +1,9 @@
1
+ # 要求定義
2
+
3
+ ユーザーやビジネスが「こうありたい」と望む状態を記述する最上位レイヤ。
4
+
5
+ ## 書き方
6
+
7
+ - 各要求は `R{番号}-{テーマ}/README.md` で定義する
8
+ - 背景・動機を明記し、「何を解決したいか」が読み取れるようにする
9
+ - 下位レイヤへのリンクは張らない(リンクグラフが双方向に濁るため、参照は[要件](../要件定義/README.md)側から上向きに張る)
@@ -1,7 +1,14 @@
1
1
  import type { NextConfig } from "next";
2
2
 
3
+ const rawBasePath = process.env.NEXT_PUBLIC_BASE_PATH?.trim();
4
+ const basePath =
5
+ rawBasePath && rawBasePath !== "/" && rawBasePath !== ""
6
+ ? rawBasePath.replace(/\/$/, "")
7
+ : undefined;
8
+
3
9
  const nextConfig: NextConfig = {
4
10
  output: "standalone",
11
+ ...(basePath ? { basePath } : {}),
5
12
  };
6
13
 
7
14
  export default nextConfig;
@@ -1,8 +1,28 @@
1
1
  {
2
2
  "name": "markshelf",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Structured markdown viewer for git repositories",
5
5
  "license": "MIT",
6
+ "author": "sksp.work",
7
+ "homepage": "https://github.com/skspwork/markshelf#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/skspwork/markshelf.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/skspwork/markshelf/issues"
14
+ },
15
+ "keywords": [
16
+ "markdown",
17
+ "viewer",
18
+ "docs",
19
+ "documentation",
20
+ "git",
21
+ "nextjs",
22
+ "graph",
23
+ "knowledge-base",
24
+ "oss"
25
+ ],
6
26
  "bin": {
7
27
  "markshelf": "./bin/cli.mjs"
8
28
  },
@@ -16,6 +36,8 @@
16
36
  "dev": "next dev --hostname 0.0.0.0",
17
37
  "build": "next build && node scripts/pack-static.mjs",
18
38
  "start": "next start",
39
+ "docker:build": "docker build -t markshelf-base .",
40
+ "docker:run": "node scripts/docker-run.mjs",
19
41
  "prepublishOnly": "npm run build"
20
42
  },
21
43
  "dependencies": {
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ // Cross-platform wrapper for `docker run` so $PWD / %cd% differences don't bite us.
3
+ import { spawn } from "node:child_process";
4
+ import path from "node:path";
5
+
6
+ const docsPath = path.resolve(process.cwd(), "docs");
7
+
8
+ const args = [
9
+ "run",
10
+ "--rm",
11
+ "-p",
12
+ "3000:3000",
13
+ "-v",
14
+ `${docsPath}:/docs`,
15
+ ...process.argv.slice(2),
16
+ "markshelf-base",
17
+ ];
18
+
19
+ const child = spawn("docker", args, { stdio: "inherit" });
20
+ child.on("exit", (code) => process.exit(code ?? 1));
21
+ child.on("error", (err) => {
22
+ console.error("[docker-run] failed to spawn docker:", err.message);
23
+ process.exit(1);
24
+ });
@@ -9,7 +9,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
9
9
  const hostname = process.env.HOSTNAME || '0.0.0.0'
10
10
 
11
11
  let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
12
- const nextConfig = {"env":{},"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":false,"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":"C:\\sksp\\mark-shelf","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":7,"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":"C:\\sksp\\mark-shelf"},"distDirRoot":".next"}
12
+ const nextConfig = {"env":{},"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":false,"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":"C:\\sksp\\markshelf","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":7,"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":"C:\\sksp\\markshelf"},"distDirRoot":".next"}
13
13
 
14
14
  process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
15
15
 
@@ -0,0 +1,40 @@
1
+ import { NextRequest, NextResponse } from "next/server";
2
+ import { readAsset } from "@/lib/docs";
3
+
4
+ const MIME: Record<string, string> = {
5
+ ".png": "image/png",
6
+ ".jpg": "image/jpeg",
7
+ ".jpeg": "image/jpeg",
8
+ ".gif": "image/gif",
9
+ ".svg": "image/svg+xml",
10
+ ".webp": "image/webp",
11
+ ".avif": "image/avif",
12
+ ".ico": "image/x-icon",
13
+ ".bmp": "image/bmp",
14
+ };
15
+
16
+ export async function GET(req: NextRequest) {
17
+ const filePath = req.nextUrl.searchParams.get("path");
18
+ if (!filePath) {
19
+ return NextResponse.json({ error: "path required" }, { status: 400 });
20
+ }
21
+
22
+ const dot = filePath.lastIndexOf(".");
23
+ const ext = dot >= 0 ? filePath.slice(dot).toLowerCase() : "";
24
+ const contentType = MIME[ext];
25
+ if (!contentType) {
26
+ return NextResponse.json({ error: "unsupported media type" }, { status: 415 });
27
+ }
28
+
29
+ const data = readAsset(filePath);
30
+ if (!data) {
31
+ return NextResponse.json({ error: "not found" }, { status: 404 });
32
+ }
33
+
34
+ return new NextResponse(new Uint8Array(data), {
35
+ headers: {
36
+ "Content-Type": contentType,
37
+ "Cache-Control": "no-cache",
38
+ },
39
+ });
40
+ }
@@ -0,0 +1,89 @@
1
+ import fs from "fs";
2
+ import type { NextRequest } from "next/server";
3
+
4
+ const DOCS_ROOT = process.env.MARKSHELF_ROOT || process.cwd();
5
+ const IGNORE_PATTERNS = [
6
+ /(^|\/)node_modules(\/|$)/,
7
+ /(^|\/)\.git(\/|$)/,
8
+ /(^|\/)\.next(\/|$)/,
9
+ /(^|\/)dist(\/|$)/,
10
+ /(^|\/)\.turbo(\/|$)/,
11
+ ];
12
+
13
+ function isIgnored(rel: string): boolean {
14
+ if (rel.startsWith(".")) return true;
15
+ return IGNORE_PATTERNS.some((p) => p.test(rel));
16
+ }
17
+
18
+ export async function GET(request: NextRequest) {
19
+ const encoder = new TextEncoder();
20
+ let watcher: fs.FSWatcher | null = null;
21
+ let keepAlive: ReturnType<typeof setInterval> | null = null;
22
+ let closed = false;
23
+
24
+ const cleanup = () => {
25
+ if (closed) return;
26
+ closed = true;
27
+ try {
28
+ watcher?.close();
29
+ } catch {
30
+ /* ignore */
31
+ }
32
+ if (keepAlive) clearInterval(keepAlive);
33
+ };
34
+
35
+ request.signal.addEventListener("abort", cleanup);
36
+
37
+ const stream = new ReadableStream({
38
+ start(controller) {
39
+ const send = (event: string, data: object) => {
40
+ if (closed) return;
41
+ try {
42
+ controller.enqueue(
43
+ encoder.encode(`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`),
44
+ );
45
+ } catch {
46
+ cleanup();
47
+ }
48
+ };
49
+
50
+ send("connected", { root: DOCS_ROOT });
51
+
52
+ try {
53
+ watcher = fs.watch(
54
+ DOCS_ROOT,
55
+ { recursive: true, persistent: false },
56
+ (_eventType, filename) => {
57
+ if (!filename) return;
58
+ const rel = String(filename).replace(/\\/g, "/");
59
+ if (isIgnored(rel)) return;
60
+ send("change", { path: rel });
61
+ },
62
+ );
63
+ } catch (e) {
64
+ send("error", { message: String(e) });
65
+ }
66
+
67
+ keepAlive = setInterval(() => {
68
+ if (closed) return;
69
+ try {
70
+ controller.enqueue(encoder.encode(": keepalive\n\n"));
71
+ } catch {
72
+ cleanup();
73
+ }
74
+ }, 30000);
75
+ },
76
+ cancel() {
77
+ cleanup();
78
+ },
79
+ });
80
+
81
+ return new Response(stream, {
82
+ headers: {
83
+ "Content-Type": "text/event-stream; charset=utf-8",
84
+ "Cache-Control": "no-cache, no-transform",
85
+ Connection: "keep-alive",
86
+ "X-Accel-Buffering": "no",
87
+ },
88
+ });
89
+ }