com.thefibrehose.pattern
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Structured metadata for a knitting/crochet pattern, paired with a com.thefibrehose.pdf record.",
"key": "tid",
"record": {
"properties": {
"attributes": {
"description": "Freeform descriptive tags, e.g. textured, colorwork, top-down.",
"items": {
"maxLength": 64,
"type": "string"
},
"maxLength": 30,
"type": "array"
},
"colorCount": {
"description": "Number of distinct yarn colors used in the pattern.",
"minimum": 1,
"type": "integer"
},
"craftType": {
"description": "Whether this is a knitting, crochet, or other pattern.",
"enum": [
"knitting",
"crochet",
"other"
],
"type": "string"
},
"createdAt": {
"description": "Timestamp when this pattern record was created.",
"format": "datetime",
"type": "string"
},
"difficulty": {
"description": "Optional difficulty rating, 1 (easiest) to 10 (hardest).",
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"hookSizeMm": {
"description": "Recommended crochet hook size in millimeters (e.g. \"5.0\"). Relevant only when craftType is crochet. A string because atproto lexicon has no decimal numeric type.",
"maxLength": 16,
"type": "string"
},
"language": {
"description": "BCP-47 language tag the pattern is written in (e.g. \"en\", \"en-US\").",
"format": "language",
"type": "string"
},
"meterage": {
"description": "Yarn requirement in meters. Mutually exclusive with yardage (enforced client-side).",
"minimum": 0,
"type": "integer"
},
"needleSizeMm": {
"description": "Recommended knitting needle size in millimeters (e.g. \"4.5\"). Relevant only when craftType is knitting. A string because atproto lexicon has no decimal numeric type.",
"maxLength": 16,
"type": "string"
},
"pdfFileName": {
"description": "Denormalized copy of the linked PDF's fileName, so the list view can display it without an extra fetch.",
"maxLength": 1024,
"type": "string"
},
"photo": {
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"description": "Optional photo of the finished piece.",
"maxSize": 5242880,
"type": "blob"
},
"subject": {
"description": "Strong ref to the linked com.thefibrehose.pdf record holding the actual file.",
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"uploaderDid": {
"description": "DID of the account that originally uploaded this pattern. Redundant with the record's own repo ownership today, but keeps provenance explicit and self-describing if this record is ever copied, reposted, or indexed outside its own repo.",
"format": "did",
"type": "string"
},
"yardage": {
"description": "Yarn requirement in yards. Mutually exclusive with meterage (enforced client-side).",
"minimum": 0,
"type": "integer"
},
"yarnWeight": {
"description": "Craft Yarn Council standard yarn weight, 0 (Lace) to 7 (Jumbo).",
"maximum": 7,
"minimum": 0,
"type": "integer"
}
},
"required": [
"subject",
"uploaderDid",
"pdfFileName",
"craftType",
"yarnWeight",
"colorCount",
"language",
"createdAt"
],
"type": "object"
},
"type": "record"
}
},
"id": "com.thefibrehose.pattern",
"lexicon": 1
}
Metadata
- DID
-
did:plc:36qyhxuxgiftzh6pqo4f3pgm - CID
-
bafyreia7faw3vg2ht764vj2qg5d4budrgxclhf57d7dv4yj2pjikfcams4 - Indexed At
- 2026-09-05 16:30 UTC
- AT-URI
-
at://did:plc:36qyhxuxgiftzh6pqo4f3pgm/com.atproto.lexicon.schema/com.thefibrehose.pattern
Version History (3 versions)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
social.craftsky.project.crochet not from the namespace authority
Crochet-specific fields for a craft project post. Referenced from social.craftsky.project.defs#project.details as one variant of the open union. This file defines a referenced type (#details) only; no main record.
-
social.craftsky.project.knitting not from the namespace authority
Knitting-specific fields for a craft project post. Referenced from social.craftsky.project.defs#project.details as one variant of the open union. This file defines a referenced type (#details) only; no main record.
-
social.craftsky.project.defs not from the namespace authority
Shared objects and tokens for craft project metadata. These are used by social.craftsky.feed.post and multiple social.craftsky.project.* detail lexicons.