These packages are available as a package collection, usable in Xcode or SwiftPM.
A command line tool to switch the current input method by identifier for macOS.