{"id":50976580,"url":"https://github.com/roboraptor/njs-virtual-tailor","last_synced_at":"2026-06-19T08:33:01.540Z","repository":{"id":337421535,"uuid":"1153543898","full_name":"roboraptor/njs-virtual-tailor","owner":"roboraptor","description":"Size manager for customers to order right size of the product.","archived":false,"fork":false,"pushed_at":"2026-05-04T20:30:15.000Z","size":13893,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-04T22:25:20.216Z","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/roboraptor.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-09T12:25:48.000Z","updated_at":"2026-02-09T15:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/roboraptor/njs-virtual-tailor","commit_stats":null,"previous_names":["roboraptor/njs-virtual-tailor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roboraptor/njs-virtual-tailor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboraptor%2Fnjs-virtual-tailor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboraptor%2Fnjs-virtual-tailor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboraptor%2Fnjs-virtual-tailor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboraptor%2Fnjs-virtual-tailor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roboraptor","download_url":"https://codeload.github.com/roboraptor/njs-virtual-tailor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboraptor%2Fnjs-virtual-tailor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34523982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","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":[],"created_at":"2026-06-19T08:33:00.722Z","updated_at":"2026-06-19T08:33:01.533Z","avatar_url":"https://github.com/roboraptor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 📏 Virtual Tailor: Size Recommendation Engine\n\nAn intelligent web application built with Next.js and React that helps customers find their perfect fit. By entering detailed body measurements, users receive precise size recommendations based on product-specific data, with a visual scale showing exactly where they land within a size range.\n## 🚀 Features\n\n    Dynamic Measurement Form: Only asks for measurements relevant to the selected product (e.g., neck for shirts, inseam for trousers).\n\n    Visual Fit Indicator: A slider/scale visualization that shows the user's position within a specific size (S, M, L, XL).\n\n    Made-to-Measure (M2M) Fallback: When a user's measurements fall outside standard ranges, the app automatically suggests a \"Made-to-Measure\" consultation.\n\n    CSV-Driven Logic: Product size charts are managed via simple CSV files for easy updates without touching the code.\n\n    Data Portability: Users can download their entered measurements as a JSON file for future use or professional tailoring.\n\n    Developer Mode: A dedicated \"Dev Switch\" to instantly populate the form with test data for rapid UI/UX testing.\n\n## 🛠️ Tech Stack\n\n    Framework: Next.js 14+ (App Router)\n\n    Frontend: React\n\n    Styling: Bootstrap 5 (via react-bootstrap)\n\n    Data Parsing: PapaParse (for CSV processing)\n\n    Icons: Lucide React\n\n## 📊 Data Structure\n\nThe application consumes data from a CSV file located in the /public/data directory.\nCSV Schema Example\nFragment kódu\n\nproduct_id,category,size,chest_min,chest_max,waist_min,waist_max,sleeve_min,sleeve_max\nshirt-slim-01,Shirt,M,95,100,85,90,64,66\nshirt-slim-01,Shirt,L,101,106,91,96,66,68\n\n    Min/Max ranges: Used to calculate the position of the \"arrow\" on the visual scale.\n\n    M2M Logic: If user_value \u003e max or user_value \u003c min for all available sizes, the M2M trigger is activated.\n\n## 🔧 Installation \u0026 Setup\n\n    Clone the repository:\n    Bash\n\n    git clone https://github.com/your-username/virtual-tailor.git\n    cd virtual-tailor\n\n    Install dependencies:\n    Bash\n\n    npm install\n\n    Run the development server:\n    Bash\n\n    npm run dev\n\n    Access the app: Open http://localhost:3000 in your browser.\n\n## 🧪 Development Workflow\nThe \"Dev Switch\"\n\nTo speed up testing, the app includes a debug toggle. When enabled:\n\n    The application bypasses manual input.\n\n    It loads a predefined test-measurements.json.\n\n    You can instantly see how the visual scale reacts to \"perfect\", \"edge-case\", and \"out-of-bounds\" measurements.\n\nExporting Data\n\nUsers can click the \"Export My Profile\" button, which generates a tailor-measurements.json. This ensures users don't have to measure themselves twice if they return to the shop later.\n## 🗺️ Roadmap\n\n    [ ] Integrate PDF export for M2M requests.\n\n    [ ] Add 3D visual representation of body shapes.\n\n    [ ] Connect to a PostgreSQL/Supabase backend for persistent user profiles.\n\n    [ ] A/B testing for the recommendation algorithm (Loose fit vs. Slim fit preference).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboraptor%2Fnjs-virtual-tailor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboraptor%2Fnjs-virtual-tailor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboraptor%2Fnjs-virtual-tailor/lists"}