Extract, resolve, and annotate legal citations from court opinions and legal documents. Zero dependencies. TypeScript native. 7KB gzipped. ✨ by @claude for @claude ✨
npm install eyecite-tsPaste legal text to extract citations instantly
Case citations, statutes, journals, neutral citations, public laws, and federal register.
Automatic detection and grouping of comma-separated citations sharing parentheticals.
Id./Ibid., supra, and short-form case citations resolved to their full antecedents.
Comprehensive reporter database with variant matching and confidence scoring.
Optimized exports with lazy-loaded reporter data. 7KB gzipped core bundle.
Discriminated unions, conditional types, type guards, and full IntelliSense support.
A streamlined 4-stage pipeline transforms raw legal text into structured, linked citations with full metadata.
No runtime dependencies. The entire pipeline is self-contained, resulting in a 7KB gzipped core bundle that's perfect for browser and Node.js environments.
Built with TypeScript from the ground up. Discriminated unions, conditional types, and type guards ensure compile-time safety at every stage of the pipeline.
All spans track both cleaned and original text offsets via TransformationMap, enabling precise annotation and modification of the source document.
Reporter database (86.5 KB) is lazy-loaded only when validation is enabled. Core extraction works without loading any external data files.