# Architecture Overview

Cairnquire uses a Go application server as the primary runtime. The app is primarily server-rendered navigation and API endpoints with a lightweight vanilla JS client for editing and viewing documents.

- Markdown documents are read from the source directory.
- The current version is written into content-addressed storage.
- Metadata lives in the local libsql-compatible database.
- HTML is rendered server-side first.
- A custom light-weight sync binary will make sure a local directory is synced with 

See [[Getting Started]] for a feature-oriented overview.

