possibleto use this directly with javascript?
yes, https://github.com/tonsky/datascript#using-from-vanilla-js