SCOTUSLink.com - Supreme Court Opinion URL Shortener
Envisioned by Orin Kerr to make it easier for lawyers, journalists and citizens to access Supreme Court opinion PDFs.
PDFs are available online of Supreme Court opinions, but finding a given Volume and Page can be challenging.
Opinions are available through 2004 (Vol. 542) at the Library of Congress site, indexed by page. Newer opinions are available at the SCOTUS site, but only in PDFs spanning the whole volume, so we prefer LoC when available.
Both sites use consistent URL formats for their PDFs, so this site provides a simple interface for templating in volume and page.
SCOTUSLink was designed as a lightweight, serverless URL redirector.
The site is an AWS API Gateway defined in a single AWS Cloudformation file, with the following resources:
- A Lambda function that templates volume and page into a URL
- An endpoint to return these URLs in 302 redirects
- An endpoint serving a standalone HTML page with inline CSS, Javascript and SVG logo
- An IAM execution role to enable Cloudwatch logging
- A Route53 hosted zone
In this way, we avoid any persisted resources, even images, so hosting costs are very, very low.
Thanks to Juan Moncada for the visual design, and his clever use of SVG in the logo.
Thanks also to Ryan Green for his article on implementing 302 redirects in API Gateway.
Suggestions, contributions, and expertise are welcome! Please email any suggestions to [email protected] or contact me on Twitter.
SCOTUSLink is released under the GNU Affero General Public License v3.0, which means you are free to use, copy, modify, share, and distribute this code, as long as any derivate works are also released under this license.