CloudFlare Application Snippet + Worker

I’m in the process of developing a Cloudflare application, which is comprised of 2 components. The first is an HTML/JS/CSS snippet to be included on a single customer website page (ideally the admin page), and the second is a worker that I’d like to run on every single inbound request. What is the best pattern to achieve this?

I’m aware that the user can specify which pages to install the application on, which means that in the worst case I could create 2 applications. Is there a better way of doing this?

Thanks a lot,

Jack