elastic.js was a library which could be used for building the elasticsearch request body using builder syntax. However, it has not been updated in over 3 years and it is not longer usable with 5.x version of elasticsearch DSL.
So I have written a new library, elastic-builder for use with node.js. It is heavily inspired by elastic.js and provides a very similar syntax for building request body search.
The code is up to date with the 5.x version of ElasticSearch.
Any suggestions or feedback is welcome.