npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@defra/forms-engine-plugin

v4.5.1

Published

Defra forms engine

Readme

@defra/forms-engine-plugin

The @defra/forms-engine-plugin is a plugin for hapi used to serve GOV.UK-based form journeys.

It is designed to be embedded in the frontend of a digital service and provide a convenient, configuration driven approach to building forms that are aligned to GDS Design System guidelines.

Table of Contents

Demo of DXT

If you are within the Defra network, see a live demo.

If you aren't within the Defra network, see our example UI and run it locally.

Installation

See our getting started developer guide.

Documentation

DXT has a mix of configuration-driven and code-based features that developers can utilise.

See our documentation folder to learn more about the features of DXT.

Contributing

See our contribution guide.

Publishing the package

Our GitHub Actions workflow (publish.yml) is set up to make publishing a breeze, using semantic versioning and a variety of release strategies. Here's how you can make the most of it:

Semantic Versioning Control

  • Patch Versioning: This happens automatically whenever you merge code changes into main or any release branch.
  • Minor and Major Bumps: You can control these by making empty commits with specific hashtags:
    • Use #minor for a minor version bump.
    • Use #major for a major version bump.

Example Commands:

git commit --allow-empty -m "chore(release): #minor" # Minor bump
git commit --allow-empty -m "chore(release): #major" # Major bump

Major-Version Release Branches

  • Branch Naming: Stick to release/vX (like release/v1, release/v2).
  • Independent Versioning: Each branch has its own versioning and publishes to npm with a unique dist-tag (like 2x for release/v2).

Manual Workflow Triggers

  • Customizable Options: You can choose the type of version bump, specify custom npm tags, and use dry run mode for testing. Dry-run is enabled by default.
  • Special Releases: Perfect for beta releases or when you need to publish outside the usual process.

Workflow Triggers

  1. Standard Development Flow: Merging PRs to main automatically triggers a patch bump and publishes with the beta tag.
  2. Backporting: Cherry-pick fixes to release branches for patch bumps with specific tags (like 2x).
  3. Version Bumps: Use empty commits for minor or major bumps.
  4. Manual Releases: Trigger these manually for special cases like beta or release candidates.

Safety and Consistency

  • Build Process: Every publishing scenario includes a full build to ensure everything is in top shape, except for files like tests and lint rules.
  • Tagging Safety: We prevent overwriting the beta tag by enforcing custom tags for non-standard branches. The default is set to beta. For release branches, the tag will be picked up from the release branch itself.