It really depends whats the use case. There are a lot more efficient ways to run Chrome than usus is running it.

If speed is a concern, then usus should export an interface that allows to spin-up Chrome and re-use the same instance for multiple renderings. See this issue https://github.com/gajus/usus/issues/9.

If the sole intent is rendering of the page, then I recommend having a look at https://github.com/gwuhaolin/chrome-render. It provides a lower-level abstraction.

Otherwise, please contribute your use case to the usus issue thread and I will work with you to define an API.

Written by

Software architect, startup adviser. Editor of https://medium.com/applaudience. Founder of https://go2cinema.com.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store