It’s basically one JS file that’s tied to a URL that can include a wildcard. It takes whatever visitor request that comes in and returns data. That data could be a modified web page, or could be a fancy function such as an invoice generator:
This page has a bunch of Workers recipes if you scroll down a bit: