
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@socketsecurity/sdk
Advanced tools
Official SDK for Socket.dev - Programmatic access to security analysis, vulnerability scanning, and compliance monitoring for your software supply chain.
pnpm add @socketsecurity/sdk
import { SocketSdk } from '@socketsecurity/sdk'
const client = new SocketSdk('your-api-key', {
retries: 3, // Retry failed requests up to 3 times
retryDelay: 1000, // Start with 1s delay, exponential backoff
timeout: 30000, // 30 second timeout
})
// Check your quota
const quota = await client.getQuota()
if (quota.success) {
console.log(`Available quota: ${quota.data.quota} units`)
}
// Analyze a package
const result = await client.getScoreByNpmPackage('express', '4.18.0')
if (result.success) {
console.log(`Security Score: ${result.data.score}/100`)
}
// Batch analyze multiple packages
const batchResult = await client.batchPackageFetch({
components: [
{ purl: 'pkg:npm/express@4.18.0' },
{ purl: 'pkg:npm/react@18.0.0' }
]
})
batchPackageFetch() β’ batchPackageStream() β’ getIssuesByNpmPackage() β’ getScoreByNpmPackage()
createDependenciesSnapshot() β’ createOrgFullScan() β’ createScanFromFilepaths() β’ getScan() β’ getScanList() β’ getSupportedScanFiles()
getOrganizations() β’ createOrgRepo() β’ getOrgRepo() β’ getOrgRepoList() β’ updateOrgRepo() β’ deleteOrgRepo()
getOrgSecurityPolicy() β’ updateOrgSecurityPolicy() β’ getOrgLicensePolicy() β’ updateOrgLicensePolicy() β’ postSettings()
getOrgFullScanList() β’ getOrgFullScanMetadata() β’ getOrgFullScanBuffered() β’ streamOrgFullScan() β’ deleteOrgFullScan()
createOrgDiffScanFromIds() β’ getDiffScanById() β’ listOrgDiffScans() β’ deleteOrgDiffScan()
streamPatchesFromScan() β’ viewPatch()
exportCDX() β’ exportSPDX() β’ searchDependencies() β’ uploadManifestFiles()
createOrgRepoLabel() β’ getOrgRepoLabel() β’ getOrgRepoLabelList() β’ updateOrgRepoLabel() β’ deleteOrgRepoLabel()
getQuota() β’ getOrgAnalytics() β’ getRepoAnalytics() β’ getAuditLogEvents()
getAPITokens() β’ postAPIToken() β’ postAPITokensRotate() β’ postAPITokensRevoke() β’ postAPITokenUpdate()
getQuotaCost() β’ getRequiredPermissions() β’ calculateTotalQuotaCost() β’ hasQuotaForMethods() β’ getMethodsByQuotaCost() β’ getMethodsByPermissions() β’ getQuotaUsageSummary() β’ getAllMethodRequirements()
β Quota Management - Cost tiers: 0 units (free), 10 units (standard), 100 units (batch/uploads)
β Testing Utilities - Mock factories, fixtures, and type guards for SDK testing
MIT
1.11.1 - 2025-10-06
normalizeBaseUrl and quota utility functionsFAQs
SDK for the Socket API client
The npm package @socketsecurity/sdk receives a total of 609 weekly downloads. As such, @socketsecurity/sdk popularity was classified as not popular.
We found that @socketsecurity/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 2 open source maintainers 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
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Hereβs whatβs actually happening.