Kiira

Type-checks the TypeScript code fences in Markdown against the real project

Image 1 of 1: Kiira cover with a Markdown code fence and its type error reported on the source line

Pulls each TS, TSX, JS and JSX fence out of Markdown and MDX, builds an in-memory virtual file per snippet or group, and type-checks them in a TypeScript program seeded from the project's tsconfig, mapping each error to its line in the fence. Runs as a CLI, a GitHub action and in VS Code.

Trade-offs

  • Snippets become in-memory virtual files with a line map, and nothing touches disk. Errors land on the exact line inside the fence, at the cost of fixtures for snippets that aren't complete programs.
  • Every example must be copy-pasteable unless marked partial or ignored. Docs written by agents can't ship a hallucinated import or option name.

Q&A3

Invalid imports and missing exports, wrong package subpaths, wrong function, option or prop names, invalid TypeScript or JavaScript with checkJs, and examples that won't run when pasted.

Reviews

Loading reviews

    More in VS Code

    See all 7 →
    • gitpaneMulti-repo Git dashboard for the terminal and the VS Code Explorer
    • Localization Resource ManagerLocalization files from one binary, as a CLI, terminal UI, web UI or in VS Code
    • SQL CrackVS Code extension that draws SQL query flow, dependencies and column lineage
    • ERD StudioLogical data modelling canvas in VS Code, stored as DBML in the repo
    • CodeVisualizerVS Code extension that draws function flowcharts and codebase dependency graphs
    • uv-vscodeVS Code extension that makes uv scripts and dependencies first-class

    More in TypeScript

    See all 176 →
    • Charted RootsGenealogy and worldbuilding inside an Obsidian vault, from GEDCOM to maps
    • Prisma CalendarCalendar, timelines and recurring notes over the dated notes in Obsidian
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • TileLineBasePlain-text database for Obsidian with tables, kanban, gallery and slides
    • JDFDocument format in plain JSON that renders like a PDF and diffs in git
    • MuTracerPhysically based path tracer for the web on WebGPU, with a WebGL 2 fallback

    More in Testing

    See all 19 →
    • MockNest ServerlessWireMock-compatible API mocking in an AWS account
    • VayuAn API client and native load tester in one local desktop app
    • KatesPerformance, chaos and security testing for Kafka on Kubernetes
    • AgentLeakPrivacy-leakage testing for AI agents across every execution channel
    • KhaosKafka traffic generator that reproduces failures on demand
    • MarionetteDeterministic I/O and simulation testing library for Zig