Yarn

1 program Added 2026-02-12T10:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Yarn Spinner, YarnScript
Provenance: commit 7f7f3d1ede · authored 2026-02-12T11:12:23+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Yarn Spinner (0.60)FunScript (0.26)DesignScript (0.24)Pine Script (0.24)NewtonScript (0.23)

LLM-contributed programs

Interactive Story with Choices

Provenance: commit 7f7f3d1ede · authored 2026-02-12T11:12:23+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.yarn · added: 2026-02-12T10:30:00Z
title: Start
---
Hello! Welcome to our story.
-> I'm excited to be here!
    Great! Let's get started.
    [[Continue|Chapter1]]
-> Tell me more about this place.
    This is a narrative game built with Yarn Spinner.
    It allows for branching dialogue and choices.
    [[Continue|Chapter1]]
===

title: Chapter1
---
<<set $hasKey = false>>
You find yourself in a dark room.
There's a key on the table.
-> Take the key
    <<set $hasKey = true>>
    You pick up the key.
    [[Look around|Explore]]
-> Leave it
    You decide not to take it.
    [[Look around|Explore]]
===

title: Explore
---
<<if $hasKey>>
    With the key in hand, you approach the door.
    You unlock it and step through.
<<else>>
    You approach the door, but it's locked.
    You need to find a key.
<<endif>>
===

Contribute — propose a file extension

Tell us where to find evidence about Yarn (mapped to pl/yarn). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Yarn/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Yaren Yarn Spinner →