Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

chore: relicense readme-3d to Apache-2.0 with NOTICE

fudjiac656fb04a81b
diff --git a/api/_lib/x402/autonomous-registry.js b/api/_lib/x402/autonomous-registry.js
index 458fa1c62..bf5bab49b 100644
--- a/api/_lib/x402/autonomous-registry.js
+++ b/api/_lib/x402/autonomous-registry.js
@@ -44,6 +44,7 @@ import { run as reputationRefresh } from './pipelines/reputation-refresh.js';
import { run as tokenIntelPreSnipeGate } from './pipelines/token-intel-gate.js';
import { run as sniperIntelEnrich } from './pipelines/sniper-intel-enrich.js';
import { run as volumeBootstrapLoop } from './pipelines/volume-bootstrap-loop.js';
+import { run as datapointVolumeSweep } from './pipelines/datapoint-volume-sweep.js';
import { run as ringRebalance, floatTopUp as ringFloatTopUp } from './pipelines/ring-rebalance.js';
import { run as ringAgentBuyers } from './agents/index.js';
import { run as feeAudit } from './pipelines/fee-audit.js';
@@ -2671,6 +2672,29 @@ const SELF_ENDPOINTS = [
run: (ctx) => volumeBootstrapLoop(ctx),
},
+ // ── Datapoint Fabric Volume Sweep ──────────────────────────────────────────
+ // Settles real on-chain USDC against the datapoint fabric (the 1M+ endpoints
+ // served by api/x402/d/[...path].js), which the main volume loop never touches.
+ // run() cursors a live-resolved pool of concrete datapoint URLs and pays the
+ // next window on Solana via the shared settleAndRecord path — the cheapest call
+ // in the catalog ($0.0005), so it is the most tx-per-dollar-efficient volume
+ // generator and gives x402scan per-resource settlement history for the fabric.
+ // Draws from the same daily cap as the main loop (can't blow spend); no-op when
+ // the wallet/RPC is unconfigured. Sweeps thousands of distinct URLs over time.
+ // See pipelines/datapoint-volume-sweep.js. Batch: X402_DATAPOINT_SWEEP_BATCH.
+ {
+ id: 'datapoint-volume-sweep',
+ name: 'Datapoint Fabric Volume Sweep',
+ path: '/api/x402/d/*',
+ method: 'GET',
+ body: null,
+ cooldown_s: 300,
+ priority: 25,
+ pipeline: 'datapoint',
+ enabled: true,
+ run: (ctx) => datapointVolumeSweep(ctx),
+ },
+
// ── Ring Rebalancer ────────────────────────────────────────────────────────
// Recirculates the closed-loop float: sweeps USDC from the treasury
// (X402_PAY_TO_SOLANA) back to the ring payer so the same money cycles
diff --git a/api/_lib/x402/pipelines/datapoint-volume-sweep.js b/api/_lib/x402/pipelines/datapoint-volume-sweep.js
new file mode 100644
index 000000000..e5194c89a
--- /dev/null
+++ b/api/_lib/x402/pipelines/datapoint-volume-sweep.js
@@ -0,0 +1,266 @@
+// api/_lib/x402/pipelines/datapoint-volume-sweep.js
+//
+// Datapoint Fabric Volume Sweep — autonomous pipeline.
+//
+// The datapoint fabric (api/x402/d/[...path].js + api/_lib/market-data/
+// datapoints.js) serves 1,000,000+ standalone paid endpoints through ONE dynamic
+// route — every (family, id, metric) triple its own $0.0005 USDC endpoint. The
+// ring's main volume loop pays the ~60 NAMED catalog endpoints; nothing settled
+// against the datapoint route, so those million endpoints rendered 402s with no
+// on-chain settlement history of their own for x402scan to attribute.
+//
+// This sweep closes that gap on Solana. Each run it advances a Redis-backed
+// cursor over a live-resolved pool of concrete datapoint URLs and pays the next
+// window of them with real on-chain USDC — the SAME payment + recording path
+// (pipelines/volume-shared.js settleAndRecord) the main loop uses, so there is
+// one settlement code path, not two that drift. Because a datapoint is the
+// cheapest call in the whole catalog ($0.0005), this is the most tx-per-dollar
+// efficient volume generator we have — and tx count + distinct resources settled
+// to our seller is exactly what x402scan ranks.
+//
+// The URL pool is resolved at RUNTIME from the same cached feeds the paid route
+// itself reads (allProtocols/allDexes/allFees/allStablecoins/allChains/
+// allCategories/allDerivativeExchanges/loadYieldPools/buildExchanges + the coin
+// markets table + the $THREE mint for the per-contract token families). No
+// third-party id is hardcoded here — only family names — mirroring how the
+// discovery doc (api/wk.js) enumerates the fabric. Over successive runs the
+// cursor sweeps the whole pool, so thousands of distinct datapoint URLs each
+// accrue their own real Solana settlement history.
+//
+// Budget: draws from the SAME daily cap the main loop respects (ctx.remainingCap)
+// plus a self-imposed per-run cap, so it can never blow total ring spend — it
+// simply routes a slice of the capped budget at the cheapest, highest-count
+// endpoints. No-op (graceful skip, no spend) when the wallet/RPC is unconfigured.
+//
+// Wiring: a run()-style entry in autonomous-registry.js
+// (`datapoint-volume-sweep`), fired by the autonomous loop on its cooldown.
+
+import { randomUUID } from 'node:crypto';
+
+import { sql as defaultSql } from '../../db.js';
+import { env } from '../../env.js';
+import { logger } from '../../usage.js';
+import { payX402, bootstrapSolanaContext } from '../pay.js';
+import {
+ ensureVolumeSchema,
+ reserveWindow,
+ settleAndRecord,
+} from './volume-shared.js';
+import {
+ DATAPOINT_FAMILIES,
+ allProtocols,
+ allChains,
+ allStablecoins,
+ allCategories,
+ allDexes,
+ allFees,
+ allDerivativeExchanges,
+} from '../../market-data/datapoints.js';
+import { loadYieldPools } from '../../../defi/yields.js';
+import { buildExchanges } from '../../../coin/exchanges.js';
+import { fetchMarketsTable } from '../../market-fallbacks.js';
+
+const log = logger('x402-datapoint-sweep');
+
+const CURSOR_KEY = 'x402:auto:datapoint:cursor';
+
+// $THREE — the platform coin, the worked example for the per-contract token
+// families (which resolve any address at runtime; a fixed, reliably-resolvable
+// mint is what a settling canary needs).
+const THREE_MINT = 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump';
+
+// How many distinct datapoint URLs to settle per run. 12 loop ticks/hour × 6 =
+// 72 datapoint settles/hour ≈ $0.036/hour at the $0.0005 unit price, all drawn
+// from the shared daily cap. Env-tunable.
+const SWEEP_BATCH = Math.max(1, Number(env.X402_DATAPOINT_SWEEP_BATCH ?? process.env.X402_DATAPOINT_SWEEP_BATCH ?? 6) || 6);
+
+// Per-run spend ceiling (atomics) so one tick can't drain the day even if the
+// pool or price is misconfigured. 6 calls × $0.0005 = 3_000; leave headroom.
+const PER_RUN_CAP_ATOMIC = Math.max(0, Number(env.X402_DATAPOINT_SWEEP_CAP_ATOMIC ?? process.env.X402_DATAPOINT_SWEEP_CAP_ATOMIC ?? 50_000) || 50_000);
+
+// Per-family id caps for the sweep pool — keeps the pool bounded and the build
+// cheap while covering real breadth. Every metric of each family is swept.
+const POOL_ID_CAPS = {
+ coin: 60,
+ protocol: 120,
+ chain: 120,
+ pool: 120,
+ stablecoin: 80,
+ exchange: 60,
+ category: 80,
+ dex: 60,
+ fees: 80,
+ 'derivative-exchange': 40,
+};
+
+const POOL_TTL_MS = 900_000; // 15 min — matches the discovery-doc slice cadence
+let _pool = null; // { urls: string[], at }
+
+const metricsOf = (family) => Object.keys(DATAPOINT_FAMILIES[family].metrics);
+
+function pushUrls(out, family, ids) {
+ const metrics = metricsOf(family);
+ for (const id of ids) {
+ if (id == null || id === '') continue;
+ for (const metric of metrics) {
+ out.push(`/api/x402/d/${family}/${encodeURIComponent(String(id))}/${metric}`);
+ }
+ }
+}
+
+// Build the concrete datapoint URL pool from the live cached feeds. Every id is
+// resolved at runtime (never committed); a family whose feed is momentarily down
+// is simply skipped this build — the rest still sweep.
+async function buildPool() {
+ const now = Date.now();
+ if (_pool && now - _pool.at < POOL_TTL_MS && _pool.urls.length) return _pool.urls;
+
+ const urls = [];
+
+ // No-id families: every metric, always present.
+ for (const family of ['global', 'fear-greed', 'gas']) {
+ for (const metric of metricsOf(family)) urls.push(`/api/x402/d/${family}/${metric}`);
+ }
+
+ // Per-contract token families — advertised/settled via the $THREE example.
+ pushUrls(urls, 'token', [THREE_MINT]);
+ pushUrls(urls, 'token-security', [THREE_MINT]);
+
+ const tries = [
+ ['coin', async () => {
+ const { rows } = await fetchMarketsTable({ page: 1, perPage: Math.min(POOL_ID_CAPS.coin, 100), category: '' });
+ return rows.map((r) => r.id).filter(Boolean).slice(0, POOL_ID_CAPS.coin);
+ }],
+ ['protocol', async () => [...(await allProtocols()).keys()].slice(0, POOL_ID_CAPS.protocol)],
+ ['chain', async () => [...(await allChains()).values()].map((c) => c?.name).filter(Boolean).slice(0, POOL_ID_CAPS.chain)],
+ ['pool', async () => {
+ const { pools } = await loadYieldPools();
+ return pools.slice(0, POOL_ID_CAPS.pool).map((p) => p.pool).filter(Boolean);
+ }],
+ ['stablecoin', async () => {
+ const seen = new Set();
+ const ids = [];
+ for (const [key, row] of (await allStablecoins()).entries()) {
+ if (seen.has(row)) continue;
+ seen.add(row);
+ ids.push(/^\d+$/.test(key) ? key : row.symbol || key);
+ if (ids.length >= POOL_ID_CAPS.stablecoin) break;
+ }
+ return ids;
+ }],
+ ['exchange', async () => {
+ const { exchanges } = await buildExchanges();
+ return exchanges.slice(0, POOL_ID_CAPS.exchange).map((e) => e.id).filter(Boolean);
+ }],
+ ['category', async () => [...(await allCategories()).keys()].slice(0, POOL_ID_CAPS.category)],
+ ['dex', async () => [...(await allDexes()).keys()].slice(0, POOL_ID_CAPS.dex)],
+ ['fees', async () => [...(await allFees()).keys()].slice(0, POOL_ID_CAPS.fees)],
+ ['derivative-exchange', async () => [...(await allDerivativeExchanges()).keys()].slice(0, POOL_ID_CAPS['derivative-exchange'])],
+ ];
+
+ for (const [family, resolve] of tries) {
+ try {
+ pushUrls(urls, family, await resolve());
+ } catch (err) {
+ log.info('datapoint_pool_family_skipped', { family, message: err?.message });
+ }
+ }
+
+ _pool = { urls, at: now };
+ log.info('datapoint_pool_built', { size: urls.length });
+ return urls;
+}
+
+/**
+ * Run one datapoint sweep window. Conforms to the run()-style registry contract:
+ * the loop hands { origin, buyer, conn, blockhash, mintInfo, remainingCap, runId,
+ * sql, redis }; standalone callers get a bootstrapped Solana context.
+ *
+ * Returns the aggregate outcome the loop records as one summary row.
+ */
+export async function run(ctx = {}) {
+ const sql = ctx.sql || defaultSql;
+ const runId = ctx.runId || randomUUID();
+ const origin = ctx.origin || env.APP_ORIGIN || 'https://three.ws';
+ const redis = ctx.redis || null;
+
+ try {
+ await ensureVolumeSchema(sql);
+ } catch (err) {
+ log.warn('datapoint_sweep_schema_failed', { message: err?.message });
+ return { success: false, skipped: true, amountAtomic: 0, errorMsg: `schema_failed: ${err?.message}` };
+ }
+
+ let pool;
+ try {
+ pool = await buildPool();
+ } catch (err) {
+ log.warn('datapoint_sweep_pool_failed', { message: err?.message });
+ return { success: false, skipped: true, amountAtomic: 0, errorMsg: `pool_failed: ${err?.message}` };
+ }
+ if (!pool.length) {
+ return { success: false, skipped: true, amountAtomic: 0, note: 'empty_pool' };
+ }
+
+ let { buyer, conn, blockhash, mintInfo } = ctx;
+ if (!buyer || !conn || !blockhash || !mintInfo) {
+ try {
+ ({ buyer, conn, blockhash, mintInfo } = await bootstrapSolanaContext({ buyer }));
+ } catch (err) {
+ log.info('datapoint_sweep_skipped', { reason: err.message });
+ return { success: false, skipped: true, amountAtomic: 0, errorMsg: err.message, note: 'wallet_or_rpc_unconfigured' };
+ }
+ }
+
+ const loopCap = ctx.remainingCap ?? Number.POSITIVE_INFINITY;
+ let remaining = PER_RUN_CAP_ATOMIC > 0 ? Math.min(loopCap, PER_RUN_CAP_ATOMIC) : loopCap;
+
+ const indices = await reserveWindow(redis, SWEEP_BATCH, pool.length, CURSOR_KEY);
+
+ let spentAtomic = 0;
+ let paid = 0;
+ let calls = 0;
+ let errors = 0;
+ let lastTxSig = null;
+ const swept = [];
+
+ for (const idx of indices) {
+ if (remaining <= 0) break;
+ const path = pool[idx];
+ // A stable per-URL ledger key: the path minus the /api/x402/d/ prefix, so
+ // x402_volume_metrics accrues one row per datapoint URL swept.
+ const ep = { key: `dp:${path.slice('/api/x402/d/'.length)}`, name: `Datapoint ${path}`, path, method: 'GET', body: null };
+
+ const { result, paidAmount } = await settleAndRecord({
+ sql, runId, ep, origin, remaining,
+ ctx: { buyer, conn, blockhash, mintInfo },
+ pipeline: 'datapoint', namePrefix: 'Datapoint', payFn: payX402, log,
+ });
+
+ calls += 1;
+ if (!result.success) errors += 1;
+ if (result.paid) {
+ spentAtomic += paidAmount;
+ remaining -= paidAmount;
+ paid += 1;
+ if (result.txSig) lastTxSig = result.txSig;
+ }
+ swept.push({ path, paid: result.paid === true, success: result.success, status: result.status });
+ }
+
+ log.info('datapoint_sweep_complete', {
+ run_id: runId, pool_size: pool.length, window: indices.length,
+ calls, paid, errors, spent_usdc: (spentAtomic / 1e6).toFixed(4),
+ });
+
+ return {
+ success: paid > 0 || (calls > 0 && errors < calls),
+ amountAtomic: spentAtomic,
+ txSig: lastTxSig,
+ errorMsg: paid === 0 && errors > 0 ? `datapoint_sweep_calls_failed:${errors}/${calls}` : null,
+ skipped: calls === 0,
+ responseData: { pool_size: pool.length, window: indices.length, calls, paid, errors, swept },
+ signalData: { calls, paid, errors, spent_atomic: spentAtomic },
+ note: `datapoint_sweep pool=${pool.length} calls=${calls} paid=${paid} errors=${errors}`,
+ };
+}
diff --git a/docs/autonomous-x402.md b/docs/autonomous-x402.md
index 0316172a7..b0ca8414f 100644
--- a/docs/autonomous-x402.md
+++ b/docs/autonomous-x402.md
@@ -45,6 +45,8 @@ Payments are real on chain — no mocks, no simulations.
| `X402_AUTONOMOUS_DAILY_CAP_ATOMIC` | `15000000` ($15) | Daily USDC cap across the whole loop, in 6-decimal atomics. Raised from $5 so the higher per-tick throughput isn't money-starved mid-day; still a hard, env-tunable ceiling enforced per tick. |
| `X402_VOLUME_BATCH_PER_RUN` | `6` | Volume Bootstrap Loop: endpoints swept per run (cursor advances by this). Default sized so a default-cadence hour covers the full autobuy rotation — trailing-30-day settle activity is what keeps endpoints ranked on the x402 discovery surfaces. |
| `X402_VOLUME_PER_RUN_CAP_ATOMIC` | `50000` ($0.05) | Volume Bootstrap Loop: self-imposed per-run cap, on top of the daily cap, so one tick can't drain the day. |
+| `X402_DATAPOINT_SWEEP_BATCH` | `6` | Datapoint Fabric Volume Sweep: distinct datapoint URLs settled per run (cursor advances by this over the ~5k-URL live pool). |
+| `X402_DATAPOINT_SWEEP_CAP_ATOMIC` | `50000` ($0.05) | Datapoint Fabric Volume Sweep: self-imposed per-run cap, on top of the shared daily cap. |
| `CRON_SECRET` | _(required)_ | Shared secret authorizing cron invocations (Cloud Scheduler). |
| `X402_ASSET_MINT_SOLANA` | USDC mint | The asset paid with (Solana USDC). |
| `SOLANA_RPC_URL` | — | RPC used to build and submit the payment. |
@@ -128,6 +130,35 @@ automatically (and `tests/x402-ring-catalog.test.js` fails until it is cataloged
> [Circulation engine](circulation-engine.md), real `agent_hire` commerce,
> discovery), not a heavier self-paid sweep.
+## The Datapoint Fabric Volume Sweep
+
+One registry entry — `datapoint-volume-sweep`, pipeline `datapoint`, cooldown
+300s — settles real on-chain USDC against the [datapoint fabric](market-data-api.md#the-datapoint-fabric)
+(the 1,000,000+ endpoints served by the single `api/x402/d/[...path].js` route),
+which the Volume Bootstrap Loop above never touches (its rotation is the ~60
+*named* catalog endpoints). On each run it advances its own Redis-backed cursor
+over a pool of concrete datapoint URLs — resolved at runtime from the same cached
+feeds the paid route reads, so no third-party id is hardcoded — and pays the next
+`X402_DATAPOINT_SWEEP_BATCH` (default 6) of them on Solana through the shared
+[`pipelines/volume-shared.js`](../api/_lib/x402/pipelines/volume-shared.js)
+`settleAndRecord` path. A datapoint is the cheapest call in the catalog
+($0.0005), so this is the most transactions-per-dollar-efficient sweep; over
+successive runs the cursor walks the whole ~5k-URL pool, giving each distinct
+datapoint URL its own on-chain settlement history. It draws from the **same**
+daily cap the main loop respects (`remainingCap`) plus its own
+`X402_DATAPOINT_SWEEP_CAP_ATOMIC` per-run cap, so it cannot increase total ring
+spend — it only routes a slice of the capped budget at the cheapest endpoints.
+No-op (graceful skip, no spend) when the wallet/RPC is unconfigured. See
+[`pipelines/datapoint-volume-sweep.js`](../api/_lib/x402/pipelines/datapoint-volume-sweep.js).
+
+> **Same synthetic-vs-organic caveat as the Volume Bootstrap Loop applies.** This
+> pays our **own** datapoint endpoints from our **own** seed wallet; the USDC
+> round-trips to the treasury. It proves the fabric's payment path settles and
+> gives x402scan per-resource settlement history, but it is **canary volume, not
+> demand**. Do not publish it as marketplace volume, and do not read a high
+> datapoint settle count as external traction — that would be wash volume. Real
+> ranking comes from external buyers, not a heavier self-paid sweep.
+
## Reconciliation (`self/027`)
The `revenue-reconciliation` entry (pipeline `reconciliation`, cooldown 86400s —
diff --git a/packages/readme-3d/LICENSE b/packages/readme-3d/LICENSE
index d76373b2c..d64569567 100644
--- a/packages/readme-3d/LICENSE
+++ b/packages/readme-3d/LICENSE
@@ -1,21 +1,202 @@
-MIT License
-
-Copyright (c) 2026 nirholas (three.ws)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-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.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/readme-3d/NOTICE b/packages/readme-3d/NOTICE
new file mode 100644
index 000000000..383a545a4
--- /dev/null
+++ b/packages/readme-3d/NOTICE
@@ -0,0 +1,4 @@
+readme-3d
+Copyright 2026 nirholas (three.ws)
+
+This product includes software developed at three.ws (https://three.ws).
diff --git a/packages/readme-3d/README.md b/packages/readme-3d/README.md
index c95a3892a..e0cfe493a 100644
--- a/packages/readme-3d/README.md
+++ b/packages/readme-3d/README.md
@@ -4352,4 +4352,4 @@ This repo ships a [Claude Code skill](skills/3d-in-readme/SKILL.md) and [ready-m
## License
-[MIT](LICENSE). Built by [three.ws](https://three.ws) - the browser-native 3D AI agent platform. The technique follows GitHub's [ASCII STL markdown support](https://github.blog/changelog/2022-03-17-mermaid-topojson-geojson-and-ascii-stl-diagrams-are-now-supported-in-markdown-and-as-files/), popularized by [Matthijs van der Veer](https://www.vanderveer.io/github-markdown-render-stl/).
+[Apache-2.0](LICENSE). Built by [three.ws](https://three.ws) - the browser-native 3D AI agent platform. The technique follows GitHub's [ASCII STL markdown support](https://github.blog/changelog/2022-03-17-mermaid-topojson-geojson-and-ascii-stl-diagrams-are-now-supported-in-markdown-and-as-files/), popularized by [Matthijs van der Veer](https://www.vanderveer.io/github-markdown-render-stl/).
diff --git a/packages/readme-3d/package.json b/packages/readme-3d/package.json
index 835fe0d22..107f85408 100644
--- a/packages/readme-3d/package.json
+++ b/packages/readme-3d/package.json
@@ -16,7 +16,8 @@
"bin",
"src",
"README.md",
- "LICENSE"
+ "LICENSE",
+ "NOTICE"
],
"scripts": {
"test": "node --test test/*.test.js"
@@ -49,7 +50,7 @@
"url": "https://github.com/nirholas/readme-3d/issues"
},
"author": "three.ws (https://three.ws)",
- "license": "MIT",
+ "license": "Apache-2.0",
"engines": {
"node": ">=18"
},