Skip to content

model-browser is a command line tool available on npm, for browsing local 3D models via a web browser. It currently only supports GLB files.

License

Notifications You must be signed in to change notification settings

brianpeiris/model-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

model-browser npm badge

model-browser is a command line tool for browsing local 3D models via a web browser. It currently only supports GLB files.

Installation and Usage

$ npm install -g model-browser
$ model-browser

OR

$ npx model-browser

model-browser [files..]

Positionals:
  files  Path to a directory containing models you want to browse, or a
         list of file paths. Files can also be piped in.

Options:
  -h, --help                                                      [boolean]
  -v, --version                                                   [boolean]
  -p, --port             Port to run the model-browser server on.
                                                   [number] [default: auto]
  -f, --flip             Whether models should be flipped.
                                                 [boolean] [default: false]
  -l, --linear           Whether models should be rendered using linear
                         encoding. The default is sRGB encoding.
                                                 [boolean] [default: false]
  -r, --recursive        Whether files should be listed recursively, if
                         [files] is a directory. [boolean] [default: false]
  -o, --open             Whether model-browser should automatically open
                         your browser. Disable this behavior with
                         --no-open.               [boolean] [default: true]
  -c, --allow-cors       A comma-separated list of origins to allow
                         requests from. Can also be set to '*', but you
                         should understand the security implications first.
                                                                   [string]
  -t, --timeout-minutes  Kill the server if it hasn't received a request in
                         this many minutes. The server will remain running
                         as long as you have model-browser open in a
                         browser tab. Set this to 0 to disable the timeout.
                                                     [number] [default: 15]

A screenshot of model-browser

About

model-browser is a command line tool available on npm, for browsing local 3D models via a web browser. It currently only supports GLB files.

Topics

Resources

License

Stars

Watchers

Forks