{"id":19765937,"url":"https://github.com/themihirmathur/m-scanner","last_synced_at":"2026-04-09T23:53:50.464Z","repository":{"id":223179490,"uuid":"758833860","full_name":"themihirmathur/m-scanner","owner":"themihirmathur","description":"\"m-scanner\" is a Next.js application that leverages Hugging Face's Transformers.js library to integrate pre-trained AI models for object detection.","archived":false,"fork":false,"pushed_at":"2024-03-08T12:56:03.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T10:55:04.049Z","etag":null,"topics":["artificial-intelligence","docker","huggingface","nextjs","nodejs","transformersjs"],"latest_commit_sha":null,"homepage":"https://m-scanner.vercel.app","language":"TypeScript","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/themihirmathur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-17T08:01:03.000Z","updated_at":"2024-07-21T17:17:11.000Z","dependencies_parsed_at":"2024-11-12T04:33:09.178Z","dependency_job_id":null,"html_url":"https://github.com/themihirmathur/m-scanner","commit_stats":null,"previous_names":["themihirmathur/m-scanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/themihirmathur/m-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themihirmathur%2Fm-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themihirmathur%2Fm-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themihirmathur%2Fm-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themihirmathur%2Fm-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themihirmathur","download_url":"https://codeload.github.com/themihirmathur/m-scanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themihirmathur%2Fm-scanner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267237008,"owners_count":24057659,"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-07-26T02:00:08.937Z","response_time":62,"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":["artificial-intelligence","docker","huggingface","nextjs","nodejs","transformersjs"],"created_at":"2024-11-12T04:20:53.159Z","updated_at":"2026-04-09T23:53:45.445Z","avatar_url":"https://github.com/themihirmathur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# M-Scanner 🔬\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://www.animatedimages.org/data/media/562/animated-line-image-0184.gif\" width=\"1920\" \n\u003c/p\u003e\n\n## Overview:\nThis repository contains a Next.js application that leverages Hugging Face's Transformers.js library to integrate pre-trained AI models for object detection. This project serves as a comprehensive guide for building, running, and deploying AI applications within a production environment, with a focus on object detection.\n\n## Project Demo:\nhttps://github.com/themihirmathur/m-scanner/assets/92594107/555bfa4d-e702-4b03-9e44-d21aa3a9f69f\n\n## Prerequisites\n1. Node.js and npm installed\n2. Docker installed\n3. Transformers.js knowledge\n\n## Getting Started\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/themihirmathur/m-scanner.git\ncd m-scanner\n```\n\n2. Install Dependencies:\n\n```bash\nnpm install\n```\n\n3. Get the Environment variable's values or API Keys from the Upload Thing Website: https://uploadthing.com/\n\n\n4. Then, run the development server:\n\n```bash\nnpm run dev\nor\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Integrating Transformers.js\n\n1. Import Transformers.js into your Next.js project:\n\n   ```javascript\n   import * as transformers from '@huggingface/models';\n   ```\n\n2. Load a pre-trained object detection model:\n\n   ```javascript\n   const model = await transformers.objectDetection.get({ modelId: 'your-model-id' });\n   ```\n\n3. Utilize the model for object detection within your application.\n\n## Docker Image Creation\n\n1. Create a Dockerfile in the root of your project:\n\n   ```Dockerfile\n   FROM node:14\n\n   WORKDIR /usr/src/app\n\n   COPY package*.json ./\n\n   RUN npm install\n\n   COPY . .\n\n   EXPOSE 3000\n\n   CMD [\"npm\", \"run\", \"start\"]\n   ```\n\n2. Build the Docker image:\n\n   ```bash\n   docker build -t your-docker-image-name .\n   ```\n\n## Deployment\n\n1. Choose a container orchestration tool (e.g., Kubernetes, Docker Compose).\n\n2. Deploy the Docker image to your chosen environment.\n\n## Customization\n\nFeel free to customize this project to suit your specific AI application needs. Explore different Hugging Face models, fine-tune them, or integrate other AI functionalities.\n\n## Contribution\n\nContributions are welcome!\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://www.animatedimages.org/data/media/562/animated-line-image-0184.gif\" width=\"1920\" \n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemihirmathur%2Fm-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemihirmathur%2Fm-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemihirmathur%2Fm-scanner/lists"}