# Rasti > HTML-first, composable user interfaces **Rasti is a library for building state-driven user interfaces from HTML-first components.** A component's template renders as **HTML first**. That markup is then **hydrated**, and from then on, when state changes, Rasti **patches only the regions that changed**. This has two consequences: - Parsing and DOM creation are delegated to the browser's own parser. - Server rendering, static builds and browser rendering all follow the same path. Underneath sits a small MVC core: a component is a **view**, **models** hold its state, and **event emitters** tie the two together. ## Docs - [Writing components](https://rasti.js.org/docs/components.md): the three forms and which to use, interpolations, containers and the root partial. - [TypeScript](https://rasti.js.org/docs/typescript.md): typing components, models and template interpolations. - [API documentation](https://rasti.js.org/docs/api.md): every Rasti class, method and option. - [Architecture overview](https://rasti.js.org/docs/architecture.md): how the pieces fit together: components, the render engine, recycling and SSR. - [Agent skill](https://github.com/8tentaculos/rasti/blob/master/skills/rasti/SKILL.md): the API, patterns and best practices for coding agents. Install it with `npx skills add 8tentaculos/rasti`, or copy `node_modules/rasti/skills/rasti` into your agent's skills folder. ## Optional - [README](https://rasti.js.org/index.md): features, installation and getting started. - [Changelog](https://github.com/8tentaculos/rasti/blob/master/CHANGELOG.md): release history and migration notes. - [Full documentation](https://rasti.js.org/llms-full.txt): the README and every documentation page in one file.