{"id":15501364,"url":"https://github.com/simonv3/abuse-bayes-server","last_synced_at":"2026-04-26T14:30:15.783Z","repository":{"id":144871255,"uuid":"45496645","full_name":"simonv3/abuse-bayes-server","owner":"simonv3","description":"A server which tells you whether something is abuse or not using bayesian filtering","archived":false,"fork":false,"pushed_at":"2015-11-10T23:35:54.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T16:58:02.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonv3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-03T21:25:15.000Z","updated_at":"2018-05-31T15:41:31.000Z","dependencies_parsed_at":"2023-04-03T12:04:40.370Z","dependency_job_id":null,"html_url":"https://github.com/simonv3/abuse-bayes-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonv3%2Fabuse-bayes-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonv3%2Fabuse-bayes-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonv3%2Fabuse-bayes-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonv3%2Fabuse-bayes-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonv3","download_url":"https://codeload.github.com/simonv3/abuse-bayes-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240059521,"owners_count":19741672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:04:05.607Z","updated_at":"2026-04-26T14:30:15.733Z","avatar_url":"https://github.com/simonv3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Abuse Bayes Server\n\nThe Abuse Bayes server is a simple [`express`](http://expressjs.com/) app that classifies strings sent to it.\n\nIt needs [redis](http://redis.io/) and [node](nodejs.org) to run.\n\n## Getting Started\n\nTo get started, clone the source:\n\n```\ngit clone git@github.com:simonv3/abuse-bayes-server.git\n```\n\nMove to the newly created directory:\n\n```\ncd abuse-bayes-server\n```\n\nInstall the necessary packages\n\n```\nnpm install\n```\n\nAnd then run the server:\n\n```\nnode app.js\n```\n\nYou can access the api in your browser at `localhost:3000/api/v1/classify/`, which will tell you to POST to a string to it to get a result. Use a plug in like [REST Easy](https://addons.mozilla.org/en-US/firefox/addon/rest-easy/?src=search) to test with a POST request.\n\n## Training Your Server\n\nYou need an abuse text corpus and a normal text corpus. Then\n\n```\nnode trainer/trainer.js \u003cABUSE.TXT\u003e \u003cNORMAL.TXT\u003e\n```\n\nThis will use the redis backend to train your server.\n\n\n### Installing Redis\n\nIf you're on a mac - use homebrew! `brew install redis`. Else, I don't know!\n\nIt will give you instructions on how to get it running on launch.\n\n## Future\n\n* [ ] Make classify accept multiple text strings to limit amount of queries\n* [ ] Create a train endpoint\n* [ ] Make a \"not sure\" page\n* [ ] Split up app into not just one page cause common\n* [ ] We'll probably need to rate limit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonv3%2Fabuse-bayes-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonv3%2Fabuse-bayes-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonv3%2Fabuse-bayes-server/lists"}