forgecad 0.6.3 → 0.8.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 (234) hide show
  1. package/README.md +3 -12
  2. package/dist/assets/{AdminPage-CeqCUUgu.js → AdminPage-D4bocK4E.js} +250 -151
  3. package/dist/assets/{BlogPage-P_AJP0v9.js → BlogPage-CJEXL_zJ.js} +94 -70
  4. package/dist/assets/{DocsPage-CKRV2iq2.js → DocsPage-D3A_g8V3.js} +329 -163
  5. package/dist/assets/{EditorApp-CnC2k4cW.css → EditorApp-BWYUSpUN.css} +590 -136
  6. package/dist/assets/EditorApp-Cihhqcsq.js +11692 -0
  7. package/dist/assets/{EmbedViewer-DBlzmQ5i.js → EmbedViewer-kWjKaC_t.js} +2 -4
  8. package/dist/assets/LandingPageProofDriven-Bg2IUc3l.css +856 -0
  9. package/dist/assets/LandingPageProofDriven-DXkKlyhI.js +601 -0
  10. package/dist/assets/PricingPage-BsU5vzEx.js +232 -0
  11. package/dist/assets/{SettingsPage-BqCh9JcC.js → SettingsPage-PqvpAKIs.js} +129 -5
  12. package/dist/assets/{evalWorker-Ql-aKwLA.js → evalWorker-C-hzNUMy.js} +8949 -3161
  13. package/dist/assets/{Viewport-CoB46f5R.js → index-Pz321YAt.js} +38382 -7501
  14. package/dist/assets/{index-2hfs_ub0.css → index-ay13WNfa.css} +726 -53
  15. package/dist/assets/{javascript-DCxGoE5Y.js → javascript-DAl8Gmyo.js} +1 -1
  16. package/dist/assets/{manifold-CqNMHHKO.js → manifold-BcbjWLIo.js} +4 -3
  17. package/dist/assets/{manifold-Cce9wRFz.js → manifold-DBckbFgx.js} +1 -1
  18. package/dist/assets/{manifold-D6BeHIOo.js → manifold-O2AAGXyj.js} +1 -1
  19. package/dist/assets/{reportWorker-sFEFonXf.js → reportWorker-Dxr-5A7w.js} +8760 -3559
  20. package/dist/assets/{vendor-react-Dt7-aaJH.js → vendor-react-CG3i_wp0.js} +65 -8
  21. package/dist/docs/index.html +2 -2
  22. package/dist/docs-raw/CLI.md +341 -718
  23. package/dist/docs-raw/generated/assembly.md +699 -112
  24. package/dist/docs-raw/generated/concepts.md +1834 -1346
  25. package/dist/docs-raw/generated/core.md +1012 -1059
  26. package/dist/docs-raw/generated/curves.md +759 -116
  27. package/dist/docs-raw/generated/lib.md +43 -748
  28. package/dist/docs-raw/generated/output.md +139 -245
  29. package/dist/docs-raw/generated/sdf.md +208 -0
  30. package/dist/docs-raw/generated/sheet-metal.md +473 -21
  31. package/dist/docs-raw/generated/sketch.md +1518 -362
  32. package/dist/docs-raw/generated/viewport.md +368 -299
  33. package/dist/docs-raw/generated/wood.md +104 -0
  34. package/dist/index.html +2 -2
  35. package/dist/landing/proof-ams-adapter.png +0 -0
  36. package/dist/landing/proof-bolt-and-nut.png +0 -0
  37. package/dist/landing/proof-fillet-enclosure.png +0 -0
  38. package/dist/landing/proof-glasses.png +0 -0
  39. package/dist/landing/proof-gyroid.png +0 -0
  40. package/dist/sitemap.xml +6 -6
  41. package/dist-cli/forgecad.js +12321 -5700
  42. package/dist-cli/forgecad.js.map +1 -0
  43. package/dist-cli/solver-46FFSK2U.js +363 -0
  44. package/dist-cli/solver-46FFSK2U.js.map +1 -0
  45. package/dist-skill/CONTEXT.md +4890 -6302
  46. package/dist-skill/SKILL-dev.md +22 -66
  47. package/dist-skill/SKILL.md +20 -59
  48. package/dist-skill/docs/API/core/concepts.md +37 -92
  49. package/dist-skill/docs/CLI.md +341 -718
  50. package/dist-skill/docs/generated/assembly.md +699 -112
  51. package/dist-skill/docs/generated/core.md +1012 -1059
  52. package/dist-skill/docs/generated/curves.md +759 -116
  53. package/dist-skill/docs/generated/lib.md +43 -748
  54. package/dist-skill/docs/generated/output.md +139 -245
  55. package/dist-skill/docs/generated/sdf.md +208 -0
  56. package/dist-skill/docs/generated/sheet-metal.md +473 -21
  57. package/dist-skill/docs/generated/sketch.md +1518 -362
  58. package/dist-skill/docs/generated/viewport.md +368 -299
  59. package/dist-skill/docs/generated/wood.md +104 -0
  60. package/dist-skill/docs/guides/coordinate-system.md +11 -17
  61. package/dist-skill/docs/guides/geometry-conventions.md +13 -70
  62. package/dist-skill/docs/guides/joint-design.md +78 -0
  63. package/dist-skill/docs/guides/modeling-recipes.md +22 -195
  64. package/dist-skill/docs/guides/positioning.md +88 -147
  65. package/dist-skill/docs-dev/API/core/concepts.md +78 -0
  66. package/dist-skill/docs-dev/CLI.md +488 -0
  67. package/dist-skill/{docs → docs-dev}/blueprint-first.md +5 -0
  68. package/dist-skill/{docs → docs-dev}/coding-best-practices.md +6 -8
  69. package/dist-skill/{docs → docs-dev}/coding.md +2 -4
  70. package/dist-skill/docs-dev/component-model.md +164 -0
  71. package/dist-skill/docs-dev/generated/assembly.md +779 -0
  72. package/dist-skill/docs-dev/generated/core.md +1676 -0
  73. package/dist-skill/docs-dev/generated/curves.md +855 -0
  74. package/dist-skill/docs-dev/generated/lib.md +55 -0
  75. package/dist-skill/docs-dev/generated/output.md +234 -0
  76. package/dist-skill/docs-dev/generated/sdf.md +208 -0
  77. package/dist-skill/docs-dev/generated/sheet-metal.md +506 -0
  78. package/dist-skill/docs-dev/generated/sketch.md +1753 -0
  79. package/dist-skill/docs-dev/generated/viewport.md +513 -0
  80. package/dist-skill/docs-dev/generated/wood.md +104 -0
  81. package/dist-skill/docs-dev/guides/coordinate-system.md +46 -0
  82. package/dist-skill/docs-dev/guides/geometry-conventions.md +52 -0
  83. package/dist-skill/docs-dev/guides/joint-design.md +78 -0
  84. package/dist-skill/docs-dev/guides/modeling-recipes.md +77 -0
  85. package/dist-skill/docs-dev/guides/positioning.md +151 -0
  86. package/dist-skill/{docs → docs-dev}/guides/skill-maintenance.md +21 -10
  87. package/dist-skill/{docs → docs-dev}/internals/compiler.md +5 -6
  88. package/dist-skill/{docs → docs-dev}/internals/constraint-solver-quality.md +0 -1
  89. package/dist-skill/{docs → docs-dev}/internals/constraint-solver.md +0 -1
  90. package/dist-skill/{docs → docs-dev}/internals/sketch-2d-pipeline.md +2 -3
  91. package/examples/api/attachTo-basics.forge.js +8 -8
  92. package/examples/api/bill-of-materials.forge.js +9 -9
  93. package/examples/api/bolt-pattern.forge.js +5 -5
  94. package/examples/api/boolean-operations.forge.js +5 -5
  95. package/examples/api/bounding-box-visualizer.forge.js +3 -3
  96. package/examples/api/clone-duplicate.forge.js +2 -2
  97. package/examples/api/colors-union-vs-array.forge.js +6 -6
  98. package/examples/api/connector-assembly.forge.js +8 -6
  99. package/examples/api/connector-basics.forge.js +7 -7
  100. package/examples/api/constrained-sketch-mechanical.forge.js +4 -4
  101. package/examples/api/elbow-test.forge.js +3 -3
  102. package/examples/api/extrude-options.forge.js +8 -14
  103. package/examples/api/feature-created-faces.forge.js +6 -10
  104. package/examples/api/fillet-showcase.forge.js +2 -2
  105. package/examples/api/folded-service-panel-cover.forge.js +2 -2
  106. package/examples/api/gears-tier1.forge.js +5 -5
  107. package/examples/api/group-test.forge.js +3 -3
  108. package/examples/api/group-vs-union.forge.js +1 -1
  109. package/examples/api/highlight-debug.forge.js +4 -0
  110. package/examples/api/js-module-pillars.js +1 -1
  111. package/examples/api/js-module-scene.js +2 -2
  112. package/examples/api/mesh-import-slats.forge.js +4 -4
  113. package/examples/api/patterns.forge.js +3 -3
  114. package/examples/api/pointAlong-orientation.forge.js +3 -3
  115. package/examples/api/profile-2020-b-slot6.forge.js +4 -5
  116. package/examples/api/route-perimeter-flange.forge.js +1 -1
  117. package/examples/api/sdf-rover-demo.forge.js +10 -10
  118. package/examples/api/sketch-on-face-demo.forge.js +2 -2
  119. package/examples/api/sketch-regions.forge.js +4 -4
  120. package/examples/api/sketch-rounding-strategies.forge.js +1 -1
  121. package/examples/api/smooth-curve-connections.forge.js +1 -1
  122. package/examples/api/transition-curves.forge.js +4 -4
  123. package/examples/api/variable-sweep-pure-sdf-test.forge.js +162 -0
  124. package/examples/api/variable-sweep-test.forge.js +2 -2
  125. package/examples/api/wood-joinery.forge.js +60 -0
  126. package/examples/compiler-corpus/enclosure-shell-cuts.forge.js +3 -3
  127. package/examples/compiler-corpus/fastener-plate-variants.forge.js +2 -2
  128. package/examples/constraints/01-fully-constrained-rect.forge.js +2 -2
  129. package/examples/constraints/02-underconstrained-triangle.forge.js +1 -1
  130. package/examples/constraints/03-redundant-constraints.forge.js +2 -2
  131. package/examples/constraints/05-parallel-with-linedistance.forge.js +2 -2
  132. package/examples/constraints/06-complex-spectrogram.forge.js +1 -1
  133. package/examples/constraints/07-perpendicular-chain.forge.js +4 -4
  134. package/examples/constraints/08-symmetric-bracket.forge.js +4 -4
  135. package/examples/constraints/09-stress-spiral.forge.js +1 -1
  136. package/examples/constraints/10-stress-honeycomb.forge.js +1 -1
  137. package/examples/constraints/11-surface-grid.forge.js +2 -2
  138. package/examples/constraints/12-surface-nested.forge.js +4 -4
  139. package/examples/constraints/13-surface-complex.forge.js +1 -1
  140. package/examples/exact-arc-housing.forge.js +12 -0
  141. package/examples/experiments/drone-arm.forge.js +53 -0
  142. package/examples/furniture/adjustable-table.forge.js +15 -15
  143. package/examples/furniture/bathroom.forge.js +26 -26
  144. package/examples/furniture/chair.forge.js +13 -13
  145. package/examples/furniture/picture-frame.forge.js +6 -6
  146. package/examples/furniture/shoe-rack-doors.forge.js +8 -8
  147. package/examples/furniture/shoe-rack.forge.js +7 -7
  148. package/examples/furniture/table-lamp.forge.js +8 -8
  149. package/examples/gcode/lissajous-vase.forge.js +4 -4
  150. package/examples/gcode/math-surface.forge.js +3 -3
  151. package/examples/gcode/parametric-vase.forge.js +4 -4
  152. package/examples/gcode/spiral-tower.forge.js +4 -4
  153. package/examples/generative/crystal-growth.forge.js +9 -9
  154. package/examples/generative/frost-spires.forge.js +9 -9
  155. package/examples/generative/golden-spiral-tower.forge.js +11 -11
  156. package/examples/generative/molten-forge.forge.js +6 -6
  157. package/examples/generative/neon-coral.forge.js +7 -7
  158. package/examples/mechanical/3d-printer.forge.js +37 -37
  159. package/examples/mechanical/5-finger-robot-hand.forge.js +19 -19
  160. package/examples/mechanical/airplane-propeller.forge.js +9 -9
  161. package/examples/mechanical/bolt-and-nut.forge.js +10 -10
  162. package/examples/mechanical/door-with-hinges.forge.js +7 -7
  163. package/examples/mechanical/fillet-enclosure.forge.js +15 -11
  164. package/examples/mechanical/headphone-hanger-v2.forge.js +11 -11
  165. package/examples/mechanical/robot_hand.forge.js +24 -24
  166. package/examples/mechanical/robot_hand_2.forge.js +26 -26
  167. package/examples/nurbs-surface.forge.js +8 -0
  168. package/examples/nurbs-tube.forge.js +7 -0
  169. package/examples/products/bottle.forge.js +8 -8
  170. package/examples/products/chess-set.forge.js +25 -25
  171. package/examples/products/classical-piano.forge.js +20 -20
  172. package/examples/products/clock.forge.js +33 -33
  173. package/examples/products/cup.forge.js +5 -5
  174. package/examples/products/iphone.forge.js +20 -20
  175. package/examples/products/laptop.forge.js +24 -24
  176. package/examples/products/laser-cut-box.forge.js +6 -6
  177. package/examples/products/laser-cut-tray.forge.js +6 -6
  178. package/examples/products/liquid-soap-dispenser.forge.js +23 -23
  179. package/examples/products/origami-fish.forge.js +14 -12
  180. package/examples/products/spiderman-cake.forge.js +6 -6
  181. package/examples/shelf/container.forge.js +5 -5
  182. package/examples/shelf/shelf-unit.forge.js +6 -6
  183. package/examples/toolbox/bolted-joint.forge.js +7 -7
  184. package/package.json +9 -4
  185. package/dist/assets/EditorApp-B-vQvgam.js +0 -9888
  186. package/dist/assets/LandingPage-C5n9hDXI.js +0 -322
  187. package/dist/assets/PublishedModelPage-Dt7PCVBj.js +0 -146
  188. package/dist/assets/__vite-browser-external-CURh0WXD.js +0 -8
  189. package/dist/assets/deserializeRunResult-BLAFoiE0.js +0 -19365
  190. package/dist/assets/index-1CYp3zUp.js +0 -1455
  191. package/dist-skill/docs/API/API.md +0 -1666
  192. package/dist-skill/docs/API/README.md +0 -37
  193. package/dist-skill/docs/API/assembly/assembly.md +0 -617
  194. package/dist-skill/docs/API/core/edge-queries.md +0 -130
  195. package/dist-skill/docs/API/core/parameters.md +0 -122
  196. package/dist-skill/docs/API/core/reserved-terms.md +0 -137
  197. package/dist-skill/docs/API/core/sdf.md +0 -326
  198. package/dist-skill/docs/API/core/skill-cli.md +0 -194
  199. package/dist-skill/docs/API/core/skill-guide.md +0 -205
  200. package/dist-skill/docs/API/core/specs.md +0 -186
  201. package/dist-skill/docs/API/core/topology.md +0 -372
  202. package/dist-skill/docs/API/entities.md +0 -268
  203. package/dist-skill/docs/API/output/bom.md +0 -58
  204. package/dist-skill/docs/API/output/brep-export.md +0 -87
  205. package/dist-skill/docs/API/output/dimensions.md +0 -67
  206. package/dist-skill/docs/API/output/export.md +0 -110
  207. package/dist-skill/docs/API/output/gcode.md +0 -195
  208. package/dist-skill/docs/API/runtime/viewport.md +0 -420
  209. package/dist-skill/docs/API/sheet-metal/sheet-metal.md +0 -185
  210. package/dist-skill/docs/API/sketch/anchor.md +0 -37
  211. package/dist-skill/docs/API/sketch/booleans.md +0 -91
  212. package/dist-skill/docs/API/sketch/core.md +0 -73
  213. package/dist-skill/docs/API/sketch/extrude.md +0 -62
  214. package/dist-skill/docs/API/sketch/on-face.md +0 -104
  215. package/dist-skill/docs/API/sketch/operations.md +0 -78
  216. package/dist-skill/docs/API/sketch/path.md +0 -75
  217. package/dist-skill/docs/API/sketch/primitives.md +0 -146
  218. package/dist-skill/docs/API/sketch/regions.md +0 -80
  219. package/dist-skill/docs/API/sketch/text.md +0 -108
  220. package/dist-skill/docs/API/sketch/transforms.md +0 -65
  221. package/dist-skill/docs/API/toolbox/fasteners.md +0 -129
  222. package/dist-skill/docs/INDEX.md +0 -94
  223. package/dist-skill/docs/RELEASING.md +0 -55
  224. package/dist-skill/docs/cli-monetization.md +0 -111
  225. package/dist-skill/docs/deployment.md +0 -281
  226. package/dist-skill/docs/generated/concepts.md +0 -2112
  227. package/dist-skill/docs/internals/shape-from-slices.md +0 -152
  228. package/dist-skill/docs/platform/admin.md +0 -45
  229. package/dist-skill/docs/platform/architecture.md +0 -79
  230. package/dist-skill/docs/platform/auth.md +0 -110
  231. package/dist-skill/docs/platform/email.md +0 -67
  232. package/dist-skill/docs/platform/projects.md +0 -111
  233. package/dist-skill/docs/platform/sharing.md +0 -90
  234. package/dist-skill/docs/runbook.md +0 -345
@@ -1,322 +0,0 @@
1
- import { j as jsxRuntimeExports, L as Link } from "./vendor-react-Dt7-aaJH.js";
2
- function HeroSection() {
3
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { style: {
4
- minHeight: "80vh",
5
- display: "flex",
6
- flexDirection: "column",
7
- alignItems: "center",
8
- justifyContent: "center",
9
- textAlign: "center",
10
- padding: "80px 24px 60px",
11
- position: "relative"
12
- }, children: [
13
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 64, marginBottom: 24 }, children: "⚒" }),
14
- /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { style: {
15
- fontSize: "clamp(36px, 6vw, 64px)",
16
- fontWeight: 700,
17
- color: "var(--fc-text)",
18
- margin: "0 0 16px",
19
- lineHeight: 1.1,
20
- letterSpacing: "-0.02em"
21
- }, children: "Code-First Parametric CAD" }),
22
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: {
23
- fontSize: "clamp(16px, 2.5vw, 22px)",
24
- color: "var(--fc-textMuted)",
25
- maxWidth: 600,
26
- margin: "0 0 40px",
27
- lineHeight: 1.5
28
- }, children: "Design mechanical parts with JavaScript. Parametric sliders, constraint-based sketches, and 12+ export formats — from STL to STEP to G-code." }),
29
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", gap: 12, flexWrap: "wrap", justifyContent: "center" }, children: [
30
- /* @__PURE__ */ jsxRuntimeExports.jsx(
31
- Link,
32
- {
33
- to: "/app",
34
- style: {
35
- padding: "14px 32px",
36
- fontSize: 16,
37
- fontWeight: 600,
38
- background: "var(--fc-accent)",
39
- color: "var(--fc-accentText)",
40
- borderRadius: 8,
41
- textDecoration: "none",
42
- border: "none",
43
- cursor: "pointer"
44
- },
45
- children: "Start Building"
46
- }
47
- ),
48
- /* @__PURE__ */ jsxRuntimeExports.jsx(
49
- Link,
50
- {
51
- to: "/docs",
52
- style: {
53
- padding: "14px 32px",
54
- fontSize: 16,
55
- fontWeight: 600,
56
- background: "transparent",
57
- color: "var(--fc-text)",
58
- borderRadius: 8,
59
- textDecoration: "none",
60
- border: "1px solid var(--fc-border)",
61
- cursor: "pointer"
62
- },
63
- children: "Read the Docs"
64
- }
65
- )
66
- ] })
67
- ] });
68
- }
69
- function FeatureCard({ title, description, code }) {
70
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
71
- background: "var(--fc-bgSurface)",
72
- border: "1px solid var(--fc-border)",
73
- borderRadius: 12,
74
- padding: 28,
75
- flex: "1 1 300px",
76
- maxWidth: 400
77
- }, children: [
78
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { style: { margin: "0 0 8px", fontSize: 18, fontWeight: 600, color: "var(--fc-text)" }, children: title }),
79
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { margin: "0 0 16px", fontSize: 14, color: "var(--fc-textMuted)", lineHeight: 1.5 }, children: description }),
80
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { style: {
81
- background: "var(--fc-bg)",
82
- border: "1px solid var(--fc-border)",
83
- borderRadius: 8,
84
- padding: 16,
85
- fontSize: 13,
86
- fontFamily: "var(--fc-mono, monospace)",
87
- color: "var(--fc-text)",
88
- overflow: "auto",
89
- margin: 0,
90
- lineHeight: 1.5
91
- }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: code }) })
92
- ] });
93
- }
94
- function FeaturesSection() {
95
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { style: {
96
- padding: "80px 24px",
97
- maxWidth: 1200,
98
- margin: "0 auto"
99
- }, children: [
100
- /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { style: {
101
- textAlign: "center",
102
- fontSize: 32,
103
- fontWeight: 700,
104
- color: "var(--fc-text)",
105
- margin: "0 0 48px"
106
- }, children: "Why ForgeCAD?" }),
107
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
108
- display: "flex",
109
- gap: 24,
110
- flexWrap: "wrap",
111
- justifyContent: "center"
112
- }, children: [
113
- /* @__PURE__ */ jsxRuntimeExports.jsx(
114
- FeatureCard,
115
- {
116
- title: "Parametric by Default",
117
- description: "Every dimension becomes a live slider. Change one value and the entire model updates instantly.",
118
- code: `const width = param('width', 50, { min: 10, max: 200 });
119
- const depth = param('depth', 30, { min: 10, max: 100 });
120
-
121
- const plate = box(width, depth, 5)
122
- .fillet(3);`
123
- }
124
- ),
125
- /* @__PURE__ */ jsxRuntimeExports.jsx(
126
- FeatureCard,
127
- {
128
- title: "AI-Ready Design",
129
- description: "Models are plain JavaScript — LLMs can read, write, and modify them. No binary formats, no vendor lock-in.",
130
- code: `// Claude or GPT can write this:
131
- const bolt = lib.bolt('M8', 30);
132
- const nut = lib.nut('M8');
133
-
134
- return assembly()
135
- .add('bolt', bolt)
136
- .add('nut', nut, { z: 25 });`
137
- }
138
- ),
139
- /* @__PURE__ */ jsxRuntimeExports.jsx(
140
- FeatureCard,
141
- {
142
- title: "Export Anywhere",
143
- description: "STL for 3D printing, STEP for professional CAD, G-code for CNC, URDF for robotics. One model, every format.",
144
- code: `// From the CLI:
145
- // forgecad export stl bracket.forge.js
146
- // forgecad export step bracket.forge.js
147
- // forgecad export gcode bracket.forge.js
148
- // forgecad export urdf robot.forge.js`
149
- }
150
- )
151
- ] })
152
- ] });
153
- }
154
- function CapabilitiesSection() {
155
- const capabilities = [
156
- { label: "Constraint-based sketches", detail: "18 constraint types with algebraic solver" },
157
- { label: "Assembly kinematics", detail: "Revolute, prismatic, and gear joints" },
158
- { label: "Named faces & edges", detail: "Topology tracking through boolean operations" },
159
- { label: "SDF / generative", detail: "Gyroid, voronoi, and custom distance fields" },
160
- { label: "Multi-file projects", detail: "require() parts, organize with folders" },
161
- { label: "Live 3D viewport", detail: "Edit code, see changes instantly" },
162
- { label: "Measurement tools", detail: "Distances, angles, areas in the viewport" },
163
- { label: "Sheet metal", detail: "Bends, flat patterns, and K-factor" }
164
- ];
165
- return /* @__PURE__ */ jsxRuntimeExports.jsx("section", { style: {
166
- padding: "80px 24px",
167
- background: "var(--fc-bgSurface)",
168
- borderTop: "1px solid var(--fc-border)",
169
- borderBottom: "1px solid var(--fc-border)"
170
- }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { maxWidth: 900, margin: "0 auto" }, children: [
171
- /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { style: {
172
- textAlign: "center",
173
- fontSize: 32,
174
- fontWeight: 700,
175
- color: "var(--fc-text)",
176
- margin: "0 0 48px"
177
- }, children: "Everything You Need" }),
178
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
179
- display: "grid",
180
- gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))",
181
- gap: 20
182
- }, children: capabilities.map((cap) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
183
- padding: "16px 20px",
184
- background: "var(--fc-bg)",
185
- borderRadius: 8,
186
- border: "1px solid var(--fc-border)"
187
- }, children: [
188
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 15, fontWeight: 600, color: "var(--fc-text)", marginBottom: 4 }, children: cap.label }),
189
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 13, color: "var(--fc-textMuted)" }, children: cap.detail })
190
- ] }, cap.label)) })
191
- ] }) });
192
- }
193
- function CTASection() {
194
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { style: {
195
- padding: "80px 24px",
196
- textAlign: "center"
197
- }, children: [
198
- /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { style: {
199
- fontSize: 32,
200
- fontWeight: 700,
201
- color: "var(--fc-text)",
202
- margin: "0 0 16px"
203
- }, children: "Ready to build?" }),
204
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: {
205
- fontSize: 18,
206
- color: "var(--fc-textMuted)",
207
- margin: "0 0 32px"
208
- }, children: "Start designing in your browser. No install required." }),
209
- /* @__PURE__ */ jsxRuntimeExports.jsx(
210
- Link,
211
- {
212
- to: "/app",
213
- style: {
214
- padding: "16px 40px",
215
- fontSize: 18,
216
- fontWeight: 600,
217
- background: "var(--fc-accent)",
218
- color: "var(--fc-accentText)",
219
- borderRadius: 8,
220
- textDecoration: "none",
221
- border: "none",
222
- cursor: "pointer",
223
- display: "inline-block"
224
- },
225
- children: "Open ForgeCAD"
226
- }
227
- )
228
- ] });
229
- }
230
- function SiteNav() {
231
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { style: {
232
- position: "fixed",
233
- top: 0,
234
- left: 0,
235
- right: 0,
236
- height: 56,
237
- display: "flex",
238
- alignItems: "center",
239
- justifyContent: "space-between",
240
- padding: "0 24px",
241
- background: "var(--fc-bg)",
242
- borderBottom: "1px solid var(--fc-border)",
243
- zIndex: 100,
244
- backdropFilter: "blur(8px)"
245
- }, children: [
246
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Link, { to: "/", style: {
247
- display: "flex",
248
- alignItems: "center",
249
- gap: 8,
250
- textDecoration: "none",
251
- color: "var(--fc-text)"
252
- }, children: [
253
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontSize: 20 }, children: "⚒" }),
254
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontSize: 16, fontWeight: 700, color: "var(--fc-accent)" }, children: "ForgeCAD" })
255
- ] }),
256
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 24 }, children: [
257
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/docs", style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 14 }, children: "Docs" }),
258
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/blog", style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 14 }, children: "Blog" }),
259
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/examples", style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 14 }, children: "Examples" }),
260
- /* @__PURE__ */ jsxRuntimeExports.jsx(
261
- Link,
262
- {
263
- to: "/app",
264
- style: {
265
- padding: "6px 16px",
266
- fontSize: 14,
267
- fontWeight: 600,
268
- background: "var(--fc-accent)",
269
- color: "var(--fc-accentText)",
270
- borderRadius: 6,
271
- textDecoration: "none"
272
- },
273
- children: "Open App"
274
- }
275
- )
276
- ] })
277
- ] });
278
- }
279
- function Footer() {
280
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("footer", { style: {
281
- padding: "40px 24px",
282
- borderTop: "1px solid var(--fc-border)",
283
- textAlign: "center"
284
- }, children: [
285
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
286
- display: "flex",
287
- gap: 24,
288
- justifyContent: "center",
289
- marginBottom: 16,
290
- flexWrap: "wrap"
291
- }, children: [
292
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/docs", style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 13 }, children: "Documentation" }),
293
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/blog", style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 13 }, children: "Blog" }),
294
- /* @__PURE__ */ jsxRuntimeExports.jsx(
295
- "a",
296
- {
297
- href: "https://github.com/KoStard/ForgeCAD",
298
- target: "_blank",
299
- rel: "noopener noreferrer",
300
- style: { color: "var(--fc-textMuted)", textDecoration: "none", fontSize: 13 },
301
- children: "GitHub"
302
- }
303
- )
304
- ] }),
305
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { color: "var(--fc-textDim)", fontSize: 12, margin: 0 }, children: "ForgeCAD" })
306
- ] });
307
- }
308
- function LandingPage() {
309
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { minHeight: "100vh", display: "flex", flexDirection: "column", overflow: "auto" }, children: [
310
- /* @__PURE__ */ jsxRuntimeExports.jsx(SiteNav, {}),
311
- /* @__PURE__ */ jsxRuntimeExports.jsxs("main", { style: { flex: "1 0 auto", paddingTop: 56 }, children: [
312
- /* @__PURE__ */ jsxRuntimeExports.jsx(HeroSection, {}),
313
- /* @__PURE__ */ jsxRuntimeExports.jsx(FeaturesSection, {}),
314
- /* @__PURE__ */ jsxRuntimeExports.jsx(CapabilitiesSection, {}),
315
- /* @__PURE__ */ jsxRuntimeExports.jsx(CTASection, {})
316
- ] }),
317
- /* @__PURE__ */ jsxRuntimeExports.jsx(Footer, {})
318
- ] });
319
- }
320
- export {
321
- LandingPage
322
- };
@@ -1,146 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-2hfs_ub0.css","assets/EditorApp-CnC2k4cW.css"])))=>i.map(i=>d[i]);
2
- import { i as isEmbedMode, _ as __vitePreload } from "./index-1CYp3zUp.js";
3
- import { u as useParams, r as reactExports, j as jsxRuntimeExports, L as Link } from "./vendor-react-Dt7-aaJH.js";
4
- import { i as initKernel, a as initSolverWasm } from "./deserializeRunResult-BLAFoiE0.js";
5
- import { u as useForgeStore, V as Viewport } from "./Viewport-CoB46f5R.js";
6
- const EditorApp = reactExports.lazy(() => __vitePreload(() => import("./EditorApp-B-vQvgam.js"), true ? __vite__mapDeps([0,1]) : void 0).then((m) => ({ default: m.EditorApp })));
7
- function PageLoader() {
8
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100vh", color: "var(--fc-textDim)" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { textAlign: "center" }, children: [
9
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 48, marginBottom: 16, animation: "fc-pulse 2s ease-in-out infinite" }, children: "⚒" }),
10
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 13 }, children: "Loading..." })
11
- ] }) });
12
- }
13
- function PublishedModelPage() {
14
- const { shareId } = useParams();
15
- const kernelReady = useForgeStore((s) => s.kernelReady);
16
- const setKernelReady = useForgeStore((s) => s.setKernelReady);
17
- const execute = useForgeStore((s) => s.execute);
18
- const updateFileCode = useForgeStore((s) => s.updateFileCode);
19
- const setActiveFile = useForgeStore((s) => s.setActiveFile);
20
- const setPreviewMode = useForgeStore((s) => s.setPreviewMode);
21
- const [loadState, setLoadState] = reactExports.useState({ status: "loading" });
22
- reactExports.useEffect(() => {
23
- Promise.all([initKernel(), initSolverWasm()]).then(() => {
24
- setKernelReady(true);
25
- });
26
- }, []);
27
- reactExports.useEffect(() => {
28
- if (!shareId) {
29
- setLoadState({ status: "error", message: "No share ID in URL" });
30
- return;
31
- }
32
- fetch(`/api/shares/${encodeURIComponent(shareId)}`).then(async (res) => {
33
- if (!res.ok) {
34
- const data = await res.json().catch(() => ({}));
35
- throw new Error(data.error || `HTTP ${res.status}`);
36
- }
37
- return res.json();
38
- }).then((model) => {
39
- setLoadState({ status: "ready", model });
40
- }).catch((err) => {
41
- setLoadState({ status: "error", message: err.message });
42
- });
43
- }, [shareId]);
44
- reactExports.useEffect(() => {
45
- if (loadState.status !== "ready") return;
46
- const { filename, code, files, title, author } = loadState.model;
47
- if (files) {
48
- for (const [path, content] of Object.entries(files)) {
49
- if (content) updateFileCode(path, content);
50
- }
51
- }
52
- updateFileCode(filename, code);
53
- setActiveFile(filename);
54
- setPreviewMode(true, {
55
- title: title ?? filename,
56
- author: author.name
57
- });
58
- }, [loadState]);
59
- reactExports.useEffect(() => {
60
- if (kernelReady && loadState.status === "ready") {
61
- execute();
62
- }
63
- }, [kernelReady, loadState]);
64
- if (isEmbedMode()) {
65
- if (loadState.status === "error") {
66
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
67
- "div",
68
- {
69
- style: {
70
- display: "flex",
71
- alignItems: "center",
72
- justifyContent: "center",
73
- height: "100vh",
74
- color: "#e74c3c",
75
- background: "#1e1e1e",
76
- fontFamily: "system-ui"
77
- },
78
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { textAlign: "center" }, children: [
79
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 16, marginBottom: 8 }, children: "Failed to load model" }),
80
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 13, color: "#999" }, children: loadState.message })
81
- ] })
82
- }
83
- );
84
- }
85
- if (loadState.status === "loading" || !kernelReady) {
86
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
87
- "div",
88
- {
89
- style: {
90
- display: "flex",
91
- alignItems: "center",
92
- justifyContent: "center",
93
- height: "100vh",
94
- color: "var(--fc-textDim)",
95
- background: "var(--fc-bg, #1e1e1e)"
96
- },
97
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { textAlign: "center" }, children: [
98
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 18, marginBottom: 8 }, children: "ForgeCAD" }),
99
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 13 }, children: "Loading model..." })
100
- ] })
101
- }
102
- );
103
- }
104
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { position: "relative", width: "100vw", height: "100vh" }, children: [
105
- /* @__PURE__ */ jsxRuntimeExports.jsx(Viewport, {}),
106
- /* @__PURE__ */ jsxRuntimeExports.jsx(
107
- "a",
108
- {
109
- href: `${window.location.origin}/m/${shareId}`,
110
- target: "_blank",
111
- rel: "noopener noreferrer",
112
- style: {
113
- position: "absolute",
114
- bottom: 8,
115
- right: 12,
116
- padding: "3px 8px",
117
- background: "rgba(0,0,0,0.55)",
118
- color: "rgba(255,255,255,0.75)",
119
- fontSize: 11,
120
- borderRadius: 4,
121
- textDecoration: "none",
122
- fontFamily: "system-ui, sans-serif",
123
- zIndex: 10,
124
- backdropFilter: "blur(4px)"
125
- },
126
- children: "Open in ForgeCAD"
127
- }
128
- )
129
- ] });
130
- }
131
- if (loadState.status === "error") {
132
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100vh", flexDirection: "column", gap: 16 }, children: [
133
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: 48 }, children: "⚒" }),
134
- /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { style: { color: "var(--fc-text)", margin: 0 }, children: "Model not found" }),
135
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { color: "var(--fc-textMuted)", margin: 0 }, children: loadState.message }),
136
- /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/", style: { color: "var(--fc-accent)", textDecoration: "none" }, children: "Go home" })
137
- ] });
138
- }
139
- if (loadState.status === "loading") {
140
- return /* @__PURE__ */ jsxRuntimeExports.jsx(PageLoader, {});
141
- }
142
- return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(PageLoader, {}), children: /* @__PURE__ */ jsxRuntimeExports.jsx(EditorApp, {}) });
143
- }
144
- export {
145
- PublishedModelPage
146
- };
@@ -1,8 +0,0 @@
1
- const __viteBrowserExternal = {};
2
- const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
- __proto__: null,
4
- default: __viteBrowserExternal
5
- }, Symbol.toStringTag, { value: "Module" }));
6
- export {
7
- __viteBrowserExternal$1 as _
8
- };