
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
react-shape-detect
Advanced tools

A React component integration with the Shape Detection API. Provides coordinate data and overlay capabilites.
$ npm i react-shape-detect
import ShapeDetect from 'react-shape-detect';
const path = 'path-or-url-to-image';
const overlay = 'path-or-url-to-overlay';
const func = function(data) {
console.log('objects detected: ', data);
}
export default function App() {
return (
<ShapeDetect
image={path}
onRender={func}
options={{
type: 'face',
overlay: {
input: overlay
options: {
width: '70%'
}
}
}}
/>
);
}
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 options, and HTML img tag attributes
{
type?: string // 'barcode', 'text' // default 'face'
attributes?: React.CSSProperties,
resizeDebounce?: number // default 250(ms)
overlay?: {
input: string || ReactComponent,
options?: {
width?: string, // auto height or set height independently
height?: string,
offset?: { // in pixels
top?: number,
left?: number
}
}
}
}
MIT © Sam Parsons
FAQs

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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.