This example uses bpmn-js to implement a simple viewer for BPMN 2.0 process diagrams that can be loaded via their URL.
The demo includes the pre-packaged BPMN viewer. It allows the user to input a url to fetch a process diagram from.
Make sure you serve the application via a web server (nginx, apache, embedded) and ensure that the diagrams you want to access are either on the same server or CORS enabled.
Download and open the example HTML page.