New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@opencodereview/core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencodereview/core

Core detection engine for AI-generated code — hallucinated packages, phantom dependencies, stale APIs, security anti-patterns. Structural, embedding, and LLM scanning.

latest
Source
npmnpm
Version
2.1.3
Version published
Maintainers
1
Created
Source

@opencodereview/core

Core detection engine for Open Code Review

Installation

npm install @opencodereview/core

Usage

import { Scanner, DetectorRegistry } from '@opencodereview/core';

const scanner = new Scanner({
  sla: 'L2',
  ollamaUrl: 'http://localhost:11434'
});

const result = await scanner.scan('src/');
console.log(result.score, result.grade, result.issues);

API

Scanner

  • scan(path: string, options?: ScanOptions): Promise<ScanResult>
  • scanDiff(base: string, head: string): Promise<DiffResult>

Detectors

  • deep-hallucination - Detects AI hallucinated packages
  • stale-api - Detects deprecated APIs
  • security-pattern - Detects security vulnerabilities
  • logic-gap - Detects empty catches and logic gaps
  • over-engineering - Detects unnecessary complexity

License

BSL-1.1 - See LICENSE

Keywords

ai

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

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.

Install

Related posts