Ask HN: Review My Library, Tempest (code.google.com)
I wrote Tempest to reliably generate image heatmaps/clickmaps in multiple languages with the same or similar API.
I also hate compiling dependencies, so each implementation is done purely in its targeted language instead of the common practice of implementing in C with language-specific bindings. Clearly, this has its own pros and cons.
I know it's far from perfect (it's still in beta), but I'd welcome any suggestions or constructive criticism from the HN community.
24 comments
[ 3.5 ms ] story [ 53.6 ms ] threadhttp://projects.digitalflophouse.com/tempest/example
Maybe move the Coordinates box right under the image and put some text like "Please Click Above To Generate Coordinates"
First thing I did was quickly scan the page and click "Render Heat-Map" button which threw up a php error.
I know it should be obvious that you should click image, but that text was hidden one of the paragraphs.
One of my most significant criteria for using a library is its API and documentation. Maybe I'm not looking in the right places, but I had trouble finding API.txt in your repo; consider including a link to that from your project page. Also, it would be helpful if you provided an example script in each language on your website as well.
I'm wondering how much of an impact on site load something like this would have. Thoughts?
One question though: where does the screenshot of the item which has been clicked on come from? As far as I understand your lib does not provide any means to create a screenshot? Is this correct? Would it be possible to add this? If not could you explain how you would make sure the coordinates and the screenshot at any given time match?
Just curious and interested in using your library :)
-You provide an image.
-You provide x,y coordinates.
-The tool/library calculates a heatmap from the relationship between coordinates
-The tool overlays the heatmap 1:1 to the image
The Google screenshot and clicking demo is just an example of a possible implementation. You can use heatmaps for many many other things so this surely does not limit itself (nor prefer) to website click tracking. ;-)
If there was sufficient interest, I could implement relative positioning as well, where they resolve to a percentage of the source image.
I like the name too, in fact I liked it enough to create a jQuery templating plugin with the same name a few months ago ;)http://github.com/fitzgen/tempest/
Is that normal performance or did I do something wrong?
edit: after 36 minutes it threw "AttributeError: 'LoadTest' object has no attribute '_compare'", oops that was my fault. Trying again with less points.
edit2: It is swapping... I have 2GB RAM. Using an 8192x8192 image and 20 points. :-(
But I am rather sure it is tailored for click heatmapping.
Sadly that is too slow to be of use for me. Or maybe I simply did not use it right.
TINY request - add a reset button to the example. I guess it's saved per session or something, but I spammed a bunch of clicks in one spot which dominates the page a bit.
Great work.