Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@danchitnis/react-fps-stats
Advanced tools
Forked from https://github.com/sebslomski/react-stats, inspired by https://github.com/mrdoob/stats.js.
import React from "react";
import { render } from "react-dom";
import FPSStats from "react-fps-stats";
const App = () => {
return (
<div>
<h2 style={{ marginTop: 60 }}>Minimal example using react-fps-stats</h2>
<FPSStats />
</div>
);
};
render(<App />, document.body);
Try it on CodeSandbox.
By default, the meter is fixed positioned in the top left of the screen. You can pass the optional props top
, right
, bottom
& left
to overrride that positioning. Each prop maps to the css values and can use either string or number format. top
and left
have values by default, so pass 'auto'
as their values if you want to use bottom
or right
values.
If you are only using this for development purpose and your users don't need to see it, you can consider using the Chrome Devtools FPS Meter.
This is a tiny library with little activity, no process, just reach out ;)
yarn build
v__
to create releasenpm publish
from dev host
FAQs
FPS Stats in React
The npm package @danchitnis/react-fps-stats receives a total of 2 weekly downloads. As such, @danchitnis/react-fps-stats popularity was classified as not popular.
We found that @danchitnis/react-fps-stats demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.