Support demo permalinks
rviscomi opened this issue · 0 comments
rviscomi commented
It could be useful to have a permanent link to specific capo.js results. I really like how the Lighthouse viewer uses GitHub gists as a storage layer, which completely absolves the LH developers of any data storage concerns (ownership, costs, legal).
There are a few use cases:
- An extension user wants to take a "snapshot" of the dynamic capo.js results to share with their development team.
- I want to showcase a few different validation features of capo.js by using preset HTML snippets
- A user wants to get a live look at the same URL periodically (URL persistence already exists)
If a gist ID is passed into the demo page, we should be able to read from the gist without an API. The contents could be added to the raw HTML field.