This project is a Cloudflare Worker that ingests Webhooks alerts from CourtListener, formats them for Slack, and then resends them to Slack. The Free Law Project's CourtListener is a great resource to many and has a Webhook service where it'll send you updates to cases, dockets, and more. Sadly, the Webhooks are not formatted for Slack by default. While I think the Free Law Project does great things for the legal community and beyond, I, nor this project, is affiliated, endorsed, or otherwise connected to the Free Law Project.
- Copy the
courtlistener-slack.js
file contents to a blank Worker Quick Edit file. - Edit the Slack URL to be your Slack webhook URL.
- Set flags:
You can change
showRawPayload
to append a code block of the incoming webhook for troubleshooting. You can changeshowWebhookMetadata
to append the Webhook metadata CourtListener includes with each call for troubleshooting. - Set routes and triggers for the Worker to work.
- Protect your worker by only allowing connections from the CourtListener-specified IPs.