๐ช Jupyter Notebook on Node.js + TypeScript ๐ช
https://github.com/Dionid/JupyterNotebook.ts
Sometimes I need to do analytics on a database or logs (whether it's a dump for marketing, tech support, or just to check data consistency)
By default, I throw a bunch of queries into DataGrip / Compass / PgAdmin, but this is only suitable for viewing 1-3 queries and is even less suitable if you need to perform some logic between queries
A better option is to use Jupyter Notebook, which allows you to create a file with executable scripts and visualize everything
The problem is that it's on Python, and if you want to analyze your TypeScript code, you'll have to spend a lot of time rewriting everything in Python
BUT I FOUND A SOLUTION
I used the tslab project and added some convenience features on top of it (such as envs and the ability to add custom libraries)
Here's the resulting code: https://github.com/Dionid/JupyterNotebook.ts
To make it clearer, here's a presentation that shows the capabilities of Jupyter + tslab: https://slides.com/yearofmoo/jupyter-notebooks-with-es6-and-typescript/fullscreen
Good luck with your workflow ๐ช