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

@opendpp/aeo

v0.1.2

Published

Authorised Economic Operator (AEO) lookup against the European Commission's official EOS aeo-retrieve web service, plus pure offline AEO helpers (ESM, Node >=26). From the OpenDPP Digital Product Passport service.

Readme

@opendpp/aeo

Authorised Economic Operator (AEO) lookup against the European Commission's official EOS aeo-retrieve web service — the authoritative source for EU AEO trusted-trader status — plus pure, zero-dependency offline helpers (ESM, Node ≥ 26). From the OpenDPP Digital Product Passport service.

Part of the OpenDPP open client surface (Apache-2.0). The hosted node — resolver, eIDAS sealing, did:web/status-list issuance, 15-year persistence — stays a service you call, not code you run. See opendpp-interop.

Why

AEO is the EU's trusted-trader status (UCC Art. 38): AEOC (customs simplifications), AEOS (security & safety), AEOF (combined). Confirming that the economic operator behind a product holds an AEO authorisation is a credible supply-chain due-diligence signal (EUDR / UFLPA / CSDDD) that complements operator identity (see the sibling @opendpp/eori).

The single authoritative source is the European Commission's EOS service — the machine equivalent of the interactive AEO consultation page. This package speaks to it directly — no third-party intermediary.

How the service works (important)

aeo-retrieve is a holder directory search, not an identifier validator. You search by holder name (substring), optionally filtered by issuing country and authorisation type (at least one of AEOC/AEOF/AEOS — defaults to all three), and it returns the matching authorisations. No match is a valid empty result, not an error.

Install

npm install @opendpp/aeo

Lookup (online, authoritative)

import { lookupAeo, hasAeoAuthorisation, lookupAeoBatch } from "@opendpp/aeo";

const result = await lookupAeo({ holderName: "BMW", issuingCountry: "DE" });
// {
//   query: { holderName: "BMW", issuingCountry: "DE", authorisationTypes: ["AEOC","AEOF","AEOS"] },
//   found: true,
//   matches: [{
//     authorisationHolderName: "BMW M GmbH Gesellschaft für individuelle Automobile",
//     issuingCountry: "Germany",            // the service returns the full country NAME
//     competentCustomsAuthority: "DE007600",
//     authorisationType: "AEOF",            // AEOC | AEOF | AEOS
//     effectiveDate: "17/02/2015",          // DD/MM/YYYY, as returned
//   }],
//   source: "ec-europa-eos",
//   requestDate: "2026-06-30",
//   checkedAt: "2026-06-30T…Z",
// }

await hasAeoAuthorisation("Siemens");                 // true / false
await lookupAeo({ holderName: "Acme", authorisationType: "AEOF" });  // filter to combined only

// Several holders, one request each (paced), one result per query, in order:
await lookupAeoBatch([{ holderName: "Acme" }, { holderName: "Globex" }]);

A holder-name substring can match several authorisations, so matches is a list. Use issuingCountry / authorisationType to narrow it.

Injectable transport (SSRF-safe servers)

Zero runtime dependencies; uses the global fetch by default. A server can inject its own transport (e.g. an SSRF-guarded fetch — the endpoint host is fixed to ec.europa.eu):

import { lookupAeo, type AeoTransport } from "@opendpp/aeo";

const guarded: AeoTransport = async (url, req) => {
  const res = await safeFetch(url, { method: req.method, headers: req.headers, body: req.body, signal: req.signal });
  return { status: res.status, text: () => res.text() };
};

await lookupAeo({ holderName: "BMW" }, { transport: guarded, timeoutMs: 10_000 });

Low-level building blocks are exported too — buildRetrieveAeoEnvelope(criteria) and parseRetrieveAeoResponse(xml).

Rate limiting (respects the EU cap, overridable)

The EOS service caps each source at 100 requests / second. A process-wide limiter enforces that by default (a single call never waits; bursts spread out). The EU tech team grants higher/uncapped limits on request, so it's overridable:

import { lookupAeo, setDefaultAeoRateLimit, createAeoRateLimiter } from "@opendpp/aeo";

setDefaultAeoRateLimit(500);                  // global — set once at startup (null disables)
const fast = createAeoRateLimiter(500);       // or per call (create ONCE, reuse)
await lookupAeo({ holderName: "BMW" }, { rateLimiter: fast });
await lookupAeo({ holderName: "BMW" }, { rateLimiter: null });  // disable for one call

The service also caps a request at 10 search criteria; this client sends one per request because the flat result list cannot be attributed back to individual criteria. The cap is per source — a horizontally scaled service still wants a shared/server-side limiter.

Offline helpers (pure)

import { AUTHORISATION_TYPES, isAuthorisationType, parseAeoNumber } from "@opendpp/aeo";

AUTHORISATION_TYPES;               // ["AEOC", "AEOF", "AEOS"]
isAuthorisationType("AEOF");       // true

parseAeoNumber("DE AEOF 00025/08");
// { countryCode: "DE", type: "AEOF", nationalNumber: "00025/08", validSyntax: true, ... }

parseAeoNumber is an offline convenience for recognising a number a user typed — the service is searched by holder name, not by this number (its responses do not echo the number back).

Notes

  • This package formats requests to, and parses responses from, the European Commission EOS service. Opendpp UAB is not affiliated with, nor endorsed by, the European Commission; the service is provided under the Commission's own terms.

The OpenDPP toolkit

Open (Apache-2.0) client libraries for building against the hosted OpenDPP node — install only the ones you need:

| Package | What it does | |---|---| | @opendpp/gs1 | GS1 Digital Link URIs + GTIN/GLN/GRAI check-digit validate & mint | | @opendpp/csv | Map spreadsheet / ERP rows to the passport-create shape for bulk import | | @opendpp/testdata | Deterministic, category-valid sample passports + EPCIS event chains | | @opendpp/webhooks | Webhook event types + a constant-time HMAC-SHA256 verifier | | @opendpp/eori | Validate EU EORI numbers against the Commission's EOS service | | @opendpp/aeo | Look up AEO trusted-trader status against the EOS service | | @opendpp/vies | Validate EU VAT numbers against the Commission's VIES service | | @opendpp/sdk | Generated TypeScript client for the full public API |

They integrate with the hosted node — where passports are validated against ESPR category rules, cryptographically sealed, resolved via GS1 Digital Link, and kept for the 15-year retention window. Start building: opendpp-node.eu · API reference · developer hub.

License

Apache-2.0 © Opendpp UAB. See NOTICE. "OpenDPP" is a trademark of Opendpp UAB; this license grants no rights to the marks.