Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Remove the AGPL orglet-ui package, React and react-dom from the site

Nguyen Xuan An8867395b5bc9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2676a4bc..df7bf642 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## Unreleased
+- Remove the AGPL-3.0 `@codepawlhq/orglet-ui` package, React and react-dom from the website (issue #176). The site now uses its own tokens and button in `src/site-tokens.css` and `src/site-controls.js`, and screenshots of the pages match before and after. The site JavaScript drops from 1,778,425 to 1,531,367 bytes. The published package was never affected.
- Clean up docs, media and scripts. Remove stale logs, six unreferenced PNG previews (about 6.1 MB) with their render sidecars, the OpenAI skill metadata and ten scripts that aimed at harness pages that no longer exist. Update the roadmap, the mesh and verification docs and the contributing guide, point the links to unshipped docs at GitHub, and add `npm run check:links`, `smoke:modeling`, `smoke:material-maps` and `benchmark:mesh-query`.
- The GitHub repository is `anxuanng/67.js`, public since 2026-11-02. Links and `repository.url` point there, which npm provenance needs to match.
- Follow 3 bounces by default in a light bake, up from 2 (part of issue #159, which stays open). Baked rooms scored worse after the sky visibility change (`lit-interior` 0.1444 to 0.1915, `brick-room` 0.1515 to 0.2048 against Cycles) because the occlusion map removed the world light that had been filling the light a 2 bounce path cuts off. With 3 bounces they score 0.1341 and 0.1412, `dark-shaft` 0.0609 and `temple-hall` 0.0560. A bake takes about 1.3 to 1.9 times as long (`temple-hall` 39 to 75 s); pass `bounces: 2` for the old light and time. Recipe presets are unchanged.
diff --git a/package-lock.json b/package-lock.json
index 6e797589..69c30188 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,6 @@
"67js-mcp": "bin/67js-mcp.mjs"
},
"devDependencies": {
- "@codepawlhq/orglet-ui": "0.2.1",
"@dimforge/rapier3d-compat": "0.21.0",
"@modelcontextprotocol/client": "2.4.0",
"@modelcontextprotocol/server": "2.4.0",
@@ -26,8 +25,6 @@
"highlight.js": "11.12.0",
"manifold-3d": "3.5.4",
"playwright": "1.64.1",
- "react": "19.3.1",
- "react-dom": "19.3.1",
"three": "0.186.1",
"three-mesh-bvh": "0.9.16",
"vite": "8.3.5",
@@ -161,22 +158,6 @@
"node": ">=16"
}
},
- "node_modules/@codepawlhq/orglet-ui": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/@codepawlhq/orglet-ui/-/orglet-ui-0.2.1.tgz",
- "integrity": "sha512-UTTv/IFohSXauvVjsDGMFoTp6M2+zGrmcPg5dWbYyRBNLrk+QHRY3Kr38Y7CT99BxyAHvw2sA5YxQkxL5AboYg==",
- "dev": true,
- "license": "AGPL-3.0-only",
- "dependencies": {
- "@radix-ui/react-dialog": "1.1.23",
- "clsx": "^2.1.1",
- "tailwind-merge": "^3.7.0"
- },
- "peerDependencies": {
- "react": ">=19",
- "react-dom": ">=19"
- }
- },
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@@ -1403,336 +1384,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/@radix-ui/primitive": {
- "version": "1.1.7",
- "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz",
- "integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@radix-ui/react-compose-refs": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz",
- "integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-context": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.2.tgz",
- "integrity": "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-dialog": {
- "version": "1.1.23",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.23.tgz",
- "integrity": "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-context": "1.2.2",
- "@radix-ui/react-dismissable-layer": "1.1.19",
- "@radix-ui/react-focus-guards": "1.1.6",
- "@radix-ui/react-focus-scope": "1.1.16",
- "@radix-ui/react-id": "1.1.4",
- "@radix-ui/react-portal": "1.1.17",
- "@radix-ui/react-presence": "1.1.10",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-slot": "1.3.3",
- "@radix-ui/react-use-controllable-state": "1.2.6",
- "@radix-ui/react-use-layout-effect": "1.1.4",
- "aria-hidden": "^1.2.4",
- "react-remove-scroll": "^2.7.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-dismissable-layer": {
- "version": "1.1.19",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz",
- "integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-callback-ref": "1.1.4",
- "@radix-ui/react-use-effect-event": "0.0.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-focus-guards": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.6.tgz",
- "integrity": "sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-focus-scope": {
- "version": "1.1.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.16.tgz",
- "integrity": "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-compose-refs": "1.1.5",
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-callback-ref": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-id": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz",
- "integrity": "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-portal": {
- "version": "1.1.17",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz",
- "integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-primitive": "2.1.10",
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-presence": {
- "version": "1.1.10",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz",
- "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-primitive": {
- "version": "2.1.10",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",
- "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-slot": "1.3.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-slot": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz",
- "integrity": "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-compose-refs": "1.1.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-use-callback-ref": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz",
- "integrity": "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-use-controllable-state": {
- "version": "1.2.6",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.6.tgz",
- "integrity": "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.7",
- "@radix-ui/react-use-effect-event": "0.0.5",
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-use-effect-event": {
- "version": "0.0.5",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.5.tgz",
- "integrity": "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-use-layout-effect": "1.1.4"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-use-layout-effect": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz",
- "integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/@rolldown/binding-android-arm-eabi": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz",
@@ -2088,19 +1739,6 @@
],
"license": "MIT"
},
- "node_modules/aria-hidden": {
- "version": "1.2.6",
- "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",
- "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/blake3-wasm": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",
@@ -2108,16 +1746,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/clsx": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
- "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/commander": {
"version": "13.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
@@ -2184,13 +1812,6 @@
"node": ">=8"
}
},
- "node_modules/detect-node-es": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
- "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/error-stack-parser-es": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz",
@@ -2385,16 +2006,6 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
- "node_modules/get-nonce": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
- "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/gl-matrix": {
"version": "3.4.4",
"resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz",
@@ -3019,101 +2630,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/react": {
- "version": "19.3.1",
- "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
- "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/react-dom": {
- "version": "19.3.1",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
- "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "scheduler": "^0.28.0"
- },
- "peerDependencies": {
- "react": "^19.3.1"
- }
- },
- "node_modules/react-remove-scroll": {
- "version": "2.7.2",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz",
- "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.7",
- "react-style-singleton": "^2.2.3",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.3",
- "use-sidecar": "^1.1.3"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/react-remove-scroll-bar": {
- "version": "2.3.8",
- "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",
- "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "react-style-singleton": "^2.2.2",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/react-style-singleton": {
- "version": "2.2.3",
- "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",
- "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "get-nonce": "^1.0.0",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
@@ -3158,13 +2674,6 @@
"@rolldown/binding-win32-x64-msvc": "1.2.16"
}
},
- "node_modules/scheduler": {
- "version": "0.28.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
- "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/semver": {
"version": "7.8.5",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
@@ -3290,17 +2799,6 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
- "node_modules/tailwind-merge": {
- "version": "3.7.0",
- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.0.tgz",
- "integrity": "sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/dcastil"
- }
- },
"node_modules/three": {
"version": "0.186.1",
"resolved": "https://registry.npmjs.org/three/-/three-0.186.1.tgz",
@@ -3340,7 +2838,8 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"dev": true,
- "license": "0BSD"
+ "license": "0BSD",
+ "optional": true
},
"node_modules/undici": {
"version": "7.30.1",
@@ -3369,51 +2868,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/use-callback-ref": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",
- "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/use-sidecar": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
- "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "detect-node-es": "^1.1.0",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "*",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/vite": {
"version": "8.3.5",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz",
diff --git a/package.json b/package.json
index 172087d1..073db73f 100644
--- a/package.json
+++ b/package.json
@@ -151,7 +151,6 @@
}
},
"devDependencies": {
- "@codepawlhq/orglet-ui": "0.2.1",
"@dimforge/rapier3d-compat": "0.21.0",
"@modelcontextprotocol/client": "2.4.0",
"@modelcontextprotocol/server": "2.4.0",
@@ -162,8 +161,6 @@
"highlight.js": "11.12.0",
"manifold-3d": "3.5.4",
"playwright": "1.64.1",
- "react": "19.3.1",
- "react-dom": "19.3.1",
"three": "0.186.1",
"three-mesh-bvh": "0.9.16",
"vite": "8.3.5",
diff --git a/src/brand.js b/src/brand.js
index b1d41b4c..caae8cd2 100644
--- a/src/brand.js
+++ b/src/brand.js
@@ -1,8 +1,6 @@
-import '@codepawlhq/orglet-ui/tokens.css';
+import './site-tokens.css';
import './brand.css';
-document.documentElement.dataset.theme = 'system';
-
for (const brand of document.querySelectorAll('a.brand')) {
const mark = document.createElement('img');
mark.src = '/logo.svg';
diff --git a/src/site-controls.js b/src/site-controls.js
index 2e25413c..ae661c8e 100644
--- a/src/site-controls.js
+++ b/src/site-controls.js
@@ -1,29 +1,66 @@
-import { createElement } from 'react';
-import { createRoot } from 'react-dom/client';
-import { flushSync } from 'react-dom';
-import { Button, CopyIcon, CheckIcon } from '@codepawlhq/orglet-ui';
-
-// React owns the controls; the surrounding website remains plain HTML.
-export function mountButton(element, options = {}) {
- const attributes = {};
- for (const { name, value } of element.attributes) {
- if (name === 'id' || name.startsWith('data-') || name.startsWith('aria-')) attributes[name] = value;
+const svgNamespace = 'http://www.w3.org/2000/svg';
+
+function createStrokeIcon(shapes) {
+ const svg = document.createElementNS(svgNamespace, 'svg');
+ svg.setAttribute('viewBox', '0 0 20 20');
+ svg.setAttribute('width', '16');
+ svg.setAttribute('height', '16');
+ svg.setAttribute('fill', 'none');
+ svg.setAttribute('stroke', 'currentColor');
+ svg.setAttribute('stroke-width', '1.6');
+ svg.setAttribute('stroke-linecap', 'round');
+ svg.setAttribute('stroke-linejoin', 'round');
+ svg.setAttribute('aria-hidden', 'true');
+ svg.setAttribute('focusable', 'false');
+ for (const [tag, attributes] of shapes) {
+ const shape = document.createElementNS(svgNamespace, tag);
+ for (const [name, value] of Object.entries(attributes)) shape.setAttribute(name, value);
+ svg.append(shape);
}
- const slot = document.createElement('span');
- slot.className = 'oui-control';
- element.replaceWith(slot);
- const root = createRoot(slot);
- let properties = { ...attributes, className:`oui-action ${element.className}`, disabled:element.disabled, label:element.textContent.trim(), ...options };
+ return svg;
+}
+
+const iconShapes = {
+ copy: () => createStrokeIcon([
+ ['rect', { x: 6.5, y: 6.5, width: 10, height: 10, rx: 2 }],
+ ['path', { d: 'M13.5 6.5v-1.5a1.5 1.5 0 0 0-1.5-1.5h-6.5a1.5 1.5 0 0 0-1.5 1.5v6.5a1.5 1.5 0 0 0 1.5 1.5h1.5' }],
+ ]),
+ check: () => createStrokeIcon([
+ ['path', { d: 'M4.5 10.5l3.5 3.5 7.5-8' }],
+ ]),
+};
+
+// Turns an existing <button> in the page into a site button and returns an `update` function
+// for its label, icon and attributes. The surrounding website stays plain HTML.
+export function mountButton(button, options = {}) {
+ button.classList.add('site-button');
+ button.type = 'button';
+ let state = { label: button.textContent.trim(), ...options };
+
+ function applyAttribute(name, value) {
+ if (name === 'hidden' || name === 'disabled') button[name] = Boolean(value);
+ else button.setAttribute(name, String(value));
+ }
+
function update(changes = {}) {
- properties = { ...properties, ...changes };
- const { label, icon, ...props } = properties;
- const glyph = icon === 'copy' ? createElement(CopyIcon) : icon === 'check' ? createElement(CheckIcon) : icon;
- flushSync(() => root.render(createElement(Button, { type:'button', ...props }, glyph, createElement('span', null, label))));
+ state = { ...state, ...changes };
+ const { label, icon, onClick, ...attributes } = state;
+ for (const [name, value] of Object.entries(attributes)) applyAttribute(name, value);
+
+ const glyph = typeof icon === 'string' ? iconShapes[icon]?.() : icon;
+ const text = document.createElement('span');
+ text.textContent = label;
+ button.replaceChildren(...(glyph ? [glyph, text] : [text]));
}
+
+ button.addEventListener('click', event => state.onClick?.(event));
update();
return { update };
}
export function packageLogo(name) {
- return createElement('span', { className:`package-logo package-logo-${name}`, 'aria-hidden':true });
+ const logo = document.createElement('span');
+ logo.className = `package-logo package-logo-${name}`;
+ logo.setAttribute('aria-hidden', 'true');
+ return logo;
}
diff --git a/src/site-theme.css b/src/site-theme.css
index 651d0290..aca2deb3 100644
--- a/src/site-theme.css
+++ b/src/site-theme.css
@@ -1,14 +1,14 @@
/* OUI controls stay plain; a small pixel accent belongs to the page background. */
body:has(.navigation) {
- --window:var(--org-bg);
- --bg:var(--org-sidebar);
- --surface:var(--org-surface);
- --text:var(--org-text);
- --muted:var(--org-muted);
- --border:var(--org-border);
- --focus:var(--org-focus);
- --org-radius:14px;
- --org-control-height:44px;
+ --window:var(--site-bg);
+ --bg:var(--site-sidebar);
+ --surface:var(--site-surface);
+ --text:var(--site-text);
+ --muted:var(--site-muted);
+ --border:var(--site-border);
+ --focus:var(--site-focus);
+ --site-radius:14px;
+ --site-control-height:44px;
--dither:none;
--ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='white' fill-opacity='.12' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
isolation:isolate;
@@ -17,7 +17,7 @@ body:has(.navigation) {
}
@media (prefers-color-scheme:light) {
body:has(.navigation) {
- --org-muted:#595959;
+ --site-muted:#595959;
--ambient-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='black' fill-opacity='.09' d='M0 0h2v2H0zM4 4h1v1H4z'/%3E%3C/svg%3E");
}
}
@@ -49,26 +49,23 @@ body:has(.navigation)::before {
from { opacity:0; transform:translate(12px,-12px); }
to { opacity:.6; transform:translate(0,0); }
}
-.oui-control { display:contents; }
-.oui-action { gap:8px; border-radius:14px; }
-.oui-action svg { flex:none; }
-.command-row .oui-action { flex:none; }
+.command-row .site-button { flex:none; }
.navigation nav a, .hero-actions a, .package-links a, .footer-links a,
-.oui-action, .example, .docs-topic, .doc-pagination a {
- transition:transform var(--org-motion-base) var(--org-ease-out), box-shadow var(--org-motion-base) var(--org-ease-out), background-color var(--org-motion-quick) var(--org-ease-out);
+.site-button, .example, .docs-topic, .doc-pagination a {
+ transition:transform var(--site-motion-base) var(--site-ease-out), box-shadow var(--site-motion-base) var(--site-ease-out), background-color var(--site-motion-quick) var(--site-ease-out);
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
-.navigation nav a:hover, .hero-actions a:hover, .oui-action:hover {
+.navigation nav a:hover, .hero-actions a:hover, .site-button:hover {
transform:translateY(-2px);
box-shadow:0 6px 20px color-mix(in srgb,var(--focus) 14%,transparent);
}
-.navigation nav a:active, .hero-actions a:active, .oui-action:active {
+.navigation nav a:active, .hero-actions a:active, .site-button:active {
transform:translateY(0) scale(.97);
}
.example:hover { transform:translateY(-4px); }
-.example img { transition:box-shadow var(--org-motion-base) var(--org-ease-out); }
+.example img { transition:box-shadow var(--site-motion-base) var(--site-ease-out); }
.example:hover img { box-shadow:0 10px 34px color-mix(in srgb,var(--focus) 18%,transparent); }
}
@media (prefers-reduced-motion:reduce) {
- .navigation nav a, .hero-actions a, .oui-action, .example { transform:none !important; }
+ .navigation nav a, .hero-actions a, .site-button, .example { transform:none !important; }
}
diff --git a/src/site-tokens.css b/src/site-tokens.css
new file mode 100644
index 00000000..071dd4b6
--- /dev/null
+++ b/src/site-tokens.css
@@ -0,0 +1,67 @@
+/* Design tokens and the shared button for the website. Light is the default; dark follows the system. */
+:root {
+ --site-bg: #ffffff;
+ --site-surface: #f1f1f1;
+ --site-sidebar: #f7f7f8;
+ --site-text: #1f1f1f;
+ --site-muted: #666666;
+ --site-border: #e5e5e5;
+ --site-row-hover: #f1f1f2;
+ --site-row-active: #e8e8ea;
+ --site-focus: #576b99;
+ --site-radius: 9px;
+ --site-control-height: 34px;
+ --site-motion-quick: 110ms;
+ --site-motion-base: 170ms;
+ --site-ease-out: cubic-bezier(0.2, 0, 0, 1);
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ color-scheme: dark;
+ --site-bg: #212121;
+ --site-surface: #2f2f2f;
+ --site-sidebar: #171717;
+ --site-text: #ececec;
+ --site-muted: #b4b4b4;
+ --site-border: #404040;
+ --site-row-hover: #252525;
+ --site-row-active: #323232;
+ --site-focus: #a6c1ff;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ :root {
+ --site-motion-quick: 0ms;
+ --site-motion-base: 0ms;
+ }
+}
+
+.site-button {
+ box-sizing: border-box;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ min-height: var(--site-control-height);
+ padding: 6px 11px;
+ border: 1px solid transparent;
+ border-radius: 14px;
+ background: transparent;
+ font-size: 13px;
+ font-weight: 500;
+ white-space: normal;
+ transition: background-color var(--site-motion-quick) var(--site-ease-out), color var(--site-motion-quick) var(--site-ease-out), box-shadow var(--site-motion-quick) var(--site-ease-out);
+}
+.site-button svg { flex: none; }
+.site-button:hover:not(:disabled) { background: var(--site-surface); }
+.site-button:active:not(:disabled) { background: var(--site-row-active); }
+.site-button:focus-visible {
+ outline: 2px solid transparent;
+ box-shadow: 0 0 0 1px var(--site-focus), 0 0 0 4px color-mix(in srgb, var(--site-focus) 22%, transparent);
+}
+.site-button:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}