Catalog npm
PACKAGE EXPLORERView in registry

3d-configurator

npm

mashroom 3d configurator

Versions collected26
Direct dependencies53From release 0.8.1
Last observed20 Oct, 19:34 UTC

README

Current package documentation

Mashroom 3D Configurator

Overview

This library provides a 3D configurator component for React applications, built using @react-three/fiber and three.js. The main component, GLBViewer, allows you to load and customize GLB models interactively.

Installation

To use this library in your project, you need to install it along with its peer dependencies.

npm install mash-3d-configurator
npm install react@^19.0.0 react-dom@^19.0.0

Usage

Here is an example of how to use the GLBViewer component in your React application:

import React from 'react';
import { GLBViewer } from 'mash-3d-configurator';

function App() {
  return (
    <div className="App">
      <GLBViewer glbUrl="https://modelviewer.dev/shared-assets/models/NeilArmstrong.glb" materialDefinitions={materialDefinitions} />
    </div>
  );
}

export default App;

GLBViewer Component

The GLBViewer component allows you to load and customize a GLB model.

Props

  • glbUrl: The URL of the GLB model to load.
  • materialDefinitions: JSON array for materials.

Customization

The GLBViewer component provides an interface to select and customize parts of the model. You can select different parts and change their materials interactively.

Development

To run the test environment for development:

npm install
npm run build:lib:watch
npm run dev:test

To run Storybook:

npm run dev:storybook

To build Storybook:

npm run build:storybook

License

This project is licensed under the MIT License.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 26

Collected releases
VersionPublishedDirect dependenciesOpen version
0.8.1Registry latest28 Apr 202553
0.8.028 Apr 202553
0.7.619 Apr 202550
0.7.518 Apr 202549
0.7.418 Apr 202549
0.7.317 Apr 202549
0.7.217 Apr 202549
0.7.116 Apr 202547
0.6.315 Apr 202547
0.6.215 Apr 202550
0.6.115 Apr 202550
0.5.914 Apr 202550
0.5.814 Apr 202550
0.5.714 Apr 202550
0.5.614 Apr 202550
0.5.514 Apr 202549
0.5.414 Apr 202549
0.5.314 Apr 202548
0.5.214 Apr 202548
0.5.114 Apr 202548

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:880ad9ac51321203eb6cc5b5577e00323793dc54a6452ce03de73e5689a2d88e