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/irish-law-mcp

v1.0.3

Published

Irish Law MCP — English legislation via Model Context Protocol

Readme

Ireland Law MCP

Production-oriented MCP server for Irish legislation, including:

  • Full-text statute/provision search
  • Provision retrieval and citation helpers
  • EU cross-reference endpoints
  • Golden contract tests
  • Scheduled freshness/drift automation
  • Vercel streamable HTTP deployment

Requirements

  • Node.js 18+ (Node 20/22 recommended)
  • npm

Local Setup

npm ci
npm run typecheck
npm run build
npm test

Run as stdio MCP server:

npm run dev

Use an explicit DB path:

IRISH_LAW_DB_PATH=/absolute/path/to/database.db npm run dev

Database Pipeline

Fetch/refresh source material:

npm run ingest

Build SQLite from seed files:

npm run build:db

EU cross-reference seed data is loaded from:

data/source/eu-references.json

Testing

Run all tests:

npm test

Run contract/golden suite only:

npm run test:contract

Nightly contract mode (enables upstream assertions):

CONTRACT_MODE=nightly npm run test:contract

Drift and Freshness Automation

Check upstream data freshness:

npm run check-updates

Detect drift against upstream hash anchors:

npm run drift:detect

Golden hash anchors are defined in fixtures/golden-hashes.json. Initialize or refresh hashes:

npm run golden:refresh-hashes

Vercel Deployment

This repo deploys /mcp (Streamable HTTP), /health, and /version.

For GitHub Actions deployment, configure repository secrets:

  • VERCEL_TOKEN
  • VERCEL_ORG_ID
  • VERCEL_PROJECT_ID

Deployment workflow:

  • .github/workflows/vercel-deploy.yml

Vercel build fetches data/database.db.gz from the GitHub release matching package version (via scripts/download-db.sh).

GitHub Workflows

  • ci.yml: build, tests, coverage, contract tests, scheduled nightly contract mode
  • check-updates.yml: daily freshness check + issue creation on detected updates
  • drift-detect.yml: nightly drift detection + issue creation on hash mismatch
  • vercel-deploy.yml: production deploy (when Vercel secrets are set)