[](https://docsearch.algolia.com)
The easiest way to add search to your documentation – for free.
[](https://app.netlify.com/sites/docsearch/deploys) [](https://www.npmjs.com/package/@docsearch/js/v/alpha) [](./LICENSE)
Documentation •
JavaScript Playground •
React Playground
---
DocSearch crawls your documentation, pushes the content to an Algolia index and provides a dropdown search experience on your website.
## Preview

| Light | Dark |
| --- | --- |
|  |  |
## Usage
> Don't have your Algolia credentials yet? [Apply to DocSearch](https://docsearch.algolia.com/apply)!
### JavaScript
#### Installation
```sh
yarn add @docsearch/js@alpha
# or
npm install @docsearch/js@alpha
```
If you don’t want to use a package manager, you can use a standalone endpoint:
```html
```
#### Get started
To get started, you need a [`container`](https://docsearch.algolia.com/docs/api#container) for your DocSearch component to go in. If you don’t have one already, you can insert one into your markup:
```html