
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Easily monitor the performances of your React-Three-Fiber application. r3f-perf.js is 6.23 KB and automatically removed in production. See [Dev and production build](#dev-and-production-build)
Easily monitor the performances of your React-Three-Fiber application. r3f-perf.js is 6.23 KB and automatically removed in production. See Dev and production build
yarn add --dev r3f-perf
headless?: false, // Without UI. See Headless section
showGraph?: true // show the graphs
colorBlind?: false // Color blind colors for accessibility
trackGPU?: true // show a graph of the GPU (Experimental, might not be relevant)
openByDefault?: false // show more informations by default
className?: false // override CSS class
position?: 'top-right'|'top-left'|'bottom-right'|'bottom-left' // override position, default is top-right
Simply add the the profiler component in your app
import { Canvas } from 'react-three-fiber';
import { Perf } from 'r3f-perf';
<Canvas>
<Perf />
</Canvas>;
Usage without interface : headless mode
import { Canvas } from 'react-three-fiber';
import { Perf, usePerf } from 'r3f-perf';
const PerfHook = () => {
const { gl, log } = usePerf();
console.log(gl, log);
return null;
};
export default function App() {
return (
<Canvas>
<Perf headless />
<PerfHook />
</Canvas>
);
}
The tool work with any server side rendering framework. You can try with Next and React-Three-Fiber using this starter : https://github.com/pmndrs/react-three-next
R3F-Perf is automatically removed from the production build based on the process.env.NODE_ENV
.
To render R3F-Perf even in production :
import { Perf } from 'r3f-perf/dist/r3f-perf.cjs.development.js';
You can also set the custom env variable process.env.R3F_PERF_SHOW_IN_PROD === 'SHOW'
FAQs
Easily monitor your ThreeJS performances.
The npm package r3f-perf receives a total of 10,629 weekly downloads. As such, r3f-perf popularity was classified as popular.
We found that r3f-perf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.