{"id":17886633,"url":"https://github.com/holzmaster/docker-nsfwjs","last_synced_at":"2025-04-03T02:24:29.189Z","repository":{"id":161076659,"uuid":"635810158","full_name":"holzmaster/docker-nsfwjs","owner":"holzmaster","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T13:17:50.000Z","size":4209,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T14:24:32.430Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holzmaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T13:56:33.000Z","updated_at":"2025-03-01T13:17:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"8544f5d1-d532-4089-9e95-b3a4e4f468f9","html_url":"https://github.com/holzmaster/docker-nsfwjs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzmaster%2Fdocker-nsfwjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzmaster%2Fdocker-nsfwjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzmaster%2Fdocker-nsfwjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzmaster%2Fdocker-nsfwjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holzmaster","download_url":"https://codeload.github.com/holzmaster/docker-nsfwjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246923398,"owners_count":20855570,"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":["hacktoberfest"],"created_at":"2024-10-28T13:08:39.465Z","updated_at":"2025-04-03T02:24:29.158Z","avatar_url":"https://github.com/holzmaster.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-nsfwjs\n### Features ✨\n- ℹ️ Return predictions for `Neutral`, `Drawing`, `Sexy`, `Hentai` and `Porn`\n- 🎯 Pretty accurate (~93%)\n- 🖼️ Supports different image formats\n- ⚡ 250ms to make predictions to a single image\n\n### About 🗞️\nA Docker REST API for NSFW detection with [NSFWJS](https://github.com/infinitered/nsfwjs). Hard-fork of [andresribeiro/nsfwjs-docker](https://github.com/andresribeiro/nsfwjs-docker), which has the following goals:\n- More standard tooling (npm instead of pnpm, no git hooks, tsc instead of swc)\n- Slimmer deployment image + repo (models not in repo, more stages in docker build)\n\n### Installation ⚙️\n```shell\ndocker run -p 8080:8080 -d --name nsfwjs ghcr.io/holzmaster/nsfwjs:latest\n```\n\nIf you are deploying in production, you will probably want to pass the `--restart always` flag to start the container whenever the server restarts\n\n### Usage 🔨\n\n#### One image, multipart/form-data\n`POST` request to `/classify` sending an image in the `content` field:\n```sh\ncurl -XPOST -F \"content=@/path/to/file\" http://localhost:8080/classify\n```\nExample result:\n```json\n{\n  \"prediction\": {\n    \"neutral\": 0.9992233514785767,\n    \"drawing\": 0.0006749277818016708,\n    \"porn\": 0.00004637416350306012,\n    \"sexy\": 0.000037574754969682544,\n    \"hentai\": 0.000017801607100409456\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholzmaster%2Fdocker-nsfwjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholzmaster%2Fdocker-nsfwjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholzmaster%2Fdocker-nsfwjs/lists"}