This is a simple tool built with React and Chakra UI that uses the Open AI chat completion API to extract the best keywords from any given text.
The project was built by following the Build a Keyword Extractor: React + OpenAI API + Chakra UI YouTube course from Brad Traversy
Install dependencies:
npm install
Rename .env.example
to .env
and add your API key. You can get your key at https://platform.openai.com/account/api-keys.
VITE_OPENAI_API_KEY='ADD_YOUR_KEY_HERE'
Important: Your API key is not secure as there is no backend. If you decide to use this tool in production, you should add a backend to it and store the API key there.
Run the dev server:
npm run dev
Open http://localhost:3500 with your browser to see the result.
To build for production:
npm run build