Power Your Pym.js Previews with Pymviewer
You use Pym.js, right? Then I'm sure you've been in this situation — you've pushed your child code to S3, but the story meant to be its parent isn't quite ready yet. But there is an editor eager to get a head start on edits who wants to see your chart/map/table now.
You could just share the URL to the child page's HTML, but that doesn't work if it depends on a parent page to provide the width of its container to the child. You may have the ability to share the URL to a server on your computer running locally, but that depends on your computer not sleeping and being on the same network.
Our solution? The Pymviewer!
The Pymviewer will accept any HTML page that attempts to connect to a parent Pym.js instance. It also provides default breakpoints to test, in addition to a 100% width version for testing on mobile. (Yes — it’s also mobile friendly!)
Once you’ve submitted a page, check out your URL bar:
This is a shareable link! Send this to anyone you want to view your embed. Here’s the link to our example above.
Don’t worry — nothing that’s entered on this page is saved or stored. It doesn’t even have Google Analytics. You can check out the code on GitHub. Use our version, or fork it and make it your own!
http://graphics.texastribune.org/graphics/previewer/
— Ryan Murphy









