Skip to content

Art library

Share one copy of the Quaternius CC0 models and their provenance between apps.

  • @fungi.computer/art-library
  • v0.0.1
  • MIT AND CC0-1.0

Fastest path

  1. Install

    Add it to your project with npm, pnpm, Yarn or Bun.

    TERMINAL
    npm install @fungi.computer/art-library three
  2. Locate 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"));