Features
Multiple Input Sources
Convert from Google Docs or Markdown files with full formatting support
Multiple Output Formats
Export to HTML, Markdown, or self-contained offline bundles
Native Performance
GraalVM native image for instant startup and low memory usage
Live Preview Server
Built-in web server for real-time preview during development
Cross-Platform
Available for Linux (x64, ARM64) and macOS (ARM64)
Zero Configuration
Works out of the box with sensible defaults
Download
Quick Start
Create Source File
Write your content in Markdown or structure a Google Doc following the required templates. Refer to the Markdown Format Guide or Google Docs Format Guide to set up frontmatter, step headers, and info boxes.
Export from Markdown
Create a codelab from a Markdown file:
klaat-snapshot export my-tutorial.md -o output -f html
Export from Google Docs
Convert a Google Doc to a codelab (requires one-time authentication):
klaat-snapshot export https://docs.google.com/document/d/YOUR_DOC_ID -o output -f html
Preview Locally
Start a local server to preview your codelabs:
klaat-snapshot serve -dir output -addr localhost:9090
Open http://localhost:9090 in your browser
Create Source File
Write your content in Markdown or structure a Google Doc following the required templates. Refer to the Markdown Format Guide or Google Docs Format Guide to set up frontmatter, step headers, and info boxes.
Export from Markdown
Create a codelab from a Markdown file:
klaat export my-tutorial.md -o output -f html
Export from Google Docs
Convert a Google Doc to a codelab (requires one-time authentication):
klaat export https://docs.google.com/document/d/YOUR_DOC_ID -o output -f html
Preview Locally
Start a local server to preview your codelabs:
klaat serve -dir output -addr localhost:9090
Open http://localhost:9090 in your browser
About
Klaat is a Kotlin reimagining of Google's claat tool. It provides the same functionality with improved performance through GraalVM native compilation, making it faster to start and more memory-efficient.
Why Klaat?
- Fast - Native binary with instant startup
- Lightweight - No JVM required, minimal dependencies
- Modern - Built with Kotlin, leveraging modern JVM features
- Compatible - Works with existing claat content and formats
Built With
- Kotlin - Modern JVM language
- GraalVM Native Image - Ahead-of-time compilation to native code
- Google Docs API - For importing from Google Docs
- Flexmark - Markdown parsing and rendering
Support & Feedback
For questions, bug reports, or feature requests, please contact: