3 open-source narrative & NPC AI tools you can inspect, compile, and extend with zero vendor lock-in. Top community picks right now: ink (by Inkle), Yarn Spinner and Twine.
GameDevDB indexes 3 verified narrative & NPC AI listings matching Open Source (FOSS), led by ink (by Inkle), Yarn Spinner and Twine. Publishes full source code under MIT, Apache-2.0, BSD, zlib, MPL-2.0, or GPL licenses with zero royalties and full auditability. Use permissive MIT/Apache/zlib licenses for linked runtime SDKs; standalone GPL authoring suites export 100% proprietary game assets.
Open Source Pipeline Selection
When shipping commercially with open-source tools, verify whether each component is a standalone asset editor (where GPL/MPL outputs are 100% yours) or an embedded runtime SDK (where MIT, Apache-2.0, BSD, or zlib keeps your game binary proprietary and console-NDA compliant).
Narrative architecture splits cleanly into two paradigms: deterministic authored branching scripts (where writers control every word, pacing beat, and quest boolean) and runtime conversational NPC brains (where players speak or type open-ended questions resolved by guardrailed language models).
ink (used on 80 Days, Citizen Sleeper, and Heaven's Vault) and Yarn Spinner (Night in the Woods, DREDGE) store dialogue in clean, Git-diffable plain-text files with conditional variables, knots/stitches, and automatic string-table extraction for localization agencies.articy:draft X provides a structured visual database with official Unreal and Unity importers, while Twine excels at rapid browser playable story prototypes.| Narrative Architecture | Top Tools | Git & Localization Fit | Pricing & Steam Note |
|---|---|---|---|
| Plain-Text Markup Scripting | ink, Yarn Spinner | Clean Git diffs + CSV string IDs | Free (MIT Open Source) |
| Visual Story Graph & CRPG DB | Twine, articy:draft X | HTML export / JSON & Engine plugins | Free GPL / Free <=700 objs |
| Runtime Conversational NPCs | Inworld AI, Convai, Charisma.ai | Cloud/Hybrid REST & Engine SDKs | Usage API / Subscription (Live AI Disclosure) |
How we picked: every tool here belongs to narrative & NPC AI on GameDevDB and publishes its source code under an open-source license. Sort by Hot, Top, or New to compare options. How we rank tools