npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ediq

v2.0.0

Published

Official JavaScript/TypeScript client for Ediq AI Detection API - Education & HR modes. Detect AI-generated content with 96% accuracy.

Readme

Ediq - AI Detection SDK

Official JavaScript/TypeScript client for Ediq AI Detection API by Wyzcon.

Detect AI-generated content in educational documents (essays, assignments) and HR documents (resumes, cover letters, LinkedIn profiles) with 96% accuracy.

Installation

npm install ediq

Or via CDN:

<script type="module">
  import Ediq from 'https://unpkg.com/[email protected]/ediq.js';
</script>

Quick Start

import Ediq from 'ediq';

const client = new Ediq('wyz_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

// Education: Detect AI in student essays
const result = await client.detectEdu('Student essay text...');
console.log(`AI Probability: ${result.probability}%`);

// HR: Detect AI in resumes
const result = await client.detectHR('Resume text...', { context: 'resume' });
console.log(`AI Probability: ${result.probability}%`);

Get Your API Key

  1. Sign up at wyzcon.com
  2. Get your free API key
  3. Start detecting AI content

Two Detection Modes

🎓 Education Mode

For essays, assignments, and student work. Supports student baselines for personalized detection.

💼 HR Mode

For resumes, cover letters, and LinkedIn profiles. Optimized for professional document patterns.

Features

  • 96% accuracy on 10,000+ tested documents
  • 9-layer detection system
  • Student baselines - Protect good writers (Education)
  • HR context awareness - Resume, cover letter, LinkedIn (HR)
  • File upload support - PDF, DOCX, TXT
  • Image OCR - Handwritten & typed text
  • TypeScript support - Full type definitions
  • Works everywhere - Node.js & Browser

Education Mode Examples

Basic Education Detection

import Ediq from 'ediq';

const client = new Ediq('your_api_key');

// Analyze student essay
const result = await client.detectEdu('The importance of renewable energy...');
console.log(`AI: ${result.probability}%`);
console.log(`Assessment: ${result.assessment}`);
console.log(`Mode: ${result.mode}`); // "education"

With Student Baseline

Compare against a student's verified previous work:

const result = await client.detectEdu('Current submission...', {
  studentId: 'john_doe',
  baseline: 'Previous authentic work...'
});

console.log(`AI: ${result.probability}%`);
console.log(`Baseline Similarity: ${result.baselineSimilarity}`);

Detect from File (Education)

// Browser
const file = document.querySelector('input[type="file"]').files[0];
const result = await client.detectEduFile(file);
console.log(`AI: ${result.probability}%`);

Detect from Image (Handwritten)

const image = document.querySelector('input[type="file"]').files[0];
const result = await client.detectEduImage(image, { handwritten: true });
console.log(`AI: ${result.probability}%`);

Formal Writing Mode

For academic papers and formal essays (reduces false positives):

const result = await client.detectEdu('Formal academic paper...', {
  formalMode: true
});

HR Mode Examples

Detect AI in Resume

import Ediq, { HRContextType } from 'ediq';

const client = new Ediq('your_api_key');

// Analyze resume text
const result = await client.detectHR(
  'Experienced software engineer with 5+ years...',
  { context: 'resume' } // or HRContextType.RESUME
);

console.log(`AI: ${result.probability}%`);
console.log(`Assessment: ${result.assessment}`);
console.log(`Mode: ${result.mode}`); // "hr"

Detect AI in Cover Letter

const result = await client.detectHR(
  'I am writing to express my interest...',
  { context: 'cover_letter' }
);
console.log(`AI: ${result.probability}%`);

Detect AI in LinkedIn Profile

const result = await client.detectHR(
  'Passionate technology leader driving innovation...',
  { context: 'linkedin_profile' }
);
console.log(`AI: ${result.probability}%`);

Detect from HR File

// Analyze resume PDF
const file = document.querySelector('input[type="file"]').files[0];
const result = await client.detectHRFile(file, { context: 'resume' });
console.log(`AI: ${result.probability}%`);

With Comprehensive Report

const result = await client.detectHR(resumeText, {
  context: 'resume',
  includeReport: true
});

console.log(result.report); // Detailed writing analysis

HR Context Types

| Context | Use For | |---------|---------| | resume | CV, resume documents | | cover_letter | Job application cover letters | | linkedin_profile | LinkedIn about/summary sections | | other | Other professional documents |

Check Usage

const usage = await client.usage();
console.log(`Used: ${usage.used}/${usage.limit}`);
console.log(`Remaining: ${usage.remaining}`);
console.log(`Tier: ${usage.tier}`);

DetectionResult Properties

| Property | Type | Description | |----------|------|-------------| | probability | number | AI probability (0-100) | | assessment | string | Category: likely_human, borderline, suspicious, likely_ai, highly_likely_ai | | confidence | number | Confidence score (0-100) | | wordCount | number | Words analyzed | | mode | string | Detection mode: "education" or "hr" | | scanId | number | Saved scan ID | | baselineSimilarity | number | Baseline match (Education only) | | hrContext | string | Document context (HR only) | | report | object | Full writing analysis (if requested) | | layers | object | Layer-by-layer breakdown |

Error Handling

import Ediq, { EdiqError, RateLimitError, AuthenticationError } from 'ediq';

const client = new Ediq('your_api_key');

try {
  const result = await client.detectEdu('Text...');
} catch (error) {
  if (error instanceof AuthenticationError) {
    console.log('Invalid API key');
  } else if (error instanceof RateLimitError) {
    console.log('Rate limit exceeded - wait and retry');
  } else if (error instanceof EdiqError) {
    console.log(`API error: ${error.message}`);
  }
}

TypeScript

Full TypeScript support with type definitions:

import Ediq, { DetectionResult, HRContextType } from 'ediq';

const client = new Ediq('your_api_key');

const result: DetectionResult = await client.detectHR(text, {
  context: HRContextType.RESUME
});

Migration from v1.x

The old methods still work but are deprecated:

// Old (still works, defaults to education mode)
const result = await client.detect('Text...');
const result = await client.detectFile(file);
const result = await client.detectImage(image);

// New (explicit mode selection)
const result = await client.detectEdu('Text...');
const result = await client.detectHR('Text...', { context: 'resume' });

Browser Usage

<!DOCTYPE html>
<html>
<head>
  <title>Ediq Detection</title>
</head>
<body>
  <textarea id="text"></textarea>
  <button onclick="detect()">Detect AI</button>
  <div id="result"></div>

  <script type="module">
    import Ediq from 'https://unpkg.com/[email protected]/ediq.js';

    window.detect = async function() {
      const client = new Ediq('your_api_key');
      const text = document.getElementById('text').value;
      
      const result = await client.detectEdu(text);
      document.getElementById('result').textContent = 
        `AI: ${result.probability}% (${result.assessment})`;
    };
  </script>
</body>
</html>

Documentation

Full documentation at docs.wyzcon.com

License

MIT License