New to Yarn Spinner?
Start here.
Yarn Spinner is the friendly tool for writing interactive dialogue in games. Whether you're a writer who's never coded or a programmer who wants better narrative tools — we've got you.
title: Start
---
Guide: Welcome, traveller!
Guide: Where would you like to go?
-> The enchanted forest
<<jump Forest>>
-> The village market
<<jump Market>>
-> I'm just looking around
Guide: Take your time!
===Learn the Yarn Language
A scripting language designed to be readable by humans. If you can write a screenplay, you can write Yarn.
First Steps
Nodes, lines, and your first choices.
title: Start
---
Mae: Hey, how's it going?
-> Pretty good!
-> Not great...
Mae: Yeah, me neither.
===Fundamentals
Variables, flow control, and options.
<<declare $gold = 0>>
<<set $gold to $gold + 10>>
<<if $gold >= 50>>
Shop: Welcome back, big spender!
<<else>>
Shop: Take a look around.
<<endif>>Advanced
Storylets, saliency, and node groups.
title: TavernGossip
when: visited("Tavern") > 3
---
Barkeep: You again? I heard a
rumour about the old mine...
<<jump OldMineIntro>>
===Choose Your Engine
Yarn Spinner integrates with the game engines you already use.
Editors & Tools
Write, preview, and test your dialogue before it ever reaches your game.
Try Yarn Spinner
Write and run Yarn scripts right in your browser. Zero setup.
Web AppYarn Spinner for VS Code
Syntax highlighting, graph view, preview, and debugging.
ExtensionStory Solver
Verify your narrative logic. Find soft locks and broken quest states.
Verification ToolPlayground
A new standalone editor for Yarn Spinner.
Coming Soon


