Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Release 67js package and website with full component explosion

Nguyen Xuan Anb7f87e6cc8d2
diff --git a/.gitignore b/.gitignore
index 611aa77e..c2f6b658 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,10 @@
node_modules/
dist/
+build/
+.wrangler/
+public/releases/
+public/release.json
+public/changelog.md
artifacts/
.env
.env.*
@@ -8,3 +13,4 @@ artifacts/
*.key
*.log
.agents/
+build-browser/
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..41dbff31
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,15 @@
+# Changelog
+
+## 0.2.0
+
+- Distribute the renderer as an installable ESM package with separate scene addons.
+- Add a homepage with release metadata, installation instructions, downloads and previews.
+- Separate small WALL·E components during explosion while preserving the assembled model.
+- Synchronize the package, browser module and website version during each build.
+- Host the site at `67js.codepawl.com` through Workers Static Assets.
+
+## 0.1.0
+
+- Add the object studio, interactive nature world and original 32-second film.
+- Add anti-aliasing, instanced geometry and GLB export.
+- Add bounded image and video exports for hardware WebGL and software rendering.
diff --git a/LICENSE b/LICENSE
index 744e59a6..2543a169 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2026 67.js contributors
+Copyright (c) 2026 CodePawl
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+
+This license covers the authored source code. WALL-E character rights belong
+to Disney/Pixar. No ownership of that character is claimed.
diff --git a/README.md b/README.md
index 1993a356..d7a9b4b0 100644
--- a/README.md
+++ b/README.md
@@ -7,13 +7,21 @@ The viewers run without Three.js. The optional benchmark loads Three.js separate
The WALL·E study contains 574 parts, 860,380 triangles and seven shared geometries.
The studio submits eight geometry draws, including the floor.
-Its slider separates 20 assemblies to expose batteries, circuit boards, motors, gears and optical mechanisms.
+Its slider separates all 574 components, including individual fasteners, tread shoes, gears and electronics, to expose batteries, circuit boards, motors, gears and optical mechanisms.
The layer controls show the shell, the interior or both. GLB export preserves the selected layers, finish and explosion amount.
The renderer uses sampled fillets, GGX lighting, shadows, explicit MSAA, FXAA, specular filtering and ACES tone mapping.
It reuses geometry buffers during explosion and refreshes shadows without allocating another shadow texture.
The studio renders on demand. Continuous animation pauses in hidden tabs.
+## Install
+
+```sh
+npm install 67js
+```
+
+The package name is `67js`. The project brand is 67.js. The library is ESM and bundles its runtime dependencies. Core exports include `Renderer67`, `box`, `cylinder`, `sphere`, `torus`, `assemblyOffset`, `exportGlb`, render budget helpers and `VERSION`. Scene constructors are separate addons. Browser module downloads and the guide are available at https://67js.codepawl.com.
+
## Run
1. Install Node.js 22.12 or newer.
@@ -23,7 +31,8 @@ The studio renders on demand. Continuous animation pauses in hidden tabs.
| Page | Experience |
| --- | --- |
-| `/` | WALL·E studio with orbit, zoom, explosion, layers, finishes and GLB export. |
+| `/` | Installation, downloads, release metadata and examples. |
+| `/object.html` | WALL·E studio with orbit, zoom, explosion, layers, finishes and GLB export. |
| `/nature.html` | Silverwater valley with viewpoints, daylight, wind, detail settings and water ripples. |
| `/film.html` | CRITICAL, a 32-second procedural film with playback and timeline controls. |
@@ -72,7 +81,7 @@ The repository includes two reusable Codex skills.
## Checks and performance
1. Run `npm test` to validate geometry, scene budgets, the timeline and independent GLB loading.
-2. Run `npm run build` to create all three production pages in `dist/`.
+2. Run `npm run build` to create the homepage, guide and three production viewers in `dist/`.
3. Run `npm run smoke` to exercise the studio in headless Chrome.
The smoke saves rendered screenshots, a GLB and benchmark results under the ignored `artifacts/` directory.
@@ -89,8 +98,8 @@ Detailed measured results and limits are in [verification.md](docs/verification.
`Renderer67` groups geometry identities into instanced batches.
```js
-import { Renderer67 } from './src/renderer.js';
-import { createModel } from './src/model.js';
+import { Renderer67 } from '67js';
+import { createModel } from '67js/addons/model';
const renderer = new Renderer67(canvas, createModel(), {
samples: 4,
@@ -113,3 +122,16 @@ It includes no film footage, dialogue or soundtrack samples.
- [Three.js](https://threejs.org/) and its [source](https://github.com/mrdoob/three.js/) provide the benchmark reference.
- [Blender](https://projects.blender.org/blender/blender) provides the visual quality target.
- [gl-matrix](https://github.com/toji/gl-matrix) supplies matrix operations.
+
+## Release synchronization
+
+`package.json` is the version source. Release preparation builds the npm archive and a standalone browser module.
+It generates `/release.json` with the version, Git commit, package integrity and verified npm publication status.
+The homepage and guide read this endpoint for their commands and downloads.
+
+1. Update the package version and changelog.
+2. Run `npm test` and `npm run build`.
+3. Run `npm run smoke:package`. It verifies a clean consumer installation.
+4. Commit and push the release.
+5. Run `npm publish --access public`. It publishes the library.
+6. Run `npm run deploy`. It verifies the pushed commit, rebuilds and checks the live release.
diff --git a/docs/release-verification.md b/docs/release-verification.md
new file mode 100644
index 00000000..ee635154
--- /dev/null
+++ b/docs/release-verification.md
@@ -0,0 +1,30 @@
+# Release verification
+
+The 0.2.0 release uses the package name `67js`. The display name remains 67.js.
+
+| Check | Measured result |
+| --- | --- |
+| Node tests | 24 tests passed, including all 574 detail offsets and unchanged assembled geometry. |
+| Consumer installation | A clean temporary project installed the archive and imported the core and all three addons. |
+| Package size | The archive contains code and documentation. It is below 100 KB and excludes preview media. |
+| Browser download | A standalone module imported from a Blob URL and rendered a cube without graphics errors. |
+| Slider | Assembly round trip, allocation reuse, layers and exploded GLB translations passed. |
+| Homepage and guide | Rendered at 1440, 390 and 320 pixels without page overflow. |
+| Deep link | The exploded preview opens the studio with the slider at 100%. |
+| GPU preview | The 1440 × 900 export used four MSAA samples and reported no WebGL errors. |
+| Cloudflare configuration | Wrangler's deployment dry run passed. |
+
+The review covered the homepage, guide and object viewer against commit `32aa19c`.
+It excluded generated bundles, lockfiles and binary images from source review.
+Layout and accessibility checks covered native controls, focus styles, labels, release states and narrow views.
+Screen-reader operation, RTL and browser zoom were not verified.
+There were no remaining actionable interface findings within the inspected coverage.
+
+The Codex API reviewer found that the browser download omitted shared chunks.
+A separate, single-entry browser bundle fixed that issue. The downloaded-module check passed after the fix.
+The Claude reviewer hit its weekly limit on both attempts.
+This review therefore used one model family and provides weaker coverage than a completed cross review.
+
+Release metadata is generated from the package version and Git commit.
+Deployment requires a clean checkout and the same commit on `origin/main`.
+The deployment script checks the live version, commit and package integrity after upload.
diff --git a/film.html b/film.html
index 48c856b2..1b4fd89a 100644
--- a/film.html
+++ b/film.html
@@ -20,7 +20,7 @@
<span class="film-name">CRITICAL</span>
<nav aria-label="Explore 67.js">
<a href="./nature.html">Nature</a>
- <a href="./">Object</a>
+ <a href="./object.html">Object</a>
</nav>
</header>
<section class="transport player-interface" aria-label="Film playback">
diff --git a/getting-started.html b/getting-started.html
index 4eac063a..d43c5119 100644
--- a/getting-started.html
+++ b/getting-started.html
@@ -17,7 +17,7 @@
<a href="./index.html#examples">Examples</a>
<a href="./getting-started.html" aria-current="page">Getting started</a>
<a href="./index.html#downloads">Downloads</a>
- <a href="https://github.com/anxuanng/67.js" target="_blank" rel="noopener noreferrer">Source on GitHub <span aria-hidden="true">↗</span></a>
+ <a data-release-tarball aria-disabled="true">Package source <span aria-hidden="true">↓</span></a>
</nav>
<p class="navigation-note">Built with WebGL2<br />Scenes made from geometry</p>
</aside>
@@ -95,7 +95,7 @@ renderer.resize(); // Update targets after the canvas size changes.
renderer.dispose(); // Release GPU resources when the scene closes.</code></pre>
<p>Set <code>samples</code> and <code>memoryBudgetMiB</code> before creating the renderer. The target planner can reduce render dimensions to fit its estimate.</p>
<p>The core exports <code>box</code>, <code>cylinder</code>, <code>sphere</code> and <code>torus</code>. Scene modules use separate addon imports.</p>
- <div class="release-links"><a data-release-api aria-disabled="true">API for this release ↗</a><a data-release-commit aria-disabled="true">Release commit</a></div>
+ <div class="release-links"><a data-release-api aria-disabled="true">API for this release ↗</a><span data-release-commit>Release commit</span></div>
</section>
</main>
<script type="module" src="/src/home.js"></script>
diff --git a/index.html b/index.html
index 1db076de..cd84b1cf 100644
--- a/index.html
+++ b/index.html
@@ -17,7 +17,7 @@
<a href="#examples" aria-current="page">Examples</a>
<a href="./getting-started.html">Getting started</a>
<a href="#downloads">Downloads</a>
- <a href="https://github.com/anxuanng/67.js" target="_blank" rel="noopener noreferrer">Source on GitHub <span aria-hidden="true">↗</span></a>
+ <a data-release-tarball aria-disabled="true">Package source <span aria-hidden="true">↓</span></a>
</nav>
<p class="navigation-note">Built with WebGL2<br />Scenes made from geometry</p>
</aside>
@@ -44,7 +44,7 @@
<div class="section-heading"><h2 id="downloads-title">Downloads</h2><span data-release-version>Loading release</span></div>
<p>Use the package archive with npm, or import the bundled module directly in your browser</p>
<div class="download-links"><a class="download" data-release-tarball aria-disabled="true"><strong>Package archive</strong><span>Install with npm <span aria-hidden="true">↓</span></span></a><a class="download" data-release-module aria-disabled="true"><strong>Browser module</strong><span>Bundled ES module <span aria-hidden="true">↓</span></span></a></div>
- <div class="release-links"><a href="./changelog.md">Changelog</a><a data-release-commit aria-disabled="true">Release commit</a><a data-release-api aria-disabled="true">API reference ↗</a></div>
+ <div class="release-links"><a href="./changelog.md">Changelog</a><span data-release-commit>Release commit</span><a data-release-api aria-disabled="true">API reference ↗</a></div>
</section>
</main>
<script type="module" src="/src/home.js"></script>
diff --git a/nature.html b/nature.html
index c8e8a239..f8ed33bd 100644
--- a/nature.html
+++ b/nature.html
@@ -14,7 +14,7 @@
<header class="world-header">
<a class="brand" href="./index.html" aria-label="67.js home">67<span>.js</span></a>
<nav aria-label="Scenes">
- <a href="./index.html">Object</a>
+ <a href="./object.html">Object</a>
<a href="./nature.html" aria-current="page">Nature</a>
<a href="./film.html">Film</a>
</nav>
diff --git a/object.html b/object.html
new file mode 100644
index 00000000..04473e11
--- /dev/null
+++ b/object.html
@@ -0,0 +1,68 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="theme-color" content="#25292d" />
+ <meta name="description" content="Explore WALL·E inside and out. An explodable procedural 3D study rendered with 67.js." />
+ <title>67.js · Object studio</title>
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='15' fill='%2325292d'/%3E%3Ctext x='7' y='45' font-family='sans-serif' font-weight='bold' font-size='38' fill='%23b7eddf'%3E67%3C/text%3E%3C/svg%3E" />
+ </head>
+ <body>
+ <main>
+ <canvas id="viewport" tabindex="0" aria-label="3D model. Drag or use arrow keys to orbit. Scroll or use plus and minus to zoom."></canvas>
+ <header class="toolbar">
+ <a class="brand" href="./" aria-label="67.js home">67<span>.js</span></a>
+ <nav class="studio-nav" aria-label="Scenes"><a href="./object.html" aria-current="page">Object</a><a href="./nature.html">Nature</a><a href="./film.html">Film</a></nav>
+ <div class="toolbar-actions">
+ <button id="reset" title="Reset camera (R)">Reset view</button>
+ <button id="export" class="primary">Export GLB <span aria-hidden="true">↗</span></button>
+ </div>
+ </header>
+ <section class="object-info" aria-labelledby="object-title">
+ <h1 id="object-title">WALL·E, <br />inside out.</h1>
+ <p id="model-description">Pull apart the shell. Explore the machinery. <br />Slide back to bring him together.</p>
+ <div class="object-caption"><span class="status-dot" aria-hidden="true">●</span> <span id="model-name">WALL·E study</span><span class="caption-separator">/</span><span>Procedural geometry</span></div>
+ </section>
+ <aside class="controls" aria-label="Model appearance">
+ <div class="assembly-control">
+ <label for="assembly">Explode model <output id="assembly-value">0%</output></label>
+ <input id="assembly" type="range" min="0" max="100" step="1" value="0" aria-valuetext="Assembled" />
+ <div class="assembly-endpoints"><span>Assembled</span><span>Exploded</span></div>
+ <div class="layer-actions" role="group" aria-label="Model layers"><button data-layer="all" aria-pressed="true">All</button><button data-layer="exterior" aria-pressed="false">Shell</button><button data-layer="interior" aria-pressed="false">Inside</button></div>
+ </div>
+ <fieldset>
+ <legend>Finish</legend>
+ <div class="finishes">
+ <button class="swatch selected" data-finish="yellow" aria-label="Yellow finish" aria-pressed="true" style="--swatch:#d8a33c"></button>
+ <button class="swatch" data-finish="ceramic" aria-label="Ceramic finish" aria-pressed="false" style="--swatch:#d7e0de"></button>
+ <button class="swatch" data-finish="graphite" aria-label="Graphite finish" aria-pressed="false" style="--swatch:#59666e"></button>
+ </div>
+ <span id="finish-name">Factory yellow</span>
+ </fieldset>
+ <label class="exposure-label" for="exposure">Exposure <output id="exposure-value">1.0</output></label>
+ <input id="exposure" type="range" min="0.5" max="1.8" step="0.1" value="1" />
+ <div class="view-actions">
+ <button id="rotate" aria-pressed="false">↻ Auto orbit</button>
+ <button id="inspect" aria-pressed="false">Surface normals</button>
+ </div>
+ <label class="quality-label" for="quality">Resolution
+ <select id="quality"><option value="1">Performance</option><option value="1.5" selected>Balanced</option><option value="2">High</option></select>
+ </label>
+ </aside>
+ <footer>
+ <p class="hint">Drag to orbit <span>·</span> Scroll to zoom</p>
+ <div class="metrics" aria-label="Renderer statistics"><span id="parts">Loading geometry…</span><span id="calls"></span><span id="cpu"></span></div>
+ <button id="benchmark">Measure performance ↗</button>
+ </footer>
+ <section id="benchmark-result" class="benchmark-result" hidden aria-label="Performance results">
+ <h2>CPU draw submission</h2>
+ <p id="benchmark-summary" role="status"></p>
+ <p class="benchmark-note">Same geometry, camera, resolution and flat shader. Median of 120 samples, 8 submissions per sample. GPU time and visual quality are separate measurements.</p>
+ <button id="dismiss-benchmark">Back to model</button>
+ </section>
+ <p id="notice" class="notice" role="status" hidden></p>
+ </main>
+ <script type="module" src="/src/main.js"></script>
+ </body>
+</html>
diff --git a/package-lock.json b/package-lock.json
index 61732370..96f58332 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,19 +1,1199 @@
{
- "name": "67.js",
- "version": "0.1.0",
+ "name": "67js",
+ "version": "0.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "67.js",
- "version": "0.1.0",
+ "name": "67js",
+ "version": "0.2.0",
+ "license": "MIT",
+ "devDependencies": {
+ "gl-matrix": "3.4.4",
+ "playwright": "1.64.0",
+ "three": "0.186.1",
+ "vite": "8.3.4",
+ "wrangler": "4.149.0"
+ }
+ },
+ "node_modules/@cloudflare/kv-asset-handler": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",
+ "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "engines": {
+ "node": ">=22.0.0"
+ }
+ },
+ "node_modules/@cloudflare/unenv-preset": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz",
+ "integrity": "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==",
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "peerDependencies": {
+ "unenv": "2.0.0-rc.24",
+ "workerd": ">1.20260305.0 <2.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "workerd": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@cloudflare/workerd-darwin-64": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261006.1.tgz",
+ "integrity": "sha512-lCX6avJO2It9AyDEYitjmOtJRVp/xmaW0TziyoLAnfxlzozyyRbSFfIIMMCiDx/sTP1++E4VLbV+7BHSD33f0Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-darwin-arm64": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261006.1.tgz",
+ "integrity": "sha512-PyFGjOaldtppnLuKsdkoYWXfLVpDjuf8u+uoykX+1Xvxo2EPmCVViq0iDKm+U7c7PRno85ehS3/MPVXyk2HwHw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-linux-64": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261006.1.tgz",
+ "integrity": "sha512-Ntf9S8eesmVufdjaT2kzWlz6Ng9XGYTc6cHQVRKAg59lFufwsIabGeMT6U4KkrpEeSIxgHq8aPtuLbZXE19tCA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-linux-arm64": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261006.1.tgz",
+ "integrity": "sha512-JyeDBymVWw5tVRebSsVE8ojDYxd6UlZrAseHU8G+NpIyd5wF61tXlF/axLeCUqu0pOhBFHb8I5QKi0jwrCK41Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-windows-64": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261006.1.tgz",
+ "integrity": "sha512-nWP0URNqOBN9fa/gZ7eh/w051DwjOXN8j4lDZDYVXyQPsux6sV3DfyYZT+CjR/rt9nKBSmJT9QE9/bWT18+84w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "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",
+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "0.3.9"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/sharp-darwin-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-darwin-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-freebsd-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-s390x": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-ppc64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-ppc64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-s390x": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-s390x": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
+ "dev": true,
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
+ "optional": true,
"dependencies": {
- "gl-matrix": "3.4.4"
+ "@emnapi/runtime": "^1.11.3"
},
- "devDependencies": {
- "playwright": "1.64.0",
- "three": "0.186.1",
- "vite": "8.3.4"
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-webcontainers-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-ia32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.9",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"node_modules/@oxc-project/types": {
@@ -26,6 +1206,35 @@
"url": "https://github.com/sponsors/oxc-project"
}
},
+ "node_modules/@poppinss/colors": {
+ "version": "4.1.6",
+ "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz",
+ "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^4.1.5"
+ }
+ },
+ "node_modules/@poppinss/dumper": {
+ "version": "0.6.5",
+ "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz",
+ "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@poppinss/colors": "^4.1.5",
+ "@sindresorhus/is": "^7.0.2",
+ "supports-color": "^10.0.0"
+ }
+ },
+ "node_modules/@poppinss/exception": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz",
+ "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@rolldown/binding-android-arm-eabi": {
"version": "1.2.13",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.13.tgz",
@@ -306,6 +1515,47 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@sindresorhus/is": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz",
+ "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/is?sponsor=1"
+ }
+ },
+ "node_modules/@speed-highlight/core": {
+ "version": "1.2.24",
+ "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.24.tgz",
+ "integrity": "sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/blake3-wasm": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",
+ "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/detect-libc": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
@@ -316,6 +1566,58 @@
"node": ">=8"
}
},
+ "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",
+ "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.2",
+ "@esbuild/android-arm": "0.28.2",
+ "@esbuild/android-arm64": "0.28.2",
+ "@esbuild/android-x64": "0.28.2",
+ "@esbuild/darwin-arm64": "0.28.2",
+ "@esbuild/darwin-x64": "0.28.2",
+ "@esbuild/freebsd-arm64": "0.28.2",
+ "@esbuild/freebsd-x64": "0.28.2",
+ "@esbuild/linux-arm": "0.28.2",
+ "@esbuild/linux-arm64": "0.28.2",
+ "@esbuild/linux-ia32": "0.28.2",
+ "@esbuild/linux-loong64": "0.28.2",
+ "@esbuild/linux-mips64el": "0.28.2",
+ "@esbuild/linux-ppc64": "0.28.2",
+ "@esbuild/linux-riscv64": "0.28.2",
+ "@esbuild/linux-s390x": "0.28.2",
+ "@esbuild/linux-x64": "0.28.2",
+ "@esbuild/netbsd-arm64": "0.28.2",
+ "@esbuild/netbsd-x64": "0.28.2",
+ "@esbuild/openbsd-arm64": "0.28.2",
+ "@esbuild/openbsd-x64": "0.28.2",
+ "@esbuild/openharmony-arm64": "0.28.2",
+ "@esbuild/sunos-x64": "0.28.2",
+ "@esbuild/win32-arm64": "0.28.2",
+ "@esbuild/win32-ia32": "0.28.2",
+ "@esbuild/win32-x64": "0.28.2"
+ }
+ },
"node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
@@ -353,8 +1655,19 @@
"version": "3.4.4",
"resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz",
"integrity": "sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==",
+ "dev": true,
"license": "MIT"
},
+ "node_modules/kleur": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/lightningcss": {
"version": "1.33.0",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
@@ -628,6 +1941,24 @@
"url": "https://opencollective.com/parcel"
}
},
+ "node_modules/miniflare": {
+ "version": "5.20261006.1-alpha",
+ "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261006.1-alpha.tgz",
+ "integrity": "sha512-6ylv8tamkrspDI2R/cAYfv+YWmfGNdXe76Pi9TauEUWsFVXn3LNF9Yk8oduzf1a+TYsSRYTqlOE7+nGGRsMHdw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cspotcode/source-map-support": "0.8.1",
+ "sharp": "0.35.5",
+ "undici": "7.29.1",
+ "workerd": "1.20261006.1",
+ "ws": "8.21.0",
+ "youch": "4.1.0-beta.10"
+ },
+ "engines": {
+ "node": ">=22.0.0"
+ }
+ },
"node_modules/nanoid": {
"version": "3.3.20",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
@@ -647,6 +1978,20 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
+ "node_modules/path-to-regexp": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
+ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -759,6 +2104,69 @@
"@rolldown/binding-win32-x64-msvc": "1.2.13"
}
},
+ "node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sharp": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@img/colour": "^1.1.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.8.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-darwin-arm64": "0.35.5",
+ "@img/sharp-darwin-x64": "0.35.5",
+ "@img/sharp-freebsd-wasm32": "0.35.5",
+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
+ "@img/sharp-libvips-darwin-x64": "1.3.4",
+ "@img/sharp-libvips-linux-arm": "1.3.4",
+ "@img/sharp-libvips-linux-arm64": "1.3.4",
+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
+ "@img/sharp-libvips-linux-s390x": "1.3.4",
+ "@img/sharp-libvips-linux-x64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
+ "@img/sharp-linux-arm": "0.35.5",
+ "@img/sharp-linux-arm64": "0.35.5",
+ "@img/sharp-linux-ppc64": "0.35.5",
+ "@img/sharp-linux-riscv64": "0.35.5",
+ "@img/sharp-linux-s390x": "0.35.5",
+ "@img/sharp-linux-x64": "0.35.5",
+ "@img/sharp-linuxmusl-arm64": "0.35.5",
+ "@img/sharp-linuxmusl-x64": "0.35.5",
+ "@img/sharp-webcontainers-wasm32": "0.35.5",
+ "@img/sharp-win32-arm64": "0.35.5",
+ "@img/sharp-win32-ia32": "0.35.5",
+ "@img/sharp-win32-x64": "0.35.5"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
"node_modules/source-map-js": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
@@ -769,6 +2177,19 @@
"node": ">=0.10.0"
}
},
+ "node_modules/supports-color": {
+ "version": "10.2.2",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",
+ "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
"node_modules/three": {
"version": "0.186.1",
"resolved": "https://registry.npmjs.org/three/-/three-0.186.1.tgz",
@@ -793,6 +2214,34 @@
"url": "https://github.com/sponsors/SuperchupuDev"
}
},
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "dev": true,
+ "license": "0BSD",
+ "optional": true
+ },
+ "node_modules/undici": {
+ "version": "7.29.1",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz",
+ "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/unenv": {
+ "version": "2.0.0-rc.24",
+ "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz",
+ "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pathe": "^2.0.3"
+ }
+ },
"node_modules/vite": {
"version": "8.3.4",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.4.tgz",
@@ -870,6 +2319,110 @@
"optional": true
}
}
+ },
+ "node_modules/workerd": {
+ "version": "1.20261006.1",
+ "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261006.1.tgz",
+ "integrity": "sha512-8MadBuffZ5NdpLwZjUmsqT5QlaKXq4gjgT6wzcKeynZTICNXyePhc+5QVoKiK7+MMhFTLNrRO2KXLlpk8Q6BkA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "workerd": "bin/workerd"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "optionalDependencies": {
+ "@cloudflare/workerd-darwin-64": "1.20261006.1",
+ "@cloudflare/workerd-darwin-arm64": "1.20261006.1",
+ "@cloudflare/workerd-linux-64": "1.20261006.1",
+ "@cloudflare/workerd-linux-arm64": "1.20261006.1",
+ "@cloudflare/workerd-windows-64": "1.20261006.1"
+ }
+ },
+ "node_modules/wrangler": {
+ "version": "4.149.0",
+ "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.149.0.tgz",
+ "integrity": "sha512-OzK7xmB5r5iLKb3cIT3783g13fe6T7xyeKu9LEdUyl+DKAM2KP/jkjnE0OUhyw+mB/XJM9ycjgF3MWm8PR9amg==",
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "dependencies": {
+ "@cloudflare/kv-asset-handler": "0.5.0",
+ "@cloudflare/unenv-preset": "2.16.2",
+ "blake3-wasm": "2.1.5",
+ "esbuild": "0.28.2",
+ "miniflare": "5.20261006.1-alpha",
+ "path-to-regexp": "6.3.0",
+ "unenv": "2.0.0-rc.24",
+ "workerd": "1.20261006.1"
+ },
+ "bin": {
+ "cf-wrangler": "bin/cf-wrangler.js",
+ "wrangler": "bin/wrangler.js",
+ "wrangler2": "bin/wrangler.js"
+ },
+ "engines": {
+ "node": ">=22.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "2.3.3"
+ },
+ "peerDependencies": {
+ "@cloudflare/workers-types": "^5.20261006.1"
+ },
+ "peerDependenciesMeta": {
+ "@cloudflare/workers-types": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/youch": {
+ "version": "4.1.0-beta.10",
+ "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz",
+ "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@poppinss/colors": "^4.1.5",
+ "@poppinss/dumper": "^0.6.4",
+ "@speed-highlight/core": "^1.2.7",
+ "cookie": "^1.0.2",
+ "youch-core": "^0.3.3"
+ }
+ },
+ "node_modules/youch-core": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz",
+ "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@poppinss/exception": "^1.2.2",
+ "error-stack-parser-es": "^1.0.5"
+ }
}
}
}
diff --git a/package.json b/package.json
index 47583940..fbda4530 100644
--- a/package.json
+++ b/package.json
@@ -1,26 +1,51 @@
{
- "name": "67.js",
- "version": "0.1.0",
- "private": true,
+ "name": "67js",
+ "version": "0.2.0",
+ "private": false,
"type": "module",
"description": "A focused WebGL2 renderer and procedural 3D studio",
+ "license": "MIT",
+ "homepage": "https://67js.codepawl.com",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/anxuanng/67.js.git"
+ },
+ "files": [
+ "build",
+ "README.md",
+ "LICENSE",
+ "CHANGELOG.md"
+ ],
+ "main": "./build/67.module.js",
+ "module": "./build/67.module.js",
+ "exports": {
+ ".": "./build/67.module.js",
+ "./addons/model": "./build/model.js",
+ "./addons/nature": "./build/nature.js",
+ "./addons/film": "./build/film.js",
+ "./package.json": "./package.json"
+ },
"scripts": {
"dev": "vite --host 127.0.0.1",
- "build": "vite build",
+ "build": "node scripts/prepare-release.mjs && vite build",
+ "build:lib": "vite build --config vite.lib.config.js",
+ "prepare:release": "node scripts/prepare-release.mjs",
+ "prepack": "npm run build:lib",
+ "deploy": "node scripts/deploy.mjs",
"preview": "vite preview --host 127.0.0.1",
"test": "node --test",
"smoke": "node scripts/smoke.mjs",
"smoke:scenes": "node scripts/smoke-scenes.mjs",
"render": "node scripts/render-media.mjs",
"score": "node scripts/score.mjs",
- "export:model": "node scripts/export-model.mjs"
- },
- "dependencies": {
- "gl-matrix": "3.4.4"
+ "export:model": "node scripts/export-model.mjs",
+ "smoke:package": "node scripts/smoke-package.mjs"
},
"devDependencies": {
+ "gl-matrix": "3.4.4",
"playwright": "1.64.0",
"three": "0.186.1",
- "vite": "8.3.4"
+ "vite": "8.3.4",
+ "wrangler": "4.149.0"
}
}
diff --git a/public/_headers b/public/_headers
new file mode 100644
index 00000000..bc176c2d
--- /dev/null
+++ b/public/_headers
@@ -0,0 +1,14 @@
+/*
+ Cross-Origin-Opener-Policy: same-origin
+ Cross-Origin-Embedder-Policy: require-corp
+ X-Content-Type-Options: nosniff
+ Referrer-Policy: strict-origin-when-cross-origin
+
+/release.json
+ Cache-Control: no-cache
+ Access-Control-Allow-Origin: *
+
+/releases/*
+ Cache-Control: public, max-age=31536000, immutable
+ Access-Control-Allow-Origin: *
+ Cross-Origin-Resource-Policy: cross-origin
diff --git a/public/previews/film-contact.png b/public/previews/film-contact.png
new file mode 100644
index 00000000..51a2334c
Binary files /dev/null and b/public/previews/film-contact.png differ
diff --git a/public/previews/nature.png b/public/previews/nature.png
new file mode 100644
index 00000000..905741c7
Binary files /dev/null and b/public/previews/nature.png differ
diff --git a/public/previews/wall-e-exploded.png b/public/previews/wall-e-exploded.png
new file mode 100644
index 00000000..00807a2f
Binary files /dev/null and b/public/previews/wall-e-exploded.png differ
diff --git a/public/previews/wall-e.png b/public/previews/wall-e.png
new file mode 100644
index 00000000..a25831f6
Binary files /dev/null and b/public/previews/wall-e.png differ
diff --git a/scripts/deploy.mjs b/scripts/deploy.mjs
new file mode 100644
index 00000000..34bfbafb
--- /dev/null
+++ b/scripts/deploy.mjs
@@ -0,0 +1,22 @@
+import { spawnSync } from 'node:child_process';
+import { readFile } from 'node:fs/promises';
+
+function run(executable, argumentsList, capture = false) {
+ const result = spawnSync(executable, argumentsList, { windowsHide: true, encoding: 'utf8', stdio: capture ? 'pipe' : 'inherit' });
+ if (result.status !== 0) throw new Error(`Deployment step failed: ${result.error?.message ?? result.stderr ?? executable}`);
+ return result.stdout?.trim();
+}
+
+if (run('git', ['status', '--porcelain'], true)) throw new Error('Commit changes before deployment.');
+const commit = run('git', ['rev-parse', 'HEAD'], true);
+const remoteCommit = run('git', ['ls-remote', 'origin', 'refs/heads/main'], true).split(/\s/)[0];
+if (commit !== remoteCommit) throw new Error('Push this commit to origin/main before deployment.');
+run(process.execPath, ['scripts/prepare-release.mjs', '--require-clean']);
+run(process.execPath, ['node_modules/vite/bin/vite.js', 'build']);
+run(process.execPath, ['node_modules/wrangler/bin/wrangler.js', 'deploy']);
+const release = JSON.parse(await readFile('dist/release.json', 'utf8'));
+const response = await fetch('https://67js.codepawl.com/release.json', { cache: 'no-store', signal: AbortSignal.timeout(30000) });
+if (!response.ok) throw new Error(`Live release verification failed: HTTP ${response.status}.`);
+const live = await response.json();
+if (live.commit !== commit || live.version !== release.version || live.integrity !== release.integrity) throw new Error('Live release differs from the pushed build.');
+console.log(`Verified live ${live.packageName}@${live.version} at ${live.commit}.`);
diff --git a/scripts/prepare-release.mjs b/scripts/prepare-release.mjs
new file mode 100644
index 00000000..f186c4ac
--- /dev/null
+++ b/scripts/prepare-release.mjs
@@ -0,0 +1,64 @@
+import { readFile, writeFile, mkdir, copyFile, cp } from 'node:fs/promises';
+import { existsSync } from 'node:fs';
+import { spawnSync } from 'node:child_process';
+import { createHash } from 'node:crypto';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const root = fileURLToPath(new URL('..', import.meta.url));
+const metadata = JSON.parse(await readFile(resolve(root, 'package.json'), 'utf8'));
+if (!/^\d+\.\d+\.\d+(?:-[a-z0-9.-]+)?$/.test(metadata.version)) throw new Error('Release version must be valid semver.');
+if (metadata.name !== '67js') throw new Error('Unexpected package name.');
+
+function run(executable, argumentsList, capture = false) {
+ const result = spawnSync(executable, argumentsList, { cwd: root, windowsHide: true, encoding: 'utf8', stdio: capture ? 'pipe' : 'inherit' });
+ if (result.status !== 0) throw new Error(`Release command failed: ${result.error?.message ?? result.stderr ?? executable}`);
+ return result.stdout?.trim();
+}
+
+const commit = run('git', ['rev-parse', 'HEAD'], true);
+if (process.argv.includes('--require-clean') && run('git', ['status', '--porcelain'], true)) throw new Error('Commit release changes before production preparation.');
+run(process.execPath, ['node_modules/vite/bin/vite.js', 'build', '--config', 'vite.lib.config.js']);
+const releases = resolve(root, 'public/releases');
+await mkdir(releases, { recursive: true });
+const npmCli = process.env.npm_execpath ?? resolve(dirname(process.execPath), 'node_modules/npm/bin/npm-cli.js');
+if (!existsSync(npmCli)) throw new Error('npm CLI unavailable. Run preparation through npm run prepare:release.');
+const packResult = JSON.parse(run(process.execPath, [npmCli, 'pack', '--ignore-scripts', '--json', '--pack-destination', releases], true));
+const packed = Array.isArray(packResult) ? packResult[0] : packResult[metadata.name];
+if (!packed?.filename) throw new Error('npm pack did not return a package archive.');
+const tarball = `/releases/${packed.filename}`;
+const integrity = `sha512-${createHash('sha512').update(await readFile(resolve(releases, packed.filename))).digest('base64')}`;
+await cp(resolve(root, 'build'), resolve(releases, metadata.version), { recursive: true });
+run(process.execPath, ['node_modules/vite/bin/vite.js', 'build', '--config', 'vite.browser.config.js']);
+await copyFile(resolve(root, 'build-browser/67.module.js'), resolve(releases, metadata.version, '67.module.js'));
+await copyFile(resolve(root, 'CHANGELOG.md'), resolve(root, 'public/changelog.md'));
+
+let registryVersion = null;
+let registryPublished = false;
+try {
+ const response = await fetch(`https://registry.npmjs.org/${encodeURIComponent(metadata.name)}`, { signal: AbortSignal.timeout(5000) });
+ if (response.ok) {
+ const registry = await response.json();
+ registryVersion = registry['dist-tags']?.latest ?? null;
+ registryPublished = Boolean(registry.versions?.[metadata.version]);
+ }
+} catch {
+ // The downloadable package remains usable when the external registry is unavailable.
+}
+
+const release = {
+ version: metadata.version,
+ packageName: metadata.name,
+ commit,
+ installCommand: registryPublished ? `npm install ${metadata.name}@${metadata.version}` : `npm install https://67js.codepawl.com${tarball}`,
+ tarball,
+ module: `/releases/${metadata.version}/67.module.js`,
+ registryPublished,
+ registryVersion,
+ integrity,
+ packageBytes: packed.size,
+ api: './getting-started.html#api',
+ changelog: '/changelog.md',
+};
+await writeFile(resolve(root, 'public/release.json'), `${JSON.stringify(release, null, 2)}\n`);
+console.log(`Prepared ${metadata.name}@${metadata.version}: ${packed.size} bytes, commit ${commit.slice(0, 8)}, registry published ${registryPublished}.`);
diff --git a/scripts/render-media.mjs b/scripts/render-media.mjs
index a8883ef7..a469c5ba 100644
--- a/scripts/render-media.mjs
+++ b/scripts/render-media.mjs
@@ -67,7 +67,7 @@ try {
const page = await browser.newPage({ viewport: { width, height }, deviceScaleFactor: 1 });
const errors = [];
page.on('pageerror', (error) => errors.push(error.message));
- const route = scene === 'object' ? 'index.html' : `${scene}.html`;
+ const route = scene === 'object' ? 'object.html' : `${scene}.html`;
const query = new URLSearchParams({ export: '1', width: String(width), height: String(height), memory: String(memory), samples: String(backend === 'cpu' ? 1 : preset.samples) });
await page.goto(`http://127.0.0.1:5181/${route}?${query}`);
await page.waitForFunction((mode) => mode === 'film' ? window.__filmReady : mode === 'nature' ? window.__nature : window.__studio, scene, { timeout: 60000 });
diff --git a/scripts/smoke-package.mjs b/scripts/smoke-package.mjs
new file mode 100644
index 00000000..547d428d
--- /dev/null
+++ b/scripts/smoke-package.mjs
@@ -0,0 +1,38 @@
+import assert from 'node:assert/strict';
+import { mkdtemp, readFile, writeFile } from 'node:fs/promises';
+import { tmpdir } from 'node:os';
+import { resolve, dirname } from 'node:path';
+import { spawnSync } from 'node:child_process';
+import { createHash } from 'node:crypto';
+
+const metadata = JSON.parse(await readFile('package.json', 'utf8'));
+const release = JSON.parse(await readFile('public/release.json', 'utf8'));
+const archive = resolve('public', release.tarball.slice(1));
+const binary = await readFile(archive);
+assert.equal(release.version, metadata.version);
+assert.equal(release.packageName, '67js');
+assert.equal(release.integrity, `sha512-${createHash('sha512').update(binary).digest('base64')}`);
+assert.ok(binary.length < 100000, 'Library archive must not contain preview media.');
+const consumer = await mkdtemp(resolve(tmpdir(), '67js-consumer-'));
+await writeFile(resolve(consumer, 'package.json'), JSON.stringify({ private: true, type: 'module' }));
+const npmCli = process.env.npm_execpath ?? resolve(dirname(process.execPath), 'node_modules/npm/bin/npm-cli.js');
+const installed = spawnSync(process.execPath, [npmCli, 'install', archive, '--ignore-scripts', '--no-audit', '--no-fund'], { cwd: consumer, windowsHide: true, encoding: 'utf8' });
+assert.equal(installed.status, 0, installed.stderr);
+const example = `import assert from 'node:assert/strict';
+import { VERSION, Renderer67, box, assemblyOffset } from '67js';
+import { createModel } from '67js/addons/model';
+import * as nature from '67js/addons/nature';
+import * as film from '67js/addons/film';
+assert.equal(VERSION, '${metadata.version}');
+assert.equal(typeof Renderer67, 'function');
+assert.ok(box().positions.length > 0);
+const parts = createModel();
+assert.equal(parts.length, 574);
+assert.ok(parts.every(part => assemblyOffset(part, 1).some(value => value !== 0)));
+assert.ok(Object.keys(nature).length > 0);
+assert.ok(Object.keys(film).length > 0);
+console.log('Clean consumer: core, geometry, all addons and all574 explosion offsets passed.');`;
+await writeFile(resolve(consumer, 'check.mjs'), example);
+const result = spawnSync(process.execPath, ['check.mjs'], { cwd: consumer, windowsHide: true, encoding: 'utf8' });
+assert.equal(result.status, 0, result.stderr);
+console.log(result.stdout.trim());
diff --git a/scripts/smoke.mjs b/scripts/smoke.mjs
index 69315606..ec8a0e76 100644
--- a/scripts/smoke.mjs
+++ b/scripts/smoke.mjs
@@ -36,7 +36,7 @@ try {
return checksum >>> 0;
});
}
- await page.goto('http://127.0.0.1:5178');
+ await page.goto('http://127.0.0.1:5178/object.html');
await page.waitForFunction(() => window.__studio?.renderer && document.querySelector('#cpu').textContent.includes('ms CPU'));
await page.screenshot({ path: fileURLToPath(new URL('desktop.png', artifactDirectory)) });
const graphics = await page.evaluate(() => {
@@ -69,7 +69,7 @@ try {
const exportedScene = JSON.parse(exportedBinary.subarray(20, 20 + exportedBinary.readUInt32LE(12)).toString());
const expectedPanel = await page.evaluate(() => {
const part = window.__studio.parts.find((part) => Math.abs(part.assembly.offset[2]) > 1);
- return { name: part.name, translation: part.matrix[14] + part.assembly.offset[2] };
+ return { name: part.name, translation: part.matrix[14] + part.assembly.offset[2] + part.assembly.detailOffset[2] };
});
assert.ok(Math.abs(exportedScene.nodes.find((node) => node.name === expectedPanel.name).matrix[14] - expectedPanel.translation) < 0.000001);
await page.locator('#assembly').fill('0');
diff --git a/skills/build-67js-scene/references/scene-contract.md b/skills/build-67js-scene/references/scene-contract.md
index 6dbe9a18..2550bb52 100644
--- a/skills/build-67js-scene/references/scene-contract.md
+++ b/skills/build-67js-scene/references/scene-contract.md
@@ -25,12 +25,13 @@ The transform is a column-major matrix. Colors are linear RGB.
Normals are unit vectors. Triangle winding faces outward.
Each geometry identity becomes one instanced batch.
-Explodable parts also provide `assembly: { layer: 'exterior' | 'interior', section: 'front-panel', offset: [0, 0, 1.7] }`.
-The offset is a world-space translation at full explosion. `render({ assemblyAmount: 0.5, ...camera })` applies half the offset in the vertex shader.
+Explodable parts also provide `assembly: { layer: 'exterior' | 'interior', section: 'front-panel', offset: [0, 0, 1.7], detailOffset: [0.1, 0.05, 0.3] }`.
+Both offsets are world-space translations. The shader applies `offset * amount + detailOffset * smoothstep(0.3, 1, amount)`.
+The group separates first. Small components separate during the second stage.
Keep each section's offsets consistent so fasteners follow their panel. Base matrices remain assembled.
Changing assembly amount refreshes shadows while reusing the same shadow texture and geometry buffers.
-For an exploded GLB, add the current offset to matrix translation entries 12, 13 and 14 before export.
+For an exploded GLB, use `assemblyOffset(part, amount)` from `67js` for matrix translation entries 12, 13 and 14.
The material tags select renderer behavior.
diff --git a/src/home.js b/src/home.js
index 4d49de8c..2929842b 100644
--- a/src/home.js
+++ b/src/home.js
@@ -53,7 +53,7 @@ function renderRelease() {
setLink('[data-release-module]', release ? releaseURL(release.module) : null, true);
setLink('[data-release-api]', release ? releaseURL(release.api) : null);
setLink('[data-release-commit]', release ? `https://github.com/anxuanng/67.js/commit/${release.commit}` : null);
- setText('[data-release-commit]', release ? `Commit ${release.commit.slice(0, 7)} ↗` : 'Release commit');
+ setText('[data-release-commit]', release ? `Commit ${release.commit.slice(0, 7)}` : 'Release commit');
if (release && document.querySelector('#browser-code')) {
const cubeCode = document.querySelector('#cube-code').textContent.replace("from '67js'", `from '${releaseURL(release.module)}'`);
document.querySelector('#browser-code').textContent = `<canvas id="scene" style="width:100vw;height:100vh;display:block"></canvas>\n<script type="module">\n${cubeCode}\n</script>`;
diff --git a/src/index.js b/src/index.js
new file mode 100644
index 00000000..409ccaa7
--- /dev/null
+++ b/src/index.js
@@ -0,0 +1,9 @@
+import packageMetadata from '../package.json' with { type: 'json' };
+
+export const VERSION = packageMetadata.version;
+export { Renderer67 } from './renderer.js';
+export { box, cylinder, sphere, torus } from './geometry.js';
+export { exportGlb } from './export.js';
+export { RENDER_PRESETS, planRenderSize, estimateFrameBytes } from './budget.js';
+
+export { assemblyOffset } from './assembly.js';
diff --git a/src/main.js b/src/main.js
index 30af209d..413afa0d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,6 +2,7 @@ import './style.css';
import { Renderer67 } from './renderer.js';
import { createModel } from './model.js';
import { downloadGlb } from './export.js';
+import { assemblyOffset } from './assembly.js';
const canvas = document.querySelector('#viewport');
const parts = createModel();
@@ -10,7 +11,7 @@ const finishes = {
ceramic: { name: 'Ceramic', color: [0.7, 0.77, 0.74], surface: [0.05, 0.24] },
graphite: { name: 'Graphite', color: [0.10, 0.14, 0.17], surface: [0.65, 0.4] },
};
-const state = { azimuth: 0.48, elevation: 0.18, distance: 7.8, finish: 'yellow', exposure: 1, inspection: false, rotating: false, assembly: 0, layer: 'all' };
+const state = { azimuth: 0.48, elevation: 0.18, distance: 7.8, finish: 'yellow', exposure: 1, inspection: false, rotating: false, assembly: Math.max(0, Math.min(1, Number(new URLSearchParams(location.search).get('explosion')) || 0)), layer: 'all' };
let renderer;
let scheduledFrame = 0;
let lastTime = 0;
@@ -30,7 +31,7 @@ function notify(message, failure = false) {
function camera() {
const mobile = canvas.clientWidth <= 700;
if (renderer) renderer.projection[8] = mobile || state.exporting ? 0 : -0.25 + state.assembly * 0.15;
- const distance = state.distance * (mobile ? 0.78 : 1) + state.assembly * (mobile ? 4.5 : 6);
+ const distance = state.distance * (mobile ? 0.78 : 1) + state.assembly * (mobile ? 8 : 10);
const target = [0, (mobile ? 1.5 : 1.35) + state.assembly * 0.35, 0];
return {
target,
@@ -62,13 +63,17 @@ function invalidate() {
function initialize() {
const visibleParts = state.layer === 'all' ? parts : parts.filter((part) => part.assembly?.layer === state.layer);
- renderer = new Renderer67(canvas, visibleParts, { shadowBounds: { extent: 5, eye: [-3, 7, 4], target: [0, 1.5, 0] } });
+ renderer = new Renderer67(canvas, visibleParts, { shadowBounds: { extent: 6, eye: [-3, 7, 4], target: [0, 1.5, 0] } });
document.querySelector('#parts').textContent = `${visibleParts.length} parts · ${Math.round(renderer.triangles / 1000)}k triangles`;
document.querySelector('#calls').textContent = `${renderer.batches.length} geometry draws`;
invalidate();
window.__studio = { parts, get renderer() { return renderer; }, state, camera, invalidate };
}
+document.querySelector('#assembly').value = String(state.assembly * 100);
+document.querySelector('#assembly-value').textContent = `${state.assembly * 100}%`;
+document.querySelector('#assembly').setAttribute('aria-valuetext', state.assembly === 1 ? 'Fully exploded' : state.assembly === 0 ? 'Assembled' : `${state.assembly * 100}% exploded`);
+
try { initialize(); } catch (error) { notify(error.message, true); }
document.querySelector('#assembly').addEventListener('input', (event) => {
@@ -156,7 +161,8 @@ document.querySelector('#export').addEventListener('click', () => {
const finish = finishes[state.finish];
const exported = parts.filter((part) => state.layer === 'all' || part.assembly?.layer === state.layer).map((part) => {
const matrix = new Float32Array(part.matrix);
- for (let axis = 0; axis < 3; axis++) matrix[12 + axis] += (part.assembly?.offset[axis] ?? 0) * state.assembly;
+ const displacement = assemblyOffset(part, state.assembly);
+ for (let axis = 0; axis < 3; axis++) matrix[12 + axis] += displacement[axis];
const material = part.material.tag === 'armor' ? { ...part.material, color: finish.color, metallic: finish.surface[0], roughness: finish.surface[1] } : part.material;
return { ...part, matrix, material };
});
diff --git a/src/renderer.js b/src/renderer.js
index f3b297bf..2349fe32 100644
--- a/src/renderer.js
+++ b/src/renderer.js
@@ -117,7 +117,7 @@ export class Renderer67 {
context.vertexAttribPointer(location, 3, context.FLOAT, false, 0, 0);
}
this.uploadBuffer(context.ELEMENT_ARRAY_BUFFER, geometry.indices);
- const stride = 35;
+ const stride = 38;
const instanceData = new Float32Array(parts.length * stride);
const normalMatrix = mat3.create();
parts.forEach((part, index) => {
@@ -128,6 +128,7 @@ export class Renderer67 {
instanceData.set(part.material.color, offset + 25);
instanceData.set([part.material.metallic, part.material.roughness, part.material.emission ?? 0, MATERIAL_TAGS[part.material.tag] ?? 0], offset + 28);
instanceData.set(part.assembly?.offset ?? [0, 0, 0], offset + 32);
+ instanceData.set(part.assembly?.detailOffset ?? [0, 0, 0], offset + 35);
});
this.uploadBuffer(context.ARRAY_BUFFER, instanceData);
for (let column = 0; column < 4; column++) this.attribute(2 + column, 4, stride * 4, column * 16);
@@ -135,6 +136,7 @@ export class Renderer67 {
this.attribute(9, 3, stride * 4, 100);
this.attribute(10, 4, stride * 4, 112);
this.attribute(11, 3, stride * 4, 128);
+ this.attribute(12, 3, stride * 4, 140);
context.bindVertexArray(null);
return { vertexArray, indexCount: geometry.indices.length, instanceCount: parts.length, floor: parts[0].material.tag === 'floor' };
}
diff --git a/src/shaders.js b/src/shaders.js
index f679391f..17a41478 100644
--- a/src/shaders.js
+++ b/src/shaders.js
@@ -7,6 +7,7 @@ layout(location=6) in mat3 instanceNormal;
layout(location=9) in vec3 instanceColor;
layout(location=10) in vec4 instanceSurface;
layout(location=11) in vec3 assemblyOffset;
+layout(location=12) in vec3 assemblyDetailOffset;
uniform mat4 viewProjection;
uniform mat4 lightProjection;
uniform float time;
@@ -21,7 +22,7 @@ flat out vec4 surface;
out vec4 shadowPosition;
void main() {
vec4 world = instanceMatrix * vec4(position, 1.0);
- world.xyz += assemblyOffset * assemblyAmount;
+ world.xyz += assemblyOffset * assemblyAmount + assemblyDetailOffset * smoothstep(0.3, 1.0, assemblyAmount);
if (instanceSurface.w == 4.0 || instanceSurface.w == 7.0) {
world.x += sin(time * 1.2 + world.z * 0.31 + world.x * 0.17) * wind * 0.10 * max(position.y + 0.5, 0.0);
}
@@ -44,11 +45,12 @@ precision highp float;
layout(location=0) in vec3 position;
layout(location=2) in mat4 instanceMatrix;
layout(location=11) in vec3 assemblyOffset;
+layout(location=12) in vec3 assemblyDetailOffset;
uniform mat4 lightProjection;
uniform float assemblyAmount;
void main() {
vec4 world = instanceMatrix * vec4(position, 1.0);
- world.xyz += assemblyOffset * assemblyAmount;
+ world.xyz += assemblyOffset * assemblyAmount + assemblyDetailOffset * smoothstep(0.3, 1.0, assemblyAmount);
gl_Position = lightProjection * world;
}`;
diff --git a/vite.browser.config.js b/vite.browser.config.js
new file mode 100644
index 00000000..4676f833
--- /dev/null
+++ b/vite.browser.config.js
@@ -0,0 +1,10 @@
+import { defineConfig } from 'vite';
+
+export default defineConfig({
+ build: {
+ copyPublicDir: false,
+ outDir: 'build-browser',
+ lib: { entry: 'src/index.js', formats: ['es'], fileName: () => '67.module.js' },
+ minify: true,
+ },
+});
diff --git a/vite.config.js b/vite.config.js
index ca93f3f6..de947fb3 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,5 +8,5 @@ const headers = {
export default defineConfig({
server: { headers },
preview: { headers },
- build: { rolldownOptions: { input: { object: 'index.html', nature: 'nature.html', film: 'film.html' } } },
+ build: { rolldownOptions: { input: { home: 'index.html', object: 'object.html', nature: 'nature.html', film: 'film.html', guide: 'getting-started.html' } } },
});
diff --git a/vite.lib.config.js b/vite.lib.config.js
new file mode 100644
index 00000000..0905700b
--- /dev/null
+++ b/vite.lib.config.js
@@ -0,0 +1,19 @@
+import { defineConfig } from 'vite';
+
+export default defineConfig({
+ build: {
+ copyPublicDir: false,
+ outDir: 'build',
+ lib: {
+ entry: {
+ core: 'src/index.js',
+ model: 'src/model.js',
+ nature: 'src/nature.js',
+ film: 'src/film.js',
+ },
+ formats: ['es'],
+ fileName: (_, entry) => entry === 'core' ? '67.module.js' : `${entry}.js`,
+ },
+ minify: true,
+ },
+});
diff --git a/wrangler.jsonc b/wrangler.jsonc
new file mode 100644
index 00000000..92988d8e
--- /dev/null
+++ b/wrangler.jsonc
@@ -0,0 +1,12 @@
+{
+ "$schema": "node_modules/wrangler/config-schema.json",
+ "name": "67js-site",
+ "compatibility_date": "2026-10-09",
+ "workers_dev": false,
+ "routes": [{ "pattern": "67js.codepawl.com", "custom_domain": true }],
+ "assets": {
+ "directory": "./dist",
+ "html_handling": "auto-trailing-slash",
+ "not_found_handling": "none"
+ }
+}