Art library
Share one copy of the Quaternius CC0 models and their provenance between apps.
Fastest path
Install
Add it to your project with npm, pnpm, Yarn or Bun.
TERMINAL npm install @fungi.computer/art-library threeLocate a model
Resolve a model inside a shipped pack; the URL follows where the package is installed.
home.ts /// <reference lib="es2023" />/// <reference lib="dom" />/// <reference lib="dom.iterable" />/// <reference lib="esnext.disposable" />import { packFile } from "@fungi.computer/art-library";const apple = packFile("food-a", "models/apple.glb");console.log(apple.pathname.endsWith("apple.glb"));