Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions ASSETS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Bundled Assets Licence and Provenance (`ASSETS.md`)

The root [`LICENSE`](LICENSE) (**MIT License**) covers the source code in this repository, including `@pascal-app/*` packages, `apps/editor`, `apps/ifc-converter`, the CLI, the MCP server, procedural node geometry (walls, slabs, roofs, stairs, openings, cabinets, and procedural items), and the deterministic asset generator scripts under [`scripts/`](scripts).

**Bundled 3D models, PBR textures, icons, demo scenes, and recorded audio files under [`apps/editor/public/`](apps/editor/public) (as well as remote catalog assets served from `editor.pascal.app` and Pascal's public storage bucket) are not covered by the code's MIT licence unless an asset group below explicitly states MIT or another open licence.** Until Pascal Group Inc. records a standalone licence grant for an unverified group, do not treat those files as MIT-licensed and do not redistribute them in third-party or commercial products.

## Summary by asset group

| Asset group | Location | Licence | Commercial / SaaS use | Original source | Attribution / conditions |
|---|---|---|---|---|---|
| Source code & procedural geometry | `packages/*`, `apps/*` source, `scripts/*` | [MIT](LICENSE) | Yes | Pascal Group Inc. and contributors | Retain copyright and MIT permission notice |
| Environment HDRI | `apps/editor/public/hdri/venice_sunset_1k.hdr` | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) | Yes | [Poly Haven (`venice_sunset`)](https://polyhaven.com/a/venice_sunset) by Greg Zaal, mirrored via `@react-three/drei` | None required |
| Web, app & PDF fonts | `apps/editor/public/fonts/*.ttf`, `apps/editor/app/fonts/*.woff`, `packages/editor/src/lib/floorplan/pdf-fonts/*.ttf` | [SIL OFL 1.1](https://openfontlicense.org/) | Yes (bundling, web serving, and PDF embedding allowed; font files may not be sold standalone) | Tokotype (`Plus Jakarta Sans`), Vercel & basement.studio (`Geist`, `Geist Mono`), Google & Red Hat (`Liberation Sans`) | Retain copyright notices and OFL-1.1 text; respect Reserved Font Names on modified derivatives |
| Synthesized UI, switch & turn sound cues (9 `.mp3` files) | `apps/editor/public/audios/sfx/{turn_done,turn_failed,turn_needs_input,viewer_hover,viewer_select,viewer_deselect,switch_on,switch_off,door_swing}.mp3` | [MIT](LICENSE) | Yes | Generated deterministically by [`scripts/synth-turn-cues.ts`](scripts/synth-turn-cues.ts) and [`scripts/synth-viewer-cues.ts`](scripts/synth-viewer-cues.ts) (using Raphael Salaja's MIT "Minimal" UI sound kit recipes for the five viewer/switch cues) | Retain MIT copyright and permission notices |
| Recorded / authored sound effects & audio | All other files in `apps/editor/public/audios/**` and `editor.pascal.app/audios/**` | **No licence recorded yet** (owner notice pending) | Not granted yet | Pascal-authored Logic Pro exports and recordings from the Pascal `/next` house | Do not redistribute without Pascal permission; override via `configureViewer({ sfxBaseUrl })` |
| Procedural urinal item | `apps/editor/public/items/urinal/{model.glb,thumbnail.png,floor-plan.png}` | [MIT](apps/editor/public/items/urinal/README.md) | Yes | Generated procedurally by [`scripts/generate-urinal.py`](scripts/generate-urinal.py) | Retain MIT copyright and permission notice |
| Bundled & hosted 3D item catalog | All other `apps/editor/public/items/<slug>/` directories and Pascal storage `items/system/<slug>/*` | **No licence recorded yet** (owner notice and per-model provenance pending) | Not granted yet | Synced from Pascal system catalog storage and Blender / glTF authoring pipelines | Do not redistribute without Pascal permission; supply custom catalog items and `configureViewer({ assetsBaseUrl, storageUrl })` |
| Material & PBR texture library | `apps/editor/public/material/{concrete,fabric,flooring,leather,metal,roofing,siding,wood}/` and `editor.pascal.app/material/*` | **No licence recorded yet** (owner notice and per-material source attribution pending) | Not granted yet | KTX2, WebP, JPG, and PNG PBR maps and swatches built from raw texture sources kept outside git | Do not redistribute without Pascal permission; untextured `colorPreset` / `sceneTheme` and map-less `MATERIAL_CATALOG` finishes are MIT code |
| Editor & viewer UI icons | `apps/editor/public/icons/**` (`.webp`, `.svg`), `apps/editor/public/cursor.svg`, `public/icons/spawn-point.svg`, and `editor.pascal.app/icons/*` | **No licence recorded yet** (owner notice pending) | Not granted yet | Pascal-authored and AI-generated isometric WebP and SVG UI icons | Do not redistribute without Pascal permission; override viewer UI icons via `configureViewer({ iconsBaseUrl })` |
| Bundled demo scene | `apps/editor/public/demos/demo_1.json` | **No licence recorded yet** (owner notice pending) | Not granted yet | Pascal sample scene graph referencing `/items/<slug>/model.glb` | Referenced models remain subject to the `items/` status above |
| Brand logos & scaffold SVGs | `apps/editor/public/pascal*.svg`, `assets/pascal-mark*.{svg,png}`, `skills/.claude-plugin/icon.png`, `skills/.cursor-plugin/pascal-mark-plate.svg`, `apps/editor/public/{next,vercel,turborepo-dark,turborepo-light,file-text,globe,window}.svg` | Trademarks reserved / `create-turbo` starter assets | Trademark use restricted | Pascal Group Inc. (`pascal*` and plugin listing icons), Vercel Inc. (`next`, `vercel`, `turborepo-*`, starter icons) | The MIT code licence does not grant trademark rights in Pascal or Vercel marks |
| Pascal Next demo recordings & GIFs | `docs/media/next-demo/*.gif` and release MP4s | [CC BY 4.0](docs/media/next-demo/LICENSE.md) | Yes | Pascal Group Inc. | Credit Pascal Group Inc., link CC BY 4.0, and indicate changes; no trademark grant |
| IFC converter test fixtures | `apps/ifc-converter/public/test-ifc-files/*.ifc` and remote test bucket objects | **Unlicensed / conflicting** ([`test-ifc-files/README.md`](apps/ifc-converter/public/test-ifc-files/README.md)) | No (local converter testing only) | Public BIM sample repositories (`xeokit-sdk`, `youshengCode/IfcSampleFiles`, NIBS, Autodesk) | Keep conversions and renders internal; do not redistribute models or derivatives |

---

## Group details

### 1. Environment HDRI (`apps/editor/public/hdri/`)

- **File**: `venice_sunset_1k.hdr` (1024x512 Radiance RGBE).
- **Source & licence**: Originally [**Venice Sunset**](https://polyhaven.com/a/venice_sunset) on Poly Haven, photographed by Greg Zaal and released into the public domain under [**CC0 1.0 Universal**](https://creativecommons.org/publicdomain/zero/1.0/). Self-hosted in `apps/editor/public/hdri/` from `@react-three/drei`'s `sunset` preset (`#473`) to avoid runtime third-party CDN fetches.
- **Runtime note**: `@pascal-app/viewer`'s [`SceneEnvironment`](packages/viewer/src/components/viewer/scene-environment.tsx) now generates a procedural gradient sky (or uses Three.js's built-in `RoomEnvironment`) at runtime rather than fetching `venice_sunset_1k.hdr`.
- **Commercial / SaaS & attribution**: Permitted for any purpose, including commercial SaaS products, with no attribution required.

### 2. Fonts (`apps/editor/public/fonts/`, `apps/editor/app/fonts/`, `packages/editor/src/lib/floorplan/pdf-fonts/`)

All bundled font files carry embedded OpenType `name` table notices or adjacent licence text placing them under the [**SIL Open Font License, Version 1.1 (OFL-1.1)**](https://openfontlicense.org/):

- `apps/editor/public/fonts/PlusJakartaSans-SemiBold.ttf`: Copyright 2020 The Plus Jakarta Sans Project Authors ([`tokotype/PlusJakartaSans`](https://github.com/tokotype/PlusJakartaSans)), designed by Gumpita Rahayu / Tokotype.
- `apps/editor/public/fonts/geist-regular.ttf` and `apps/editor/app/fonts/{GeistVF.woff,GeistMonoVF.woff}`: Copyright 2024 The Geist Project Authors ([`vercel/geist-font`](https://github.com/vercel/geist-font)), by Vercel and basement.studio.
- `packages/editor/src/lib/floorplan/pdf-fonts/{GeistMono-Regular.ttf,GeistMono-Bold.ttf}`: Licensed under OFL-1.1; full text in [`LICENSE-GeistMono.txt`](packages/editor/src/lib/floorplan/pdf-fonts/LICENSE-GeistMono.txt).
- `packages/editor/src/lib/floorplan/pdf-fonts/{LiberationSans-Regular.ttf,LiberationSans-Bold.ttf}`: Digitized data Copyright 2010 Google Corporation and Copyright 2012 Red Hat, Inc. ([`liberationfonts/liberation-fonts`](https://github.com/liberationfonts/liberation-fonts)), with Reserved Font Names `Arimo`, `Tinos`, `Cousine`, and `Liberation`; full text in [`LICENSE-LiberationSans.txt`](packages/editor/src/lib/floorplan/pdf-fonts/LICENSE-LiberationSans.txt).

**Commercial / SaaS & attribution**: OFL-1.1 permits bundling, web font serving, and PDF embedding in commercial and SaaS software, provided the font files are not sold by themselves, copyright and OFL-1.1 notices are preserved when redistributing font files, and modified font derivatives do not use Reserved Font Names without permission.

### 3. Sound effects & audio (`apps/editor/public/audios/`)

- **MIT-licensed procedurally synthesized cues (9 `.mp3` files)**:
- `turn_done.mp3`, `turn_failed.mp3`, `turn_needs_input.mp3`: Rendered deterministically from sine partials with `ffmpeg` by [`scripts/synth-turn-cues.ts`](scripts/synth-turn-cues.ts) (`#1056`).
- `viewer_hover.mp3`, `viewer_select.mp3`, `viewer_deselect.mp3`, `switch_on.mp3`, `switch_off.mp3`: Rendered deterministically with `ffmpeg` by [`scripts/synth-viewer-cues.ts`](scripts/synth-viewer-cues.ts) (`#1227`) from the MIT-licensed "Minimal" UI sound kit recipes by Raphael Salaja.
- `door_swing.mp3`: Rendered deterministically from band-passed noise with `ffmpeg` by [`scripts/synth-viewer-cues.ts`](scripts/synth-viewer-cues.ts) (`#1227`).
- These nine files are covered by the repository's [MIT licence](LICENSE) (together with Raphael Salaja's MIT notice for the Minimal UI recipes) and may be used in commercial and SaaS applications.
- **Recorded and DAW-authored audio (all other files in `apps/editor/public/audios/**`, licence notice pending)**:
- Every other audio or project file under `apps/editor/public/audios/` (and hosted `editor.pascal.app/audios/`), including the `/next` house door, garage, and shutter recordings (`door_close.mp3`, `door_open.mp3`, `garage_door.mp3`, `shutters_close.mp3`, `shutters_open.mp3`), the editor UI/tool/terrain cues and Logic Pro sidecar (`grid_snap*.mp3`, `grid_snap.mamd`, `item_*.mp3`, `menu_*.mp3`, `paint_apply.mp3`, `resize_*.mp3`, `snapshot_capture.mp3`, `structure_*.mp3`, `success.mp3`, `terrain_*.mp3`), and any hosted community radio streams.
- No standalone redistribution licence has been recorded yet for these files. Do not treat them as covered by the code's MIT licence.

### 4. 3D item models (`apps/editor/public/items/`)

- **`apps/editor/public/items/urinal/` (`model.glb`, `thumbnail.png`, `floor-plan.png`)**: Procedurally generated in Blender from [`scripts/generate-urinal.py`](scripts/generate-urinal.py) with no external meshes or textures, and explicitly placed under the repository's **MIT licence** in [`apps/editor/public/items/urinal/README.md`](apps/editor/public/items/urinal/README.md) (`#889`). Commercial and SaaS use is permitted under MIT.
- **All other `apps/editor/public/items/<slug>/` directories (licence notice pending)**: Synced from Pascal's system catalog storage (`items/system/<slug>/model.glb`, `bfcb0397`) and authoring pipelines (`glTF-Transform`, Blender glTF I/O, `obj2gltf`, `FBX2glTF`), with unreferenced authoring files (such as `piano/Fireplace_13.glb`) pruned when staging the portable CLI runtime via [`packages/cli/scripts/stage-runtime.ts`](packages/cli/scripts/stage-runtime.ts). None of the `.glb` headers embed `asset.copyright` metadata, and per-model upstream provenance and licensing have not yet been published. Until Pascal Group Inc. publishes an item-catalog licence notice, treat both the committed files under `apps/editor/public/items/` (other than `urinal/`) and the mirrored objects served from Pascal's Supabase storage bucket as **not covered by the repository MIT licence**.
- **Built-in parametric nodes vs. GLB items**: Structural and architectural geometry generated at runtime by `@pascal-app/core`, `@pascal-app/nodes`, and `@pascal-app/viewer` (walls, slabs, roofs, stairs, railings, doors, windows, kitchen cabinetry and built-in appliances in `packages/nodes/src/cabinet/`, and procedural item recipes) is pure TypeScript geometry code covered by [`LICENSE`](LICENSE) (MIT).

### 5. Materials & PBR textures (`apps/editor/public/material/`)

- **Files & remote catalog**: `apps/editor/public/material/` spans eight subdirectories (`concrete`, `fabric`, `flooring`, `leather`, `metal`, `roofing`, `siding`, `wood`) containing `.ktx2` Basis GPU-compressed maps, `.webp`, `.jpg`, and `.png` PBR texture channels (`basecolor`/`diffuse`, `normal`, `roughness`, `ao`/`ambientocclusion`, `metallic`, `specular`, `bump`, `displacement`), and `*_thumb.webp` picker swatches. Additional `/material/*` presets declared in `MATERIAL_CATALOG` ([`packages/core/src/material-library.ts`](packages/core/src/material-library.ts)) resolve remotely from `https://editor.pascal.app/material/` unless `assetsBaseUrl` is overridden.
- **Status**: Encoded from raw PBR sources kept outside git (cf. `042f8555`). Individual upstream source attributions and a redistribution licence grant for the compiled and hosted texture maps have not yet been recorded in the repository; do not treat `apps/editor/public/material/` or `editor.pascal.app/material/` as covered by the code's MIT licence until that notice lands.
- **MIT alternative in code**: Flat colour palettes (`colorPreset`), lighting/colour themes (`sceneTheme`), procedural runtime textures (such as `createSolarPanelTexture` in [`packages/viewer/src/lib/materials.ts`](packages/viewer/src/lib/materials.ts)), and map-less entries in `MATERIAL_CATALOG` (`preset-glass`, `preset-glass-frosted`, `preset-glass-tinted`, `metal-chrome`, `metal-brass`, `metal-black`, `metal-bronze`, `preset-metal`, and the flat `preset-*` paint swatches) are procedural material definitions in MIT-licensed code and load no files from `apps/editor/public/material/`.

### 6. UI icons, demo scene, brand marks & repository test fixtures

- **Pascal brand marks** (`apps/editor/public/pascal.svg`, `pascal-logo-full.svg`, `pascal-logo-shape.svg`, `assets/pascal-mark*.{svg,png}`, `skills/.claude-plugin/icon.png`, and `skills/.cursor-plugin/pascal-mark-plate.svg`): Copyright Pascal Group Inc. All trademark and brand rights are reserved; the MIT code licence grants no right to use the Pascal name or logos to imply endorsement or affiliation.
- **Scaffold & third-party marks** (`apps/editor/public/next.svg`, `vercel.svg`, `turborepo-dark.svg`, `turborepo-light.svg`, `file-text.svg`, `globe.svg`, `window.svg`): Inherited from the initial `create-turbo` / Next.js template (`d5f4648c`). Next.js, Vercel, and Turborepo marks remain subject to Vercel Inc.'s trademark guidelines.
- **UI icons (`apps/editor/public/icons/**` `.webp`/`.svg` files, `apps/editor/public/cursor.svg`, `public/icons/spawn-point.svg`, and `editor.pascal.app/icons/*`)**: Pascal-authored and AI-generated tool, node, fitting, and preset thumbnails (documented in [`apps/editor/public/icons/fittings/README.md`](apps/editor/public/icons/fittings/README.md) and [`wiki/design/kitchen-thumbnails.md`](wiki/design/kitchen-thumbnails.md)). No standalone licence grant has been recorded yet.
- **Demo scene (`apps/editor/public/demos/demo_1.json`)**: Example scene document referencing `/items/<slug>/model.glb` paths; no standalone content licence has been recorded yet, and referenced item models follow Section 4 above.
- **Documentation images & unit-test fixtures outside `apps/editor/public/`**: Architecture/wiki reference images (`docs/images/*`, `wiki/images/*`) accompany repository documentation, and minimal synthetic automated-test inputs (`fixtures/viewer-live/public/cube.gltf`, `packages/geometry-script/src/__fixtures__/blender/cabinet.glb`, and `packages/ifc-converter/tests/fixtures/*.ifc`) are repository test fixtures covered by [`LICENSE`](LICENSE) (distinct from the real-world sample BIM models restricted under [`apps/ifc-converter/public/test-ifc-files/README.md`](apps/ifc-converter/public/test-ifc-files/README.md)).

---

## Using Pascal packages in commercial or SaaS products

Published npm packages (`@pascal-app/core`, `@pascal-app/nodes`, `@pascal-app/viewer`, `@pascal-app/editor`, `@pascal-app/mcp`, `@pascal-app/ifc-converter`, `@pascal-app/geometry-script`) are MIT-licensed code packages and do **not** include `apps/editor/public/` inside their npm tarballs (only `@pascal-app/editor` embeds the OFL-1.1 PDF fonts listed in Section 2, while `@pascal-app/cli` downloads the full standalone web runtime archive when running `pascal editor`).

However, when unconfigured, `@pascal-app/viewer` resolves relative asset, icon, and sound URLs against `https://editor.pascal.app` ([`packages/viewer/src/lib/viewer-config.ts`](packages/viewer/src/lib/viewer-config.ts)), and `@pascal-app/editor`'s default item picker ([`packages/editor/src/components/ui/item-catalog/catalog-items.tsx`](packages/editor/src/components/ui/item-catalog/catalog-items.tsx)) references Pascal's public Supabase storage bucket.

If you embed `@pascal-app/viewer` or `@pascal-app/editor` in a commercial or SaaS product, configure all four asset origins at bootstrap (and supply your own item catalog when mounting `@pascal-app/editor`) so your host serves only assets you have licensed or authored:

```ts
import { configureViewer } from '@pascal-app/viewer'

configureViewer({
assetsBaseUrl: 'https://assets.example.com',
storageUrl: 'https://storage.example.com',
sfxBaseUrl: 'https://assets.example.com/audios/sfx',
iconsBaseUrl: 'https://assets.example.com/icons',
// Optional self-hosted Draco (Apache-2.0) and Basis Universal (Apache-2.0) decoders:
decoders: {
dracoPath: '/decoders/draco/',
basisPath: '/decoders/basis/',
},
})
```

> [!IMPORTANT]
> Setting `NEXT_PUBLIC_ASSETS_CDN_URL` and `NEXT_PUBLIC_SUPABASE_URL` in a Next.js host only configures the fallback `assetsBaseUrl` and `storageUrl` in [`getViewerConfig()`](packages/viewer/src/lib/viewer-config.ts). It does **not** redirect `sfxBaseUrl` (`https://editor.pascal.app/audios/sfx`), `iconsBaseUrl` (`https://editor.pascal.app/icons`), or the hardcoded storage URLs in `@pascal-app/editor`'s built-in `CATALOG_ITEMS`. Always pass explicit `sfxBaseUrl` and `iconsBaseUrl` values to `configureViewer(...)` (as [`apps/editor/lib/bootstrap.ts`](apps/editor/lib/bootstrap.ts) does) or avoid initializing `@pascal-app/viewer/sfx` and `@pascal-app/viewer/ui` against Pascal's default CDN.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,11 @@ runs in the browser, locally through its CLI, or self-hosted, and exposes the sa
agents over MCP.

**Is it free and open source?**
Yes. The editor, packages, CLI, and MCP server in this repository are MIT-licensed. Hosted
services at editor.pascal.app are separate from the open-source release and have their own
Yes. The source code for the editor, packages, CLI, and MCP server in this repository is
[MIT-licensed](LICENSE). Bundled 3D models, PBR textures, icons, fonts, HDRI, and sound effects
under `apps/editor/public` are **not** covered by the code's MIT licence unless noted otherwise;
see [ASSETS.md](ASSETS.md) for the licence, source, and commercial-use status of each asset group.
Hosted services at editor.pascal.app are separate from the open-source release and have their own
account terms.

**Does it work offline?**
Expand Down
6 changes: 6 additions & 0 deletions apps/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,9 @@ pnpm dev
| `packages/viewer/src/components/viewer/` | Main Viewer component |
| `apps/editor/components/tools/` | Editor tools |
| `apps/editor/store/` | Editor-specific state |

---

## Bundled Static Assets (`public/`)

Static assets under `apps/editor/public/` (3D item GLBs, KTX2/WebP/JPG/PNG PBR materials, UI icons, HDRI, fonts, demo scenes, and sound effects) have separate licence and provenance terms and are **not** covered as a blanket group by the repository's MIT code licence. See [`ASSETS.md`](../../ASSETS.md) at the repository root before redistributing or reusing bundled assets.
Loading
Loading