This is a fun and simple project that evaluates the safety rating of a webpage's text content with the usage of clipper.js
and the free OpenAI moderation API.
nvm install 20.10.0
nvm use 20.10.0
npm install express node-fetch
npm install -g @philschmid/clipper
node server.js
# Navigate to `http://localhost:3000`
# Add your OPENAI_API_KEY from https://platform.openai.com/settings/profile?tab=api-keys in the lower-left text box, at the time of writing the OpenAI Moderation API is free of cost
- https://github.com/philschmid/clipper.js
- https://platform.openai.com/docs/api-reference/moderations/create
For incentivising similar future projects, consider starring this repo!