Skip to content

SanyamPunia/profanity-api

Repository files navigation

🗯️ Profanity API

A scalalbe REST API to check profanity in chunks (at scale)

Test Production API

const res = await fetch("https://profanity-api.profanity-prod.workers.dev/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ message }),
});

Tech Stack

Local Set-Up

$ git clone <...>
$ cd profanity-api
# or any other package manager - remove the current lock file
$ pnpm install
$ pnpm wrangler dev index

Make sure to add the required env

# @upstash vector db credentials

VECTOR_URL=...
VECTOR_TOKEN=...

You will require a Cloudflare account to deploy it under their workers/pages

TO-DO

  • simple test-frontend to hit the endpoint

About

check profanity with a simple POST endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published