https://github.com/devflowinc/mintlify-docsearch-component
react component for mintlify docsearch
https://github.com/devflowinc/mintlify-docsearch-component
Last synced: 2 months ago
JSON representation
react component for mintlify docsearch
- Host: GitHub
- URL: https://github.com/devflowinc/mintlify-docsearch-component
- Owner: devflowinc
- Created: 2024-04-15T10:40:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-17T05:44:47.000Z (over 1 year ago)
- Last Synced: 2025-09-30T03:33:25.321Z (3 months ago)
- Language: TypeScript
- Homepage: https://mintlify.trieve.ai/?searchMode=group&q=get+started
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mintlify search powered by Trieve
## Setup
### Install Packages
`npm install`
### Environment Variables
**Make sure you use the same
```
cp .env .env.dist
```
Then, you have two options to get environment variables for Trieve:
#### Use dashboard.trieve.ai
1. Go to [https://dashboard.trieve.ai] and register or sign in
2. Press "create dataset" from the page for your automatically created organization
3. Copy the `DATASET_ID` value to your `.env` as the value for `VITE_TRIEVE_DATASET_ID`
4. Create a new `read only level` `API_KEY` and copy its value for `VITE_TRIEVE_API_KEY`
#### Use the CLI
Warning! You must have `cargo` and some build tools installed to use the CLI.
```
cargo install trieve
trieve login
trieve api-key generate
trieve dataset create
```
Then copy your `API_KEY` value to the `.env` file for `VITE_TRIEVE_API_KEY` and the `DATASET_ID` for `VITE_TRIEVE_DATASET_ID`
## Deploying
### Build
`npm run build`
### Deploy
Simply point your reverse proxy (nginx, caddy, etc.) at the dist folder where the build is stored.