> For the complete documentation index, see [llms.txt](https://syntakts.wingio.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://syntakts.wingio.xyz/introduction.md). Agents can also search and read this documentation through its [MCP server](https://syntakts.wingio.xyz/~gitbook/mcp).

# Introduction

A multiplatform library for parsing text and formatting it, designed to be framework independent.

Installation instructions are available [here](https://syntakts.wingio.xyz/introduction/installation.md)

```kotlin
val mySyntakts = syntakts<Unit> {
    rule("@([A-z]+)") { matchResult, context ->
        append("@${matchResult.groupValues[1]}") {
            color = Color.Yellow
        }
    }
}

val nodes = mySyntakts.parse("Welcome, @User")
```
