/Webpage-Safety-Evaluation

Evaluate safety metrics of a webpage with free OpenAI moderation API

Primary LanguageHTML

Webpage safety rater

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.

Installation:

nvm install 20.10.0
nvm use 20.10.0
npm install express node-fetch
npm install -g @philschmid/clipper

Run:

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

clipper_1

References

Support

For incentivising similar future projects, consider starring this repo!