Type-check the code in your Markdown
Kiira runs the TypeScript and JavaScript code fences in your docs through the compiler against your real project API, reporting errors on the exact Markdown line — in your editor, on the CLI, and in CI.
$ pnpm add -D kiira
$ pnpm kiira init
$ pnpm kiira check
✓ Kiira found no errors in 12 files.Watch Kiira catch a bug
A broken snippet goes in, runs through the real TypeScript compiler, and comes back with the errors flagged on the exact line — the same check you get in your editor, on the CLI, and in CI.
Usage
Call the hook and send a message:
import { useChat } from "@tanstack/ai/react" const chat = useChat({ onMessge: reset })chat.sendMessages("hi")It returns the chat instance.

Usage
Call the hook and send a message:
import { useChat } from "@tanstack/ai/react" const chat = useChat({ onMessge: reset })chat.sendMessages("hi")It returns the chat instance.
Everything that breaks a copy-pasted example
Docs rot quietly — and agents hallucinate APIs with total confidence. Kiira fails the check the moment an example stops matching your real types.
One engine, every surface
The same check powers your editor, the command line, and CI — so "it passes locally" means "it passes in the PR."
kiira-core
the check engine

CLI
kiira check
VS Code
live diagnostics
GitHub Action
PR annotations
Everything Kiira gives you
Real type checking
Kiira runs the code fences in your Markdown through the TypeScript compiler against your real project API — invalid imports, missing exports, and wrong option names fail.
Learn moreErrors on the Markdown line
Diagnostics map back to the exact line inside the fence — in your editor, on the CLI, and in CI — not to some generated virtual file.
Learn moreCatches hallucinated APIs
Docs written by AI agents love to invent APIs. Kiira catches invalid imports, wrong subpaths, bad prop names, and non-copy-pasteable examples.
Learn moreMonorepo aware
Workspace mode discovers your pnpm/npm/yarn packages and resolves @your-scope/* and third-party imports with no hand-written tsconfig paths.
Learn moreEditor + CLI + CI
A VS Code extension for live diagnostics, a kiira CLI for local checks and --fix, and a GitHub Action for annotations in pull requests.
Learn moreQuick fixes & --fix
Kiira rewrites mistagged ts fences to tsx, groups continuation snippets, and surfaces TypeScript's own quick fixes in your editor.
Learn moreThree ways to run Kiira
CLI
Install kiira and run kiira check locally or in CI.
View on npmVS Code
Live diagnostics and quick fixes as you write Markdown.
Get the extensionGitHub Action
Drop AlemTuzlak/kiira@v1 into a workflow to annotate failing docs on the exact line of every pull request.
Read the guide