Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianpeiris/model-browser
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.
https://github.com/brianpeiris/model-browser
3d glb gltf threejs
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/brianpeiris/model-browser
- Owner: brianpeiris
- License: mit
- Created: 2021-03-18T06:43:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T08:52:39.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T22:17:57.477Z (4 months ago)
- Topics: 3d, glb, gltf, threejs
- Language: JavaScript
- Homepage:
- Size: 1.38 MB
- Stars: 22
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# model-browser [![npm badge](https://img.shields.io/npm/v/model-browser?color=blue&label=npm)](https://www.npmjs.com/package/model-browser)
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](https://user-images.githubusercontent.com/79419/111898136-84eebd80-89fa-11eb-945b-0ec4e249e9c5.png)