Show HN: Kajero – Interactive JavaScript notebooks(joelotter.com) |
Show HN: Kajero – Interactive JavaScript notebooks(joelotter.com) |
I think it has potential for use as a way to write documentation for JS libraries, so being able to use arbitrary packages is certainly something I'd like to add. :)
One thing we are both doing is relying heavily on icons to indicate the different kinds of blocks that can be added. To make the role of each icon more apparent, I added a tooltip on hover. This may be useful here as well, e.g. for the code blocks there is an icon that cycles between fa-refresh and fa-users that I didn't immediately understand.
Thanks again for this fantastic contribution!
If you save it as an HTML file you can obviously add your own client-side JS. Node packages are a ways off right now though - would need to think about how to do it as it's all client-side.
In addition, it might be cool to have in-line substitution of data. For example, in your analytics notebook[0], I noticed you referenced the number in text afterwards, but if Kajero was pulling from a live data source, it'd be neat to do something like this:
Predictably, most came from the US ({{data.analytics[0]}}). There were also a lot ({{data.analytics[1]}}) from the UK - this is probably mainly due to it being posted on my Facebook page, with these hits being from friends rather than internet randoms.
[0]: http://www.joelotter.com/kajero/?id=3dfe6ba41741626a95b3a717...Combine that with 'hidden' code blocks and there could be some interesting territory here for non-technical hobbyist data display stuff, like RPG character sheets.
A link to installation instructions would be nice.
It's not visible if no changes have been made (if the consensus is that's a bad idea I'm happy to change it).
The JSPM CDN could also provide a way to load transpilers like Babel, Traceur, Closure, and Typescript.