
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@safelyx/api
Advanced tools
Safelyx API client
Safelyx API client for Deno, Node/NPM and browser. It has no dependencies.
You can find the API documentation at https://safelyx.com/safe-api.
It's simply making an HTTP request to the Safelyx API.
It provides types (and examples in JSDoc) for the results and for the parameters.
If the request to the API fails (HTTP error), it will throw an error, so you might want to wrap it in a try
/catch
block.
It has a method per API endpoint.
import safelyx from 'jsr:@safelyx/api@0.1.0'; // or import safelyx from 'https://deno.land/x/safelyx@0.1.0/mod.ts';
const checkResult = await safelyx.checkLink('https://example.com');
console.log(checkResult.result); // Outputs a safety score between 0 (unsafe) and 10 (safe). -1 if there was an error, -2 if there are no checks remaining.
npm install --save-exact @safelyx/api
const safelyx = require('@safelyx/api'); // or import safelyx from '@safelyx/api';
const checkResult = await safelyx.checkLink('https://example.com');
console.log(checkResult.result); // Outputs a safety score between 0 (unsafe) and 10 (safe). -1 if there was an error, -2 if there are no checks remaining.
Requires deno
.
make format
make test
After committing and pushing with a new version in deno.json
, just run make publish
.
FAQs
API client for Safelyx.
The npm package @safelyx/api receives a total of 0 weekly downloads. As such, @safelyx/api popularity was classified as not popular.
We found that @safelyx/api 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.