
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
react-shape-detect
Advanced tools

A React component integration with the Shape Detection API. Provides coordinate data and overlay capabilites(v0.2).
$ npm i react-shape-detect
import ShapeDetect from 'react-shape-detect';
const path = 'path-or-url-to-image';
const func = function(data) {
console.log('objects detected: ', data);
}
export default function App() {
return (
<ShapeDetect
image={path}
onRender={func}
options={{ type: 'face' }} />
);
}
string| required
Path to image - network or local.
function(data: any)| defaults to:(data) => void
Callback is executed with the onLoad event of the <img/> tag.
Returns coordinate data from matches on criteria defined in options object.
object
Detector type, custom Shape Detector API optionsv0.2, and HTML img tag attributes
{
"type": "face", // "barcode", "text"
"attributes": {
// any normal HTML img tag attributes ... see src/types/ for complete list
}
}
MIT © Sam Parsons
FAQs

The npm package react-shape-detect receives a total of 11 weekly downloads. As such, react-shape-detect popularity was classified as not popular.
We found that react-shape-detect 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
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.