Open the page, invent a word, and get a definition.
wordlol is built on the Lit Web Component library, it randomly generates definitions by calling the OpenAI Chat completion API, and it is bundled with Vite. API calls are made with Netlify functions and can be substituted for any serverless function provider.
To get started with wordlol follow these steps:
git clone https://github.com/WillsonSmith/wordlol.git- Add an
OPENAI_API_KEYto your Environment variables (.envfile).- Sign up for on OpenAI to get an API key.
npm installnpm start- This requires Netlify for functions. You can replace the API or run
npm run devto run the application without functions.
- This requires Netlify for functions. You can replace the API or run
- If you use Netlify the browser should automatically open, if not, follow the link in your terminal.
- Enter a word or a phrase in the search bar and click the "Search" button.
- The application will generate a definition for the word or phrase you entered.
