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

@robotixai/lexius-fetcher

v0.2.0

Published

EUR-Lex CELLAR regulation fetcher + deterministic extractor for Lexius

Readme

@robotixai/lexius-fetcher

EUR-Lex CELLAR fetcher + deterministic extractor for the Lexius compliance platform. Fetches verbatim regulation text from the Publications Office and extracts typed facts (fine amounts, percentages, dates, cross-references, shall-clauses).

Quick Start

# 1. Start the database
docker run -d -p 5432:5432 \
  -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
  -e POSTGRES_DB=$POSTGRES_DB \
  -e POSTGRES_USER=$POSTGRES_USER \
  robotixai/lexius-db
export DATABASE_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB

# 2. Fetch EU AI Act (articles + annexes + extract facts)
npx @robotixai/lexius-fetcher ingest --celex 32024R1689 --legislation eu-ai-act

# 3. Fetch DORA
npx @robotixai/lexius-fetcher ingest --celex 32022R2554 --legislation dora

Commands

ingest — Fetch + extract in one pass

npx @robotixai/lexius-fetcher ingest \
  --celex 32024R1689 \
  --legislation eu-ai-act

Fetches verbatim XHTML from EUR-Lex CELLAR, parses articles + annexes, writes to the articles table as AUTHORITATIVE, then runs the deterministic extractor to populate article_extracts.

Options:

  • --celex <id> — CELEX number (e.g., 32024R1689 for EU AI Act)
  • --legislation <id> — Legislation ID in the database
  • --dry-run — Parse but don't write
  • --no-extract — Skip the extractor pass

extract — Run extractor on existing articles

npx @robotixai/lexius-fetcher extract --legislation eu-ai-act
npx @robotixai/lexius-fetcher extract --article eu-ai-act-art-99

backfill-derivation — Auto-populate derivedFrom

# See what would change
npx @robotixai/lexius-fetcher backfill-derivation --legislation eu-ai-act

# Apply
npx @robotixai/lexius-fetcher backfill-derivation --legislation eu-ai-act --apply

Uses article cross-reference extracts to propose derivedFrom additions on curated obligations, FAQ, and penalties.

What it extracts

| Extract type | Example | Source | |---|---|---| | fine_amount_eur | EUR 35,000,000 | Art. 99(3) | | turnover_percentage | 7% | Art. 99(3) | | date | 2 August 2026 | Art. 113 | | article_cross_ref | "referred to in Article 5" | Throughout | | annex_cross_ref | "Annex III" | Throughout | | shall_clause | "providers shall establish..." | Throughout |

All extracts are AUTHORITATIVE — deterministic regex parsing, no LLM.

Database

Requires a PostgreSQL database with the Lexius schema. Fastest setup:

docker run -d -p 5432:5432 \
  -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
  -e POSTGRES_DB=$POSTGRES_DB \
  -e POSTGRES_USER=$POSTGRES_USER \
  robotixai/lexius-db

Links

License

MIT