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

hallucase

v0.1.1

Published

The Legal AI Hallucination Registry — track, reproduce, and prevent legal AI hallucinations

Downloads

251

Readme

HalluCase — The Legal AI Hallucination Registry

A living CVE-style registry for tracking, reproducing, and preventing hallucinations in legal AI outputs.

CI npm version License


The Problem

In 2025, 729+ documented incidents of AI hallucinations in legal contexts were reported. These incidents resulted in:

  • $31K+ in fines for citing non-existent cases
  • ABA sanctions against attorneys who submitted AI-hallucinated briefs
  • Breached contracts containing fabricated clauses
  • Erroneous legal opinions based on hallucinated precedents

HalluCase exists to systematically track these incidents so the legal profession can learn from them, build detection tooling, and pressure AI providers to fix the underlying issues.


Quick Start

# Start the API server
npx hallucase serve

# Or clone and run from source
git clone https://github.com/tensflare/hallucase.git
cd hallucase
npm install
npm run serve

The API will be available at http://localhost:3457.


CLI Usage

# Search the registry
hallucase search --query "fake citation" --severity critical

# Get a specific report
hallucase get HC-000001

# Submit a new report (interactive)
hallucase submit

# Submit from JSON
hallucase submit --file report.json

# View registry statistics
hallucase stats

# Import from external sources (CSV/JSON)
hallucase import data/charlotin-export.csv

API Overview

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /api/reports | Search/filter reports | | GET | /api/reports/:id | Get report by UUID or HC-ID | | POST | /api/reports | Create a new report | | PUT | /api/reports/:id | Update a report | | DELETE | /api/reports/:id | Delete a report | | GET | /api/stats | Registry statistics | | GET | /api/schema | Schema definition | | GET | /health | Health check |


Report Schema

Each report receives a unique identifier in the format:

HC-XXXXXX — where XXXXXX is a zero-padded sequential number.

Core Fields

| Field | Type | Required | Description | |-------|------|----------|-------------| | id | UUID | Yes | Unique identifier | | hc_id | HC-XXXXXX | Yes | Human-readable ID | | title | string | Yes | Concise summary (5-200 chars) | | description | string | Yes | Detailed description (min 20 chars) | | hallucination_type | enum | Yes | Category of hallucination | | severity | enum | Yes | Impact level | | domain | string | Yes | Legal domain | | hallucinated_output | string | Yes | What the AI produced | | expected_correct_output | string | Yes | What should have been produced |

Hallucination Types

  • fake_citation — Non-existent case or document citations
  • misquoted_statute — Incorrectly cited statutes or regulations
  • fabricated_contract_clause — Made-up contract provisions
  • incorrect_legal_standard — Wrong legal test or standard
  • fabricated_obligation — Non-existent legal obligations
  • misstated_jurisdiction_law — Incorrect statements about jurisdiction
  • incorrect_procedural_rule — Wrong court procedures
  • hallucinated_precedent — Fabricated case law precedents
  • other — Other types of hallucinations

Severity Levels

| Level | Meaning | |-------|---------| | critical | Would cause certain sanctions or adverse outcome | | high | Likely to cause material harm | | medium | Potentially misleading but less severe | | low | Minor inaccuracies | | info | Informational, no direct harm |


How to Contribute

We welcome contributions! Please see CONTRIBUTING.md for details.

  1. Fork the repository
  2. Create a feature branch
  3. Submit a Pull Request

License

Apache 2.0 — see LICENSE.

Built by Tensflare. Open infrastructure for trustworthy legal AI.