How can i make a search bar without PHP?

Hello users. I need help in making a search bar. But i cant use php on netlify. any alternatives? If you have one please tell me

Edit: as alternative i mean not php. i didnt mean an alternative to netlify.

hey there,

there are many different approaches to implementing a search on your site that don’t require PHP.

You could, for example, check out algolia, which is what powers the search on the netlify docs.

If you are using a SSG like Gatsby or Hugo for example, there are likely platform specific search plugins that will work for your needs. Basically, anything that runs in JS should do the trick.

1 Like

If you’re building with plain js, I can highly recommend fuse: https://github.com/krisk/fuse

2 Likes