A place to publish reusable components/tools at MoJ. Please add your own in the appropriate section. If you don't see the appropriate section, please create one.
A form mixin that reports form errors as events to Google Analytics
https://github.com/ministryofjustice/django-form-error-reporting
Tools to support adding a Django-based service to Ministry of Justice's Incidence Response and Tuning
https://github.com/ministryofjustice/django-moj-irat
Feedback form that submits to Zendesk
https://github.com/ministryofjustice/django-zendesk-tickets
Adds GOV.UK templates, css and other components from GDS's packages
https://github.com/ministryofjustice/django-govuk-template
Allows Django forms to be output with the correct HTML to be styled by GOV.UK css (e.g. from django-govuk-template
)
https://github.com/ministryofjustice/django-govuk-forms
(DEPRECATED) Adds GovUK templates, css and other tools for Django based service
https://github.com/ministryofjustice/django-gov
Use the MoJ Rails 5 template to commission a licensed Rails 5 project with 100% SimpleCov coverage, RSpec, mutation testing, brakeman, rubocop, optional documentary comment scrubbing, a CircleCI configuration, etc.
Use the GOV.UK elements gem to pull GDS's govuk_elements stylesheets and javascript files into a Rails app.
You can use GOV.UK elements form builder helper methods to develop GOV.UK elements styled form applications in Rails.
Use the date field Rails plugin to add GOV.UK standard three-box date fields to forms.
Use the GOV.UK Payment Gateway API client gem to simplify building apps that need to accept payments using the GOV.UK Payment Gateway.
Use the GLiMR API client gem to simplify building apps that talk to the GLiMR case management system (in use in several UK tribunals).
Python package for loading bank holidays from GOV.UK: ministryofjustice/govuk-bank-holidays
Python package providing an API client for Postcode Service https://github.com/ministryofjustice/postcodeinfo-client-python
Python package for reading Open Register data curated by GDS: ministryofjustice/openregister-client
Ruby gem providing an API client for Postcode Service https://github.com/ministryofjustice/postcodeinfo-client-ruby
Ruby gem providing a client for the LAA Fee Calculator API. Use the LAA fee calculator client gem, hosted on Rubygems.org, to simplify calling the LAA Fee Calculator API. The API provides calculation of legal aid fees for advocates and litigators in criminal cases.
Ruby gem that prevents #to_json
calls on ASCII strings that have been incorrectly re-encoded from borking the calling application (mainly happens because of the UTF BOM-Byte Order Mark). https://github.com/ministryofjustice/string_scrubber
See the Front-end Guide
REST API for looking up a given UK Postcode and getting addresses, lat/long, and local authority info
Available from https://github.com/ministryofjustice/postcodeinfo
A pair of docker containers, and a docker compose file, that provides a REST(ish) interface to a ClamAV malware scanner service
Available from https://github.com/ministryofjustice/malware-scanner-service
Provides an instance of mailcatcher, listening for SMTP connections on port 1025 and UI connections on port 1080.
There is no authoritative mailcatcher container and existing containers vary wildly in size and are frequently not kept up-to-date. This is a very simple, small container that can be easily maintained within the MoJ.
Available from https://github.com/ministryofjustice/mailcatcher and https://hub.docker.com/r/ministryofjustice/mailcatcher/