This library encapsulates the Web History API. It allows you to programmatically navigate back and forth and manipulate the history stack.
More information on History API - Web APIs | MDN (mozilla.org)