Data visualization sketch with NPM modules

For this project (a viewer for DJI drone's SRT log files) I wanted to organise my code better, so I focused on creating NPM modules that I (or anyone) can reuse later.

LetBqkV

Here's the working project for anyone to test (I preloaded samples, so you don't need to have a DJI drone): http://tailorandwayne.com/dji-srt-viewer/

For the module system to work, I had to convert my sketch to instance mode (https://github.com/processing/p5.js/wiki/Global-and-instance-mode). Once that's done, you get access to thousands of code packages that people have published (https://www.npmjs.com/).

I did not find much info on this topic (P5+NPM), so hopefully this will help those trying next. Here's my code: https://github.com/JuanIrache/dji-srt-viewer

And another thing worth noting is that one of the modules I created is a series of GUI elements (buttons and sliders) for P5. The interface is not as simple as it should have been, but it fulfills it purpose for now: https://www.npmjs.com/package/p5_gui

Feel free to contribute to any of the source codes and your suggestions are welcome :)

tyWVUIS

Sign In or Register to comment.