Ghost-search: Our First Open Source Library for Ghost

Hi guys,

A month ago I decided to work on something that everybody can benefit from. So I started an open source library called ghost-search. After some work I’m proud to announce that I finally have a version that can be used.

Why I started this library?
As you probably know, there is already a search library for Ghost: ghostHunter. The library is good, it does its job, but I always felt that you could do a lot more with a search. Especially now with Dynamic Routing. With ghost-search you can search through posts, tags, users, custom collections, use filters, specify which fields to retrieve and more.

Read more here if you want to know how to setup and customize ghost-search.

The library can be used with/without jQuery.
It’s using fuzzysort as a search algorithm.
Has only 13kb in production.

Let me know what you think.

If you have any questions or suggestions feel free to write in here.


Thank you @HauntedThemes for sharing it with the community. I would love to use it and contribute to the project. :+1:

1 Like

Awesome! Thank you for sharing @HauntedThemes. How does ghost-search work with other languages?

1 Like

I’ve tested with chinese, russian and an arabic language. I didn’t had a problem.


Thank you @HauntedThemes :+1: :clap:

Really thanks.
But does it support non-latin charactors like japanese or korean or chinese?
Right now ghosthunter only support japanese, please do better, thanks in advance.

This is great! Thanks a lot! :tada:

Hi, good work, it works well. Is it possible to obtain other information in the search result, such as the description and the img of the article as well as the title and the slug? Thank you

Great job boy.

I love this script.

I was able to filter also description and image, it is very simple.

This script is much faster than ghosthunter.

Thanks again


There is only one problem

The title of my article is for example: “how to install java”
Input: install java -> found 1
Input: java install -> found 0

is it possible to solve this problem?

The library uses fuzzysort as an algorithm for searching. So you might want to take a look at it. In ghost-search library, modify the threshold value to something lower. Check default options to see how to set it. Try -10000 and see what you get.

Thanks for the reply.
Apparently -3500 or -10000 or -100000 does not change anything

Am I doing something wrong ?

I looked at your docs. I’m very impressed!

We’ve updated our open source search library to be compatible with Ghost’s Content API. Check it out:


After a long search I finally found this ghost-search…
Thanks for the good job.

i want to make production build but got error of ghost api key is invalid…
plz help me out as my project deadline is goin to end soon !!!

Thank you for sharing your views.