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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hrbrmstr/euvd

v0.1.2

Published

TypeScript client for the European Union Vulnerability Database (EUVD) API

Downloads

7

Readme

@hrbrmstr/euvd

TypeScript client for the European Union Vulnerability Database (EUVD) API.

Installation

npm install @hrbrmstr/euvd

or

yarn add @hrbrmstr/euvd

Usage

Basic Usage

import { EUVDClient } from '@hrbrmstr/euvd';

// Create a client with default options
const client = new EUVDClient();

// Get the latest vulnerabilities
async function getLatest() {
  try {
    const vulns = await client.getLatestVulnerabilities();
    console.log(vulns);
  } catch (error) {
    console.error('Error fetching latest vulnerabilities:', error);
  }
}

getLatest();

Custom Configuration

import { EUVDClient } from '@hrbrmstr/euvd';

// Create a client with custom options
const client = new EUVDClient({
  baseUrl: 'https://euvdservices.enisa.europa.eu', // This is the default
  timeout: 60000, // 60 seconds
  axiosConfig: {
    headers: {
      'User-Agent': 'My-EUVD-Client/1.0'
    }
  }
});

Query Vulnerabilities with Filters

import { EUVDClient } from '@hrbrmstr/euvd';

const client = new EUVDClient();

async function queryVulns() {
  try {
    // Find high severity vulnerabilities that are being exploited
    const result = await client.queryVulnerabilities({
      fromScore: 8,
      toScore: 10,
      exploited: true,
      size: 100,
      page: 0
    });
    
    console.log(`Found ${result.total} vulnerabilities`);
    console.log(result.items);
  } catch (error) {
    console.error('Error querying vulnerabilities:', error);
  }
}

queryVulns();

Get Specific Vulnerability by ID

import { EUVDClient } from '@hrbrmstr/euvd';

const client = new EUVDClient();

async function getVulnById() {
  try {
    // Get details for a CVE
    const vuln = await client.getVulnerabilityById('CVE-2025-24054');
    console.log(vuln);
    
    // Get details for a EUVD ID
    const euvdEntry = await client.getEUVDById('EUVD-2025-4893');
    console.log(euvdEntry);
  } catch (error) {
    console.error('Error fetching vulnerability:', error);
  }
}

getVulnById();

API Methods

The client provides the following methods:

  • getLatestVulnerabilities() - Get the latest vulnerabilities (max 8)
  • getLatestExploitedVulnerabilities() - Get the latest exploited vulnerabilities (max 8)
  • getLatestCriticalVulnerabilities() - Get the latest critical vulnerabilities (max 8)
  • queryVulnerabilities(params) - Query vulnerabilities with various filters (max 100 per request)
  • getEUVDById(id) - Get detailed information about a specific EUVD entry
  • getVulnerabilityById(id) - Get detailed information about a vulnerability by ID (e.g., CVE)
  • getAdvisoryById(id) - Get detailed information about an advisory by ID

Query Parameters

When using queryVulnerabilities(), you can provide the following parameters:

  • fromScore (0-10, e.g., fromScore=7.5)
  • toScore (0-10, e.g., toScore=10)
  • fromEpss (0-100, e.g., fromEpss=20)
  • toEpss (0-100, e.g., toEpss=90)
  • fromDate (YYYY-MM-DD, e.g., fromDate=2023-01-14)
  • toDate (YYYY-MM-DD, e.g., toDate=2025-01-14)
  • product (string, e.g., product=Windows)
  • vendor (string, e.g., vendor=Microsoft)
  • assigner (string, e.g., assigner=mitre)
  • exploited (true/false, e.g., exploited=true)
  • page (integer, starts at 0, e.g., page=2)
  • text (keywords, e.g., text=vulnerability)
  • size (integer, default 10, max 100, e.g., size=100)

License

MIT