How to integrate popmenu in my application

Hey, what you’re looking for is this plugin: GitHub - bpmn-io/bpmn-js-create-append-anything: A create/append anything bpmn-js extension.
It adds an entry to the palette and the context pad that let’s you create any element directly.