Barcodes and the yarn library

Scanning a ball band should not be a one-off prefill. It should teach the app what that yarn is, so the next scan, by you or by a friend you share with, has the answer ready.

That is what the yarn library is for.

On this page 16

The basic flow

You are at the yarn shop. You buy two skeins of a yarn you have never logged. At home:

  1. Tap Stash, then Add.
  2. In the Add yarn form, tap the barcode button next to Pick from library.
  3. Hold the ball band inside the frame on Scan a skein.
  4. Purl recognises the yarn and fills the form in: brand, name, weight, fibre, gauge, suggested needle. You add the skein count.
  5. Tap Add to stash.

That recognition comes either from the bundled catalogue or from a yarn your library already knows.

If the code is new, the form opens with the barcode attached and nothing else filled in. You type brand, name, weight and the rest, and save. That save quietly teaches the library: the next scan of that code is recognised.

A barcode belongs to a colour

A yarn barcode is a shop-floor code for one shade, not for a whole yarn line. The till and the picking list work that way, and so does Purl.

So a scanned code attaches to a colourway of a yarn where it can, and to the yarn itself otherwise. Two consequences you will notice:

  • Scan a code Purl has seen on a colour, and the colour comes back with it, swatch and all, not just the brand and name.
  • Scan a colour you already own and the question is the useful one: Add a skein to the row you have, or New dye lot for this ball band.

Scan in the Yarn library finds first too: a ball you already own opens in your stash, with Add a skein one tap away. With more than one dye lot, Purl asks which one first.

Correcting a colour in the form corrects what the code means. The code moves to the colour you saved it under.

The Yarn library screen

Open More, then Yarn library under Tools. The library button at the top of Stash opens it too.

A short note at the top says where the colours come from: each is taken from the maker's photo, so take it as a guide. Then comes a search field, with the colour button and Filter and sort beside it, and a line that says how many brands, yarns and shades the library holds. Then Your own yarns, Substitute yarn and the brands, A to Z. Scan at the top opens the camera.

The Yarn library's front page: the note on colours, the search field, the count of brands, yarns and shades, Your own yarns, Substitute yarn and the first brands
The front page: search, your own yarns, then every brand Purl knows.

What a scan gives you here:

  • A code Purl knows: the yarn's own page opens, in its shade when the code is on one, with a line that says so, for example Barcode ... belongs to this yarn, in 1042 Grey Melange.
  • A new code: a banner at the top says Barcode ... is new to Purl. Find the yarn it belongs to, by search or by brand, and tap Attach ... here on its page. Or tap Type in a new yarn to save it as one of your own. Cancel puts the banner away.

Inside a yarn

Tap a brand, then a yarn, to open its page. A search hit opens the same page.

  • The yarn's facts: weight, fibre, length, gauge and needle.
  • In your stash: how many skeins you have, in the shade you picked when you have that one. Tap it to open that yarn in your stash.
  • Add to stash, or Add 1042 Grey Melange to stash once you pick a shade.
  • Find this colour in other yarns, once you pick a shade with a colour.
  • Attach a barcode and Open the maker's page.
  • Your barcodes on this yarn, with Edit, once you have attached one.
  • Yarns that knit the same: see below.
  • The shades, each with its colour, number and name. Tap one to pick it. A shade that carries a barcode of yours says so.
A yarn's page in the Yarn library: its facts, In your stash, Add to stash, Attach a barcode, Open the maker's page, Yarns that knit the same and the first shades
A yarn's page: its facts, what you can do with it, and every shade.

Attaching a barcode

Attach a barcode on a yarn's page opens the camera. With a shade picked, the code goes on that shade: Barcode ... is now on 1042 Grey Melange. Scanning it fills in the colour too. Without one, it goes on the yarn.

Several codes per yarn is the whole point: manufacturers cycle codes between packaging runs, so an old skein and a fresh one often carry different ones.

If the code is already on another of your yarns, Purl asks Move this barcode? first.

The code is kept on your own copy of the yarn, which joins Your own yarns. Your barcodes on this yarn, then Edit, opens it.

Your own yarns

Your own yarns on the front page holds the yarns you scanned or typed in, your copies of catalogue yarns with your barcodes on them, and libraries friends shared. At the top are Share your yarns and Import, then a search field and the list. Each row says how many barcodes the yarn has; the bin beside it removes the yarn. Type in a new yarn at the bottom starts one.

Your own yarns: Share your yarns, Import, the search field and the first of your yarns
Your own yarns: share or import them, search them, and tap one to edit it.

Tap a yarn to edit it:

  • Barcodes: a chip for each code. Add one by typing it into Add a barcode... and tapping Add, or with Scan. Remove one with its cross.
  • Colourways, when Purl knows the yarn in some: each colour with its code. A colour you have scanned or saved yourself also shows its shade and the barcodes pointing at it. Tap the cross to forget one it got wrong.
  • Brand, Name, Fibre composition (a share for each fibre, and Add fibre), Weight, Grams per skein, Metres per skein, Gauge and Suggested needle.

Save keeps your changes and Cancel leaves without them. Remove takes the yarn and its barcodes out of the library on this device. Add to stash under them puts the yarn in your stash.

The bundled catalogue

Purl ships with a curated catalogue of over 40 yarn makers and their yarn lines. Most are Nordic, from Sandnes Garn, DROPS and Gjestal Garn to Novita, and a few come from Germany, Switzerland, Italy and the UK. Brand and yarn names for all of them, weight, fibre and meterage for most, and the shades of most yarns.

The front page lists the brands A to Z. Your own yarns are never buried under them: they keep their own card at the top, and in a search they come first.

The global search finds catalogue yarns and their colours too, by name or colour number. Tap a hit and the library opens on that yarn, with the colour picked.

Filter and sort

The Filter and sort button sits beside the search field, and on a brand's page above its yarns. It opens a sheet:

  • Sort: A to Z, Most shades, Thinnest first or Thickest first. Lists open A to Z. A brand's page opens in Maker's order, the order the maker lists its yarns, and offers it among the sorts. A yarn no longer made stays last in every order.
  • Weight, Fibre and Needle, each with Any first. Needles come in bands: Under 3 mm, 3 to 3.75 mm, 4 to 4.5 mm, 5 to 6.5 mm and 7 mm and up. Each choice shows how many yarns it would leave.
  • Country, on the library's first page, where every brand is listed.
  • Only yarns in my stash, with how many of these yarns are in it.

On the first page, a filter lists every catalogue yarn that matches, from every brand. On a brand's page it narrows that brand's yarns, and in a search it narrows the results.

Each filter you set shows as a pill above the list; its cross removes it. A line says how many are left, for example 12 of 125 yarns, with Clear all beside it. When none is left, Purl says No yarn matches these filters.

Find by colour

The colour button, a palette, sits beside Filter and sort, and on the page of a brand that has colours. It opens Find by colour. Pick a colour from the common colours, from your stash's colours, from the square and its strip of hues, or from a photo. Then tap Show the closest shades.

The list shows the library's shades as tiles, closest first. A yarn of several colours says One of its colours when one of them matches. Each colour is taken from a photo of the shade, most often the maker's own, so take it as a guide: screens and dye lots differ.

Filters still apply, so a weight or a fibre finds the colour in that kind of yarn only. The colour shows as a pill above the list; its cross removes it. When no shade comes very close, Purl says so and shows the nearest.

On a shade's page, Find this colour in other yarns opens the list on that shade's colour, without the yarn you started from. On a phone, Back takes you to that yarn again.

Yarns that knit the same

A catalogue yarn's page has a card called Yarns that knit the same: the closest yarns in the catalogue, at the same weight, gauge and needle. Each says how close its fibre is, as Same blend or, for example, 80% alike. Tap one to open it.

Knit a swatch before you swap; the card says so too.

The button under the list, See all N and compare (or Open in Substitute yarn when the card already shows them all), opens Substitute yarn with this yarn filled in, and adds the yarns in your stash that match.

A yarn that lists none of weight, gauge, needle or fibre has no such card.

Substitute yarn

Substitute yarn on the front page finds a yarn to knit a pattern with instead. Start from the yarn the pattern asks for, or set what it should match yourself. It looks in your stash and in the catalogue.

Tap a match to see its card. On a yarn from the catalogue, Open in the Yarn library opens that yarn's own page. Back takes you to your search again, as you left it.

Duplicates

If you end up with two of your own yarns for the same yarn, usually a blank weight one time and a filled one the next, a card appears in Your own yarns, under Share your yarns and Import: N possible duplicates, same brand & yarn, with a row for each and a Merge button beside it. Tap it and they fold into one. Barcodes are combined, blank fields are filled from the others, and the most complete entry is kept.

Sharing your library

Share your yarns in Your own yarns writes a .purlt file with your own yarns and opens the system share sheet. Email it, put it in Drive, send it however you like.

Your friend taps Import in their own Your own yarns and picks the file, or simply opens the .purlt from their file manager, and Purl merges:

  • Yarns that match on brand, name and weight get their barcodes combined, and their known colours folded in. Where you both know a colour by the same name, your own shade is kept and their barcodes are still added.
  • Anything new lands as a fresh entry.

No yarn, projects or photos cross over. Only the library.

The flywheel

Over time:

  1. You scan yarn, and your library fills out.
  2. You share a .purlt with a friend, or it rides along in your regular .purl backups.
  3. Those yarns get folded into the bundled catalogue in a later Purl release.
  4. The next person installing Purl gets them on day one.

The whole catalogue is built this way, and the folding-in step is manual by design.

A note on scanning

Scanning is still experimental, and Purl says so in a one-time note the first time you open the camera. It reads EAN, UPC, Code 128, Code 39 and QR codes. Ball-band barcodes are small and often on shiny paper, so give it light and hold the band flat.

See also

  • Yarn stash: the scanning flow from the stash side, and the colours Purl remembers.
  • Tutorial: your yarn, in and out: one scan, start to finish.
  • Backups: .purlt is one of three share formats, alongside .purl for a whole backup and .purlp for a single pattern.