Top 3 otg open source projects

rasp vusb
This repo explains how to turn your Raspberry Pi Zero into USB Keyboard and Mouse. Also provides sample code and binaries to control them.
Raspberry-MIDI-Controller
A python script that sends MIDI signals from the Raspberry (client) to a Computer (host)
pi400kb
Raw HID keyboard forwarder to turn the Pi 400 into a USB keyboard
1-3 of 3 otg projects