Skip to content

DevDouble2/ai-stitch-math-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🧶 AI-StitchMath-Optimizer

Featured on TAAFT

Live Tool License

AI-powered precision algorithms for knitting and crochet enthusiasts. StitchMath leverages intelligent math models and Llama 3-powered AI diagnostics to solve complex garment construction problems, yarn substitutions, and gauge conversions with 100% accuracy.


🚀 Live Platform & AI Advisor

Access the full suite of tools and the AI Optimizer live at:
👉 https://stitchmath.com/


📖 Knowledge Base & Strategy Guide

For a comprehensive breakdown of the mathematics behind garment shaping and our AI-driven optimization logic, visit our documentation on Telegraph:
📘 AI-Driven Knitting & Crochet Toolkit: Precision Math for Pattern Designers


🛠️ Key Features

  • 🤖 AI-Powered Craft Advisor: Integrated Llama 3 (Meta) model to provide instant answers for complex pattern logic and yarn selection.
  • 📐 Intelligent Increase/Decrease Calculator: Uses a "Spread-Evenly" algorithm to distribute stitch changes perfectly across a row.
  • 🧶 Smart Yarn Substitution: Calculates yardage and weight differences based on WPI (Wraps Per Inch) data.
  • 📏 Precision Gauge Converter: Adjusts pattern measurements instantly based on your unique tension swatch.
  • 📱 Responsive AI UI: Fully optimized for mobile use in the middle of a knitting project.

💻 Tech Stack

  • AI Engine: Meta Llama 3 (8B) hosted via Cloudflare Workers AI.
  • Frontend: Vanilla JavaScript (ES6+), HTML5, CSS3.
  • Logic: Custom mathematical models for textile geometry.
  • Infrastructure: Cloudflare Pages & Workers for global low-latency access.

📂 Project Structure

  • index.html: Main AI toolkit dashboard & Llama 3 interface.
  • styles/: Optimized CSS for tool interfaces & mobile-first design.
  • scripts/: Core mathematical algorithms.
    • calculators.js: Logic for increase/decrease/gauge.
    • ai-worker.js: Interface for Cloudflare AI Model.
    • main.js: UI interactions and state management.

📈 Future Roadmap

  • AI Assistant Integration: Real-time help via LLM (Live Now!).
  • AI Pattern Generator: Generate full sweater patterns based on body measurements.
  • Computer Vision: Use your phone's camera to count stitches/rows.

🤝 Contributing

Contributions are welcome! If you have an idea for a new knitting algorithm or want to improve the AI logic, feel free to open an issue or submit a pull request.

📄 License

Distributed under the MIT License. See LICENSE for more information.


Developed with ❤️ for the global crafting community by double2. Proudly featured on There's An AI For That.

About

An AI-enhanced precision engine for knitting, featuring neural-optimized algorithms for pattern generation, yardage estimation, and LLM-driven project advisory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors