Live data from Hacker News

Show HN: Browser-based knitting (pattern) software

github.com

1–10 of 31 posts

Show HN: Browser-based knitting (pattern) software

#1
I wrote some simple open source web-based app to (1) dynamically compute knitting patterns (based on input parameters, such as the exact desired size), and (2) display these patterns and help me keep track of which row I'm on (as I start knitting), similar to minimalist "row counters" that other knitters use. It also gives you a simple visualization of the shape of what you're knitting. You can see it in action at https://alefore.github.io/knit/ (and read about it in https://github.com/alefore/knit).

Right now I only implemented on simple pattern: Sophie scarfs. After knitting one that came out somewhat … asymmetric, I decided to just write some software to help me (1) easily adjust the length/width of the scarf (using Bézier curves), and (2) keep track of which row I'm on (so that I can make sure I apply increases/decreases at the right places). In the future, I expect to extend this with many other knitting patterns for other types of items.

The application is 100% browser (JavaScript, tested in only in Chrome in Linux/Android) based (no server-side component): all state is kept in the URL hash. I've used it to knit two scarves, including https://github.com/alefore/knit/blob/main/images/000.jpg.

The current state of knitting patterns is far from optional, stuck in pre-computer times. Perhaps knitters are not the most technically minded group. Most knitters just download patterns as PDF files. These files will show multiple numbers from which you should choose one depending on the size you're knitting, saying things like "Purl 24 (32 38 42 50 64) times" (you're supposed to pick the right number depending on the size you're knitting). They'll say things like "repeat rows 4 to 6 sixteen times".

I think software can display patterns much better (including not being limited to a few pre-selected sizes, but letting you choose the _exact_ size you want, and adjusting everything accordingly), and keep track of your progress much more easily. For example, for my scarf, the user inputs the desired number of rows (based on the desired length, which makes the pattern agnostic to the needle size), and the software computes where to apply increases/decreases.

I have many other ideas for improvements (e.g., track how much time I've spent in each row, show a clock), but I figured I'd share this early and ask for feedback. Hopefully there are other fellow knitters in HN. :-) Check it out and let me know what you think!

Show HN: Browser-based knitting (pattern) software
github.com

Re: Show HN: Browser-based knitting (pattern) software

#4
As a fellow knitter, this is pretty neat--I really like the notation. I mostly make hats, and do most of my pattern work using a pixel art app and a piece of paper for notation.

Any interest in expanding the scope of this to include other designs? Double knitting? PRs welcome?

Re: Show HN: Browser-based knitting (pattern) software

#7

As a fellow knitter, this is pretty neat--I really like the notation. I mostly make hats, and do most of my pattern work using a pixel art app and a piece of paper for notation. Any interest in expanding the scope of this to include other designs? Double knitting? PRs welcome?

I absolutely intend to expand the scope to include other designs.

I happen to be knitting a double-knitting blanket right now, my first double-knitted project, haha. I was actually thinking yesterday that it would be super neat if we could just feed it a black-and-white image and have it generate the rows. ... just haven gotten around to it.

But, yeah, if you look at the implementation, you'll see that everything is fairly generic, and the only parts specific to sophie scarfs are contained in a single file: https://github.com/alefore/knit/blob/main/scarf_pattern_fact...

That said, I expect the pattern class will need some improvements to be able to accomodate double-knitting (e.g., for visualization and such).

Re: Show HN: Browser-based knitting (pattern) software

#9

As a fellow knitter, this is pretty neat--I really like the notation. I mostly make hats, and do most of my pattern work using a pixel art app and a piece of paper for notation. Any interest in expanding the scope of this to include other designs? Double knitting? PRs welcome?

I’d love this for crochet.

Re: Show HN: Browser-based knitting (pattern) software

#10
This is great! I'm also a knitter, and I really like putting together little programs to help me design or write out patterns. My favourite so far has been an Elixir Livebook notebook I made to design a scarf for my partner. It outputs row counts and an image of what the end result will look like: https://put.bo0tzz.me/s/30iu0n2k.png The (messy) livebook code is here for whoever is interested: https://gist.github.com/bo0tzz/eb7818f7db3542ec540965252a344...

Another program I made (and unfortunately lost) was one to generate bespoke sock sizings (and corresponding pattern instructions) from measurements I put in.

Post reply on HN