Skip to content

docs: document bundled asset licences, sources, and commercial use - #1366

Open
kruschdev wants to merge 1 commit into
pascalorg:mainfrom
kruschdev:docs/bundled-assets-licence
Open

kruschdev wants to merge 1 commit into
pascalorg:mainfrom
kruschdev:docs/bundled-assets-licence

Conversation

@kruschdev

@kruschdev kruschdev commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Addresses #1327.

I added ASSETS.md at the repository root and linked it from README.md, apps/editor/README.md, and packages/viewer/README.md so users and commercial integrators have one clear licence, provenance, and attribution reference for the static files under apps/editor/public/ (as well as remote defaults on editor.pascal.app and Pascal storage):

  • Verified open-licensed assets (commercial and SaaS use permitted): source code and runtime procedural geometry (MIT), apps/editor/public/hdri/venice_sunset_1k.hdr (CC0 1.0 from Poly Haven via @react-three/drei), bundled web/app/PDF fonts (Plus Jakarta Sans, Geist, Geist Mono, and Liberation Sans under SIL OFL 1.1), the 9 ffmpeg-synthesized UI/switch/turn sound cues from scripts/synth-turn-cues.ts and scripts/synth-viewer-cues.ts (MIT), procedural apps/editor/public/items/urinal/* outputs (MIT), and docs/media/next-demo/* recordings (CC BY 4.0).
  • Unverified bundled and hosted groups (marked outside the code's MIT licence pending an owner notice): remaining item models and thumbnails under apps/editor/public/items/<slug>/ and items/system/*, PBR material maps and swatches under apps/editor/public/material/ (.ktx2, .webp, .jpg, .png) and editor.pascal.app/material/*, recorded/DAW audio files under apps/editor/public/audios/**, UI icons under apps/editor/public/icons/** (cursor.svg, public/icons/spawn-point.svg), and apps/editor/public/demos/demo_1.json, alongside Pascal/Vercel brand trademark reservations and the existing test-ifc-files notice.
  • Commercial / self-hosted embedding guidance: documents how @pascal-app/viewer and @pascal-app/editor hosts override default asset, storage, sound, icon, and decoder origins with configureViewer(...), including the NEXT_PUBLIC_ASSETS_CDN_URL / NEXT_PUBLIC_SUPABASE_URL fallback boundary (sfxBaseUrl and iconsBaseUrl still require explicit configureViewer values).
  • Policy regression test: adds apps/editor/lib/bundled-assets-policy.test.ts to verify relative markdown links and GitHub heading anchors, npm-safe canonical links in packages/viewer/README.md, exact path coverage across apps/editor/public/, 9-file parity with scripts/synth-*.ts, empty maps on procedural MATERIAL_CATALOG presets, and getViewerConfig() env-var behavior.

(I used Addresses #1327 rather than Fixes #1327 so maintainers can choose whether to close #1327 when this notice lands or keep it open until owner licence decisions are recorded for the remaining bundled groups.)

How to test

  1. Run bun run --cwd apps/editor test and confirm all tests pass, including apps/editor/lib/bundled-assets-policy.test.ts and apps/editor/proxy.test.ts.
  2. Run bun run --cwd apps/editor check-types, bun run check, bun run skills:validate, and bun run check:render-bundle and confirm zero errors.
  3. Inspect ASSETS.md, README.md (FAQ), apps/editor/README.md, and packages/viewer/README.md (License) to verify all links and asset group descriptions.

Screenshots / screen recording

N/A - non-visual documentation and policy test change.

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

Note

Low Risk
Documentation and regression tests only; no runtime or licensing behavior changes in application code.

Overview
Adds root ASSETS.md as the canonical licence and provenance guide for static content under apps/editor/public/ and default editor.pascal.app / storage assets. It separates MIT/OFL/CC0/CC BY groups (code, procedural geometry, nine synthesized SFX, urinal, fonts, HDRI, next-demo media) from unverified bundles (item catalog, PBR materials, recorded audio, icons, demo scene) and documents trademark limits plus IFC test-fixture restrictions. The doc also explains commercial embedding: override all asset origins with configureViewer(...) and notes that NEXT_PUBLIC_ASSETS_CDN_URL alone does not retarget SFX or icons.

README FAQ, apps/editor/README, and packages/viewer/README (License) now point integrators at ASSETS.md instead of implying everything in the repo is MIT.

Adds bundled-assets-policy.test.ts to keep the notice honest over time: valid markdown links/anchors, full apps/editor/public/ coverage, sync with scripts/synth-*.ts SFX outputs, map-less MATERIAL_CATALOG claims, npm-safe viewer README URLs, and getViewerConfig() env vs explicit configureViewer behavior.

Reviewed by Cursor Bugbot for commit e37514e. Bugbot is set up for automated code reviews on this repo. Configure here.

…atus

Add ASSETS.md at the repository root and link it from README.md,
apps/editor/README.md, and packages/viewer/README.md to clarify how the
root MIT licence relates to static assets under apps/editor/public:

- Document verified open-licensed assets and commercial/SaaS permissions:
  Poly Haven venice_sunset_1k.hdr (CC0 1.0), Plus Jakarta Sans, Geist,
  Geist Mono, and Liberation Sans fonts (SIL OFL 1.1), the 9 ffmpeg-
  synthesized UI/switch/turn sound cues (MIT), procedural items/urinal
  outputs (MIT), and Pascal Next demo media (CC BY 4.0).
- Explicitly mark unverified bundled and hosted groups (remaining item
  models, KTX2/WebP/JPG/PNG PBR material textures, recorded/DAW sound
  cues and audio, UI icons, and demo_1.json) as not covered by the
  repository MIT licence pending an owner licence notice, alongside
  brand trademark reservations and test IFC restrictions.
- Detail how commercial and self-hosted @pascal-app/viewer and
  @pascal-app/editor hosts override default asset, storage, sound, icon,
  and decoder origins via configureViewer(), including the NEXT_PUBLIC_*
  fallback boundary for sfxBaseUrl and iconsBaseUrl.
- Add apps/editor/lib/bundled-assets-policy.test.ts to guard link and
  GitHub heading-slug resolution, npm-safe viewer README links, exact
  public/ folder and root-file boundaries, scripted SFX parity, map-less
  MATERIAL_CATALOG finishes, and getViewerConfig() env-var fallbacks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the licence and source of the bundled 3D assets (models, materials, HDRI, sounds)

1 participant