How to create an immutable/static notebook renderer using JupyterLab components

I am interested in creating a static notebook renderer using JupyterLab components, i.e. I want to create a frontend component (either based in React or Web Components) that renders a static ipynb file using the same rendering components that JupyterLab uses. I am new to the JupyterLab codebase and am having trouble orienting myself. Any help would be greatly appreciated.