# What is the best javascript client for ES with least # of dependencies?

**URL:** <https://discuss.elastic.co/t/what-is-the-best-javascript-client-for-es-with-least-of-dependencies/16411>\
**Category:** Elasticsearch\
**Created:** [March 17, 2014, 9:18pm UTC](https://discuss.elastic.co/t/what-is-the-best-javascript-client-for-es-with-least-of-dependencies/16411 "2014-03-17T21:18:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulkitsinghal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pulkitsinghal/32/802_2.png) [@pulkitsinghal](https://discuss.elastic.co/u/pulkitsinghal)\
**Post date:** [March 17, 2014, 9:18pm UTC](https://discuss.elastic.co/t/what-is-the-best-javascript-client-for-es-with-least-of-dependencies/16411/1 "2014-03-17T21:18:59Z")

</div>

I want to use a javascript client for ES that has the least # of  
dependencies because it will make it easier to port it onto [Parse.com](http://Parse.com) as a  
cloud module. The more dependencies and/or files involved, the messier it  
looks when bringing in an existing npm module to an environment like Parse.

So far I'm inclined to use node-elasticsearch-client[https://github.com/phillro/node-elasticsearch-client/](https://github.com/phillro/node-elasticsearch-client/)because it has no dependencies according to its  
package.json[https://github.com/phillro/node-elasticsearch-client/blob/master/package.json](https://github.com/phillro/node-elasticsearch-client/blob/master/package.json)file.

The official elasticsearch-js[https://github.com/elasticsearch/elasticsearch-js](https://github.com/elasticsearch/elasticsearch-js)client on the other hand has four other runtime dependencies.

> "dependencies": {  
> "chalk": "~0.4",  
> "forever-agent": "0.5.2",  
> "lodash-node": "~2.4",  
> "when": "~2.8"  
> },
> 
> If there is already a branch for this client that's more suited to porting  
> for environments like [Parse.com](http://Parse.com), can someone chime in and let me know about  
> it?

I'm partially inclined to just use nothing but a simple HTTP request, in  
order to be lean, but I thought it might be worth exploring if I could go  
bigger.

Please feel free to share your thoughts and pointers.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5db855f6-d8a1-40ee-8c20-8fb72a3848ca%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5db855f6-d8a1-40ee-8c20-8fb72a3848ca%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:42am UTC](https://discuss.elastic.co/t/what-is-the-best-javascript-client-for-es-with-least-of-dependencies/16411/2 "2017-07-06T01:42:41Z")

</div>

Closed on July 6, 2017, 1:42am UTC


