# How to install and import @kbn/es-query

**URL:** <https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377>\
**Category:** Kibana\
**Created:** [September 6, 2019, 8:53am UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377 "2019-09-06T08:53:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![funina](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@funina](https://discuss.elastic.co/u/funina)\
**Post date:** [September 6, 2019, 8:53am UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377/1 "2019-09-06T08:53:29Z")

</div>

Hi There,

My project is using elastic search as the back-end service provider to do the searching, and for UI, we would like to leverage kibana by developing a new UI project and migrate some powerful components from kibana, such as filter bar, which relies on @kbn/es-query, so I need to import this module into my project.

but I cann't npm install @kbn/es-query successfully, since this module is not in npm registry. please advice.

Thanks!

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [September 13, 2019, 10:49am UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377/2 "2019-09-13T10:49:54Z")

</div>

The package is here [https://github.com/elastic/kibana/tree/master/packages](https://github.com/elastic/kibana/tree/master/packages) and there are instructions on how it can be use in the readme. But it's not available on npm.

---

<div class="post-metadata">

**Author:** ![funina](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@funina](https://discuss.elastic.co/u/funina)\
**Post date:** [September 16, 2019, 6:10am UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377/3 "2019-09-16T06:10:54Z")

</div>

Hi Marius,

Thanks for your replying.

The instruction shows how to import them in kibana project or kibana plugins, but if I would like to use them into other UI projects, do you have any suggestion for me on how to use them better? Thanks!

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [September 19, 2019, 1:36pm UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377/4 "2019-09-19T13:36:59Z")

</div>

I don't think that's possible for now, it's not tested or accounted for when creating es-query.

---

<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:** [October 17, 2019, 1:37pm UTC](https://discuss.elastic.co/t/how-to-install-and-import-kbn-es-query/198377/5 "2019-10-17T13:37:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
