Skip to content

birds-inc/scotuslink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

The Problem

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.

Design

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.

Contributing

Suggestions, contributions, and expertise are welcome! Please email any suggestions to scotuslink@gmail.com 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.

About

Small redirect service to allow for easy linking to Supreme Court opinions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages