React Three Fiber, Threejs, Nextjs starter
See the codeA minimalist starter for NextJS, @react-three/fiber and Threejs.

This starter allows you to navigate seamlessly between pages with dynamic dom and/or canvas content without reloading or creating a new canvas every time. 3D components are usable anywhere in the dom. The events, dom, viewport, everything is synchronized!
Tailwind is the default style. styled-components (styled) are also available.
yarn create r3f-app next my-app
# yarn create r3f-app <next> my-app <tailwind|styled>? -ts?
# npx create-r3f-app next my-app
For typescript add the parameter -ts or --typescript:
yarn create r3f-app next my-app -ts
# npx create-r3f-app next my-app -ts
Thanks to tunnel-rat the starter can portal components between separate renderers. Anything rendered inside the <View/> component of the starter will be rendered in the 3D Context. For better performances it uses gl.scissor to cut the viewport into segments.
<div className='relative'>
<View orbit className='relative sm:h-48 sm:w-full'>
<Dog scale={2} />
// Some 3D components will be rendered here
</View>
</div>
yarn dev - Next devyarn analyze - Generate bundle-analyzeryarn lint - Audit code qualityyarn build - Next buildyarn start - Next startcreate-r3f-app β Command line tool to simplify the installation.threejs β A lightweight, 3D library with a default WebGL renderer.@react-three/fiber β A React renderer for Threejs on the web and react-native.@react-three/drei - Optional β useful helpers for react-three-fiber@react-three/a11y - Optional β Accessibility tools for React Three Fiberr3f-perf - Optional β Tool to easily monitor react threejs performances.git clone https://github.com/pmndrs/react-three-next
&& cd react-three-next && yarn install
1,552 followers Β· starred Jan 2024
435 followers Β· starred Apr 2022
254 followers Β· starred Apr 2021
50 followers Β· starred Jul 2021
React Three Fiber, Threejs, Nextjs starter
See the codeA minimalist starter for NextJS, @react-three/fiber and Threejs.

This starter allows you to navigate seamlessly between pages with dynamic dom and/or canvas content without reloading or creating a new canvas every time. 3D components are usable anywhere in the dom. The events, dom, viewport, everything is synchronized!
Tailwind is the default style. styled-components (styled) are also available.
yarn create r3f-app next my-app
# yarn create r3f-app <next> my-app <tailwind|styled>? -ts?
# npx create-r3f-app next my-app
For typescript add the parameter -ts or --typescript:
yarn create r3f-app next my-app -ts
# npx create-r3f-app next my-app -ts
Thanks to tunnel-rat the starter can portal components between separate renderers. Anything rendered inside the <View/> component of the starter will be rendered in the 3D Context. For better performances it uses gl.scissor to cut the viewport into segments.
<div className='relative'>
<View orbit className='relative sm:h-48 sm:w-full'>
<Dog scale={2} />
// Some 3D components will be rendered here
</View>
</div>
yarn dev - Next devyarn analyze - Generate bundle-analyzeryarn lint - Audit code qualityyarn build - Next buildyarn start - Next startcreate-r3f-app β Command line tool to simplify the installation.threejs β A lightweight, 3D library with a default WebGL renderer.@react-three/fiber β A React renderer for Threejs on the web and react-native.@react-three/drei - Optional β useful helpers for react-three-fiber@react-three/a11y - Optional β Accessibility tools for React Three Fiberr3f-perf - Optional β Tool to easily monitor react threejs performances.git clone https://github.com/pmndrs/react-three-next
&& cd react-three-next && yarn install
1,552 followers Β· starred Jan 2024
435 followers Β· starred Apr 2022
254 followers Β· starred Apr 2021
50 followers Β· starred Jul 2021