Share Executors via Jina Hub

Now that you understand that Executor is a building block in Jina, the following questions may arise:

  • Can I reuse my Executor in another project?

  • Can I share my Executor with my colleagues?

  • Can I just use someone else’s Executor instead of building it myself?

Basically, something like the following:


Yes! This is exactly the purpose of Jina Hub - a marketplace for Executors. With Hub you can pull prebuilt Executors to dramatically reduce the effort and complexity needed in your search system, or push your own custom Executors to share privately or publicly.

A Hub Executor is an Executor that is published in Jina Hub. Such an Executor can be easily used in a Flow:

from jina import Flow

f = Flow().add(uses='jinahub+docker://MyExecutor')

with f:

Hub architecture

The Hub architecture looks like the following:


Environment Variables

A list of environment variables which takes effects during Jina Hub operations. e.g. jina hub push


Define the place where the Executor package cache lives. Default value is Path.home().joinpath('.jina', 'hub-packages')


You don’t have permissions to create a directory in the home folder sometime. This is the right time to change the value.


Define the place where the cache is stored during the downloading. The cache will be deleted after finishing the download. Default value is Path(os.environ.get('JINA_HUB_ROOT')).joinpath('.cache'). By default, it will be a subfolder of JINA_HUB_ROOT. You can specify its value separately if you want.