Kiny is a markup language for writing interactive fiction, with an engine, reader, and editor. A story is a .kin plain-text file that branches via choices and conditions — the reader's choices decide where it goes. Cross-platform, and friendly to Chinese.
A complete short piece written in Kiny — read it right in your browser.
“The last steamer drops you on the foggy harbor's pier, and in a blink the night fog swallows it whole.”
A steampunk harbor night. Commissioned by the Aether Engineering Academy, you must deliver a blueprint to a contact known as “Grey Falcon” — but the one who shows up may not be trustworthy.
Kiny keeps a story's text, choices, and state in one .kin file, with a companion editor that previews as you write.
Desktop editor · file tree on the left, editing in the middle, live preview on the right, instant syntax and semantic checks at the bottom.
Let readers decide with choices; different picks lead to different content and endings.
Track what the reader has been through, then show or hide content and steer what comes next.
A story is a .kin text file — write it in any editor, friendly to version control.
Supports Chinese punctuation and Chinese identifiers; works in the browser, on Windows, and macOS.
The source, side by side with how it plays for the reader.
=== before_setting_out === * {!know_geo} [Spread out the map you carry] > By lamplight you unfold the oilcloth map. > A string of ports along the coastline… > ~ know_geo = true > -> before_setting_out * [Pack up and push open the Rusty Anchor's door] -> sit_down
Linger a moment on the docks. Get your bearings in this foggy city first, or push straight into the tavern?
{!know_geo} makes “look at the map” appear only when you haven't yet; ~ know_geo = true records the state, -> before_setting_out loops back so the option disappears, and -> sit_down moves to the next chapter.The same .kin story runs in the tools below.
Desktop reader · immersive reading of Night at the Foggy Harbor, with prose and choices unfolding by scene.
The core that reads .kin and runs the story: parsing, static checks, runtime, and a terminal player.
A reader in the browser that can be built into a static site (this site's demo is powered by it).
A Tauri 2 desktop reader for offline reading.
Read on mobile devices and pick up an unfinished story anytime, anywhere.
A Tauri 2 desktop editor for writing .kin with instant preview.
Write and revise .kin stories on a phone or tablet.
The following capabilities are planned.
Kiny is fully open source, hosted on GitHub. The desktop editor and reader are available to download — no need to build them yourself.