# Executing custom plugin/action from javascript

**URL:** <https://discuss.elastic.co/t/executing-custom-plugin-action-from-javascript/50918>\
**Category:** Elasticsearch\
**Created:** [May 25, 2016, 8:05am UTC](https://discuss.elastic.co/t/executing-custom-plugin-action-from-javascript/50918 "2016-05-25T08:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetana](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Chetana](https://discuss.elastic.co/u/Chetana)\
**Post date:** [May 25, 2016, 8:05am UTC](https://discuss.elastic.co/t/executing-custom-plugin-action-from-javascript/50918/1 "2016-05-25T08:05:26Z")

</div>

I have create a custom plugin which I can invoke from java as below:

Client client = new TransportClient().addTransportAddress(new InetSocketTransportAddress(  
"localhost",  
9300)).  
MyAction action = new MyAction();  
MyRequestBuilder requestBuilder = client.prepareExecute(action);  
client.execute(action, requestBuilder.request()).get();

Is there any javascript or node.js plugin available for elasticsearch to call custom ES plugin/action

Thanks,  
Chetana

---

<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 5, 2017, 10:49pm UTC](https://discuss.elastic.co/t/executing-custom-plugin-action-from-javascript/50918/2 "2017-07-05T22:49:12Z")

</div>


