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

@ansvar/luxembourg-law-mcp

v1.0.3

Published

Luxembourg Law MCP — French legislation via Model Context Protocol

Readme

Luxembourg Law MCP

Production-grade Luxembourg legislation MCP server with:

  • stdio transport for local MCP clients.
  • Streamable HTTP transport for Vercel/serverless deployment.
  • Golden contract tests and nightly drift detection anchors.
  • Automated update checks against Legilux.

Requirements

  • Node.js >=18
  • npm

Install

npm install

Build And Run

npm run build
npm start

Dev mode:

npm run dev

Database

Build the SQLite database from data/seed/*.json:

npm run build:db

Ingest from Legilux:

# Full discovery + ingestion
npm run ingest

# Only selected laws
npm run ingest -- --ids loi-1799-07-04-n1,loi-2002-08-02-n2

# Overwrite existing seed files
npm run ingest -- --ids loi-1799-07-04-n1 --force

Override DB path:

export LUXEMBOURG_LAW_DB_PATH=/absolute/path/to/database.db

Testing

Run full test suite:

npm test

Run golden contract tests:

npm run test:contract

Nightly-mode contract checks (includes network assertions):

CONTRACT_MODE=nightly npm run test:contract

Coverage:

npm run test:coverage

Drift Detection

Run upstream drift checks for configured anchors:

npm run drift:detect

Anchors are configured in fixtures/golden-hashes.json.

Update Checks

Compare local data with Legilux:

npm run check-updates

Machine-readable output:

npm run check-updates -- --json --output update-summary.json

Vercel Deployment

API handlers:

  • api/mcp.ts for MCP streamable HTTP (/mcp)
  • api/health.ts for health/version (/health, /version)

vercel.json config includes rewrites and packaged DB file.

GitHub Actions deployment workflow

The workflow .github/workflows/vercel-deploy.yml supports:

  • PR preview deploys
  • Production deploys on main

Required repository secrets:

  • VERCEL_TOKEN
  • VERCEL_ORG_ID
  • VERCEL_PROJECT_ID

GitHub Actions

  • ci.yml: build, tests, contract tests, coverage, typecheck.
  • check-updates.yml: daily freshness checks + issue management + optional auto-update.
  • drift-detect.yml: nightly drift checks with issue creation on mismatch.
  • vercel-deploy.yml: preview and production deployment to Vercel.

API Endpoints

  • GET /health: health payload
  • GET /version: version/capability payload
  • POST /mcp: streamable MCP endpoint

License

Apache-2.0