{"id":30770360,"url":"https://github.com/firstflush/ninja_brain","last_synced_at":"2026-04-12T11:49:21.562Z","repository":{"id":306684451,"uuid":"1026938161","full_name":"FirstFlush/ninja_brain","owner":"FirstFlush","description":"Machine learning NLP microservice for Street Ninja. Parses incoming SMS messages and extracts structured entities like location, resource, and qualifiers using a spaCy-trained NER model.","archived":false,"fork":false,"pushed_at":"2025-07-30T00:16:16.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-03T06:02:11.676Z","etag":null,"topics":["ai","artificial-intelligence","django","django-ninja","machinelearning","microservice","ml","named-entity-recognition","natural-language-processing","ner","nlp","nlp-machine-learning","python","spacy","spacy-nlp"],"latest_commit_sha":null,"homepage":"","language":"Python","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/FirstFlush.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,"zenodo":null}},"created_at":"2025-07-27T00:23:11.000Z","updated_at":"2025-07-29T19:46:23.000Z","dependencies_parsed_at":"2025-07-27T03:40:56.889Z","dependency_job_id":"3a780bd1-231b-470d-a1d5-037cb851a923","html_url":"https://github.com/FirstFlush/ninja_brain","commit_stats":null,"previous_names":["firstflush/ninja_brain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FirstFlush/ninja_brain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirstFlush%2Fninja_brain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirstFlush%2Fninja_brain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirstFlush%2Fninja_brain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirstFlush%2Fninja_brain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FirstFlush","download_url":"https://codeload.github.com/FirstFlush/ninja_brain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirstFlush%2Fninja_brain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273685604,"owners_count":25149722,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","artificial-intelligence","django","django-ninja","machinelearning","microservice","ml","named-entity-recognition","natural-language-processing","ner","nlp","nlp-machine-learning","python","spacy","spacy-nlp"],"created_at":"2025-09-04T23:04:05.405Z","updated_at":"2026-04-12T11:49:21.482Z","avatar_url":"https://github.com/FirstFlush.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 Machine Learning Microservice for Street Ninja\n\n`ninja-brain` is a Django Ninja-powered microservice that uses a custom-trained NLP model to extract structured data from incoming SMS messages. It is part of the [Street Ninja](https://github.com/firstflush/street_ninja) ecosystem, a platform designed to help homeless individuals in Vancouver access critical resources through fast, SMS-based support.\n\nThis service performs Named Entity Recognition (NER) to detect:\n\n- 📍 **Location** — Where the help is needed (address, intersection, landmark, neighborhood)\n- 🍽️ **Resource** — What is being requested (food, shelter, toilet, water fountain, wifi, etc.)\n- 🏷️ **Qualifiers** — Additional constraints (`women-only` or `pet-friendly` shelters, for example)\n\nBuilt using:\n\n- 🧠 **Machine Learning** (spaCy NER)\n- 💬 **Natural Language Processing** (custom annotation pipeline)\n- ⚙️ **Django Ninja** (high-performance API framework for Django)\n\n\n## 🕸 Street Ninja Ecosystem\n\n- [Ninja Brain (you are here)](https://github.com/FirstFlush/ninja_brain) — NLP microservice for parsing and routing SMS inquiries\n- [Streetlight API](https://github.com/FirstFlush/streetlight-api) — Public API for homelessness resources in Greater Vancouver\n- [Ninja Crawl](https://github.com/FirstFlush/ninja_crawl) — Python-based scraping engine (HTML/PDF → JSON)\n- [Street Ninja SMS App](https://github.com/FirstFlush/street_ninja) — SMS assistant for accessing resources by text\n- [Street Ninja Website](https://github.com/FirstFlush/website_street_ninja) — Try out the SMS assistant and explore the project\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstflush%2Fninja_brain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstflush%2Fninja_brain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstflush%2Fninja_brain/lists"}