Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cra-template-react-three-fiber

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-react-three-fiber

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

create-react-app my3dapp --template=react-three-fiber

# or
create-react-app my3dapp --template=r3f

Why

  • Latest versions of everything
  • Works with codesandbox out of the box

Included libs

  • create-react-app 4

  • three.js

  • react-three-fiber v5 beta

  • drei

  • react-postprocessing

  • glsl-noise

  • react-spring v9

Misc

  • 🌟 create-react-app 4 alpha with fast refresh
  • 🌟 recommendend vsc extensions for working with glsl (How do I make glsl-lint work?)
  • 🌟 babel-glsl macro to compile glsl without touching the create-react-app config - 🐛 currently doesn't work in codesandbox -
  • draco binaries in public/draco-gltf/ (the default directory used by useGLTFLoader in drei)
  • example shader material to start playing
  • Scene setup with OrbitControls and React-PostProcessing

Dev stuff

  • eslint + prettier with husky & pretty-quick

How to use

Or just fork this repository 🤷‍♂️

GLSL Linter

You need to download and setup the glsl linter to make linting work in the shader files.

  • Download GLSL lang
  • extract the archive
  • navigate to /bin/
  • copy the glslangValidator executable to your preferred location eg. mv glslangValidator /usr/local/bin/glslangValidator

FAQs

Package last updated on 12 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc