npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sayduck/viewer-threejs

v3.5.7-pre-2

Published

### Currently based on Three.js and glTF 2.0.

Downloads

26

Readme

Sayduck's static 3D viewer app.

Currently based on Three.js and glTF 2.0.

Development Setup

Make sure you have nodejs installed

NPM

  1. Ask a developer to invite you to the all packages access team on sayduck npm.
  2. Create a new access token and copy it.
  3. Export a path variable in the form of NPM_AUTH_TOKEN=<token> from your shell. (Replace with the token you got in step 2)
  4. source your shell config e.g source ~/.zshrc

App

  1. Add a .npmrc to the root of the project directory, and paste
//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
  1. Create a .env file and add these values
PUBLIC_URL=http://static.sayduck.com/2021.04.23.3d_viewer_comparison/
REACT_APP_ENVIRONMENT=development
REACT_APP_HOSTNAME=dvpt-xx-api.sayduck.io
REACT_APP_API_URL=https://dvpt-fs-cable.ngrok.io
REACT_APP_API_SUBSCRIPTION_URL=wss://dvpt-xx-api.sayduck.io/cable
REACT_APP_GA_TRACKING_ID=UA-126878791-3
REACT_APP_SENTRY_DSN=https://[email protected]/1293641
REACT_APP_CONFIGURATOR_PICKER_URL=https://staging-configurator-picker.sayduck.com
  1. Substitute xx for the initials you chose during setup of https://github.com/Sayduck/sayduck-api-rails
  2. Run npm install
  3. Run npm start

Deploying the viewer:

Pre-requirement

  1. Install Pip
  • $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  • $ (sudo) python get-pip.py
  1. Install & configure AWS CLI
  • $ sudo pip install awscli ( might need $ sudo pip install awscli --ignore-installed six on macOS. Also maybe $ sudo pip install nose,sudo pip install tornado )
  • Configure AWS
$ aws configure
AWS Access Key ID: [YOUR-ACCESS-KEY-ID]
AWS Secret Access Key: [YOUR-ACCESS-KEY-SECRET]
Default region name [None]: us-east-1
Default output format [None]: json

Deploying

Just run

  • npm run staging-deploy or
  • npm run deploy