rviscomi/capo.js

capo.js web app client

rviscomi opened this issue · 2 comments

The default behavior of capo.js is to output logs to the console. The extension does that plus visualizing the color bar in HTML.

Create a new client type that outputs both the color bar and logs in HTML. We can embed that in the documentation site to enable users to interactively paste static HTML snippets and see how it would be evaluated. With some HTML presets, we can also use it to demo some of the script's capabilities.

With a storage layer, it could also be possible to create a permalink for users to share around or revisit later. Similar to the Lighthouse viewer, which relies on the users' own Gists for storage.

Update: The demo page is live and it takes HTML snippets or a URL. It logs to the console but the plumbing is in place to be able to write to the DOM instead, just need to emulate the console methods. Will create separate issues for that and storage.