Whether you agree with putting a basemap gallery widget into your web mapping application or not, it is one of the most common tasks web developers are asked to perform. At some point in developing spatial web applications you will likely be asked to do this. Fortunately, many APIs come with some type of widget and make this task fairly trivial. The ESRI JavaScript API has had a basemap gallery widget since the early days but new vector basemaps have increased it's relevance as of late. As such, our applications had a requirement to take all of the latest default basemaps within the JSAPI (which include some vector basemaps) and put them into the gallery.