# Maryk > Kotlin Multiplatform data modeling, serialization, typed querying, and versioned storage. Start with What is Maryk, Getting Started, and the First Store Tutorial. For implementation details, follow the relevant property, request, or store reference. Platform support and capabilities vary by storage engine. All links below point to Markdown generated from the same documentation build as the website. Each page includes its canonical website URL and repository source. Code examples, constraints, and migration guidance are preserved. Confirm compatibility with the Maryk release used by your project. ## Start here - [Getting Started](https://maryk.io/getting-started/index.md): Add Maryk, define your first model, validate values, serialize them, and run a store request. - [In Practice](https://maryk.io/in-practice/index.md): What using Maryk looks like through code, CLI, App, and deployment workflows. - [Maryk](https://maryk.io/index.md): Define your data once in Kotlin. Reuse the same model for validation, serialization, querying, and versioned storage across… - [Tradeoffs](https://maryk.io/tradeoffs/index.md): When Maryk is a strong fit, when it is not, and how to compare it with common alternatives. - [First Store Tutorial](https://maryk.io/tutorials/first-store/index.md): Build one model, store records in memory, query them, and inspect versioned changes. - [What is Maryk?](https://maryk.io/what/index.md): A conceptual tour of Maryk's model, request, storage, serialization, and tooling layers. - [Why choose Maryk?](https://maryk.io/why/index.md): Reasons to pick Maryk when you need Kotlin-first typed data, version-aware storage, and portable queries. ## Practical guides - [Build a Searchable Catalog](https://maryk.io/guides/build-searchable-catalog/index.md): Combine ordered indexes, named search indexes, filters, and reference graphs for catalog-style lookup. - [Changing Models Safely](https://maryk.io/guides/change-models-safely/index.md): Add, rename, retire, and backfill model fields without breaking stored data, clients, or tools. - [Design Sync-Friendly Keys](https://maryk.io/guides/design-sync-friendly-keys/index.md): Choose Maryk keys that support local writes, ordered scans, and incremental sync. - [Expose a Remote Store and Inspect It](https://maryk.io/guides/expose-remote-store-and-inspect-it/index.md): Serve a local Maryk store over HTTP, connect with the App or RemoteDataStore, and inspect records safely. - [Guides](https://maryk.io/guides/index.md): Task-oriented Maryk guides for modeling, keys, search, schema changes, and remote inspection. - [Model a Local-First App](https://maryk.io/guides/model-a-local-first-app/index.md): Shape Maryk models, stores, queries, and inspection workflows for an app that owns local data first. ## Data modeling and property types - [Designing Data with Maryk](https://maryk.io/data-modeling/data-design/index.md): This guide helps you design data models that read and write efficiently in Maryk. You’ll learn how to decide when to embed… - [What is a DataModel?](https://maryk.io/data-modeling/datamodels/index.md): A DataModel is the blueprint for a record. It contains property definitions that describe the type of each field, how it is… - [Index Design](https://maryk.io/data-modeling/index-design/index.md): Choose indexes from the application’s filters, ordering and paging requirements. Use the operator reference for constructor… - [Querying indexes](https://maryk.io/data-modeling/index-recipes/index.md): Start with Index design and the operator reference. - [Index operators and composition](https://maryk.io/data-modeling/index-reference/index.md): Use Index design to choose a query pattern. This reference covers operator construction and composition. Scalar ordered… - [Core Documentation](https://maryk.io/data-modeling/index.md): Maryk’s core module defines the data contract: models, properties, keys, queries, serialization and version-aware behavior. - [Keys in DataObjects](https://maryk.io/data-modeling/keys/index.md): Every DataObject is stored under a unique key that acts as its identifier. Adding data with an occupied key returns… - [Properties](https://maryk.io/data-modeling/properties/index.md): Maryk models are built from properties. Each property declares the data type, how the value is validated and how it is… - [Property Operations](https://maryk.io/data-modeling/properties/operations/index.md): Properties can be changed, deleted or checked with property operations. - [Property References](https://maryk.io/data-modeling/properties/references/index.md): To filter on a property you need a property reference. For example, to find all people named Smith you need a reference to… - [Boolean](https://maryk.io/data-modeling/properties/types/boolean/index.md): Represents a true or false value. - [Date](https://maryk.io/data-modeling/properties/types/date/index.md): Represents a calendar date using kotlinx.datetime.LocalDate, including negative years. - [DateTime](https://maryk.io/data-modeling/properties/types/datetime/index.md): Represents a date combined with a time using kotlinx.datetime.LocalDateTime. It carries no time zone; byte encoding… - [Decimal](https://maryk.io/data-modeling/properties/types/decimal/index.md): Represents an exact fixed-scale decimal backed by an arbitrary-size signed unscaled integer. Each property stores that… - [Embedded Object Property](https://maryk.io/data-modeling/properties/types/embedded-object/index.md): Note: This type can only be used in object DataModels defined in code and cannot be used for queries. - [Embedded Values Property](https://maryk.io/data-modeling/properties/types/embedded-values/index.md): A property that contains values from a selected DataModel. See DataModels for more details on how to define DataModels. - [Enum](https://maryk.io/data-modeling/properties/types/enum/index.md): Represents a value chosen from a predefined enum. - [Fixed bytes](https://maryk.io/data-modeling/properties/types/fixedbytes/index.md): Represents a fixed-length byte array. - [Flex bytes](https://maryk.io/data-modeling/properties/types/flexbytes/index.md): Represents a variable-length byte array. - [GeoPoint](https://maryk.io/data-modeling/properties/types/geopoint/index.md): Represents a geographical coordinate. Precision is up to 7 digits (~11 mm / 0.43 inch). Coordinates must be finite and… - [Incrementing Map Property](https://maryk.io/data-modeling/properties/types/incrementing-map/index.md): Stores items indexed by an auto-incrementing number. - [List Property](https://maryk.io/data-modeling/properties/types/list/index.md): Stores an ordered list of items where duplicates are allowed. - [Map Property](https://maryk.io/data-modeling/properties/types/map/index.md): Represents a map from keys to values. - [Multi Type Property](https://maryk.io/data-modeling/properties/types/multi-type/index.md): A property that can contain a value of one of multiple predefined types. Each type has its own property definition. Refer… - [Number](https://maryk.io/data-modeling/properties/types/number/index.md): Used to store numbers in specific formats. Signed and unsigned integers as well as floating‑point types are available. - [Reference](https://maryk.io/data-modeling/properties/types/reference/index.md): References another DataObject by key. - [Set Property](https://maryk.io/data-modeling/properties/types/set/index.md): Stores an unordered set of unique items. - [String](https://maryk.io/data-modeling/properties/types/string/index.md): Represents textual values. - [Time](https://maryk.io/data-modeling/properties/types/time/index.md): Represents the time of day in hours, minutes, seconds and optionally milliseconds or nanoseconds. - [Value Object Property](https://maryk.io/data-modeling/properties/types/value-object/index.md): Contains another DataModel as a fixed-size value. See DataModels for more details on how to define DataModels. - [Versioning in Maryk](https://maryk.io/data-modeling/versioning/index.md): Maryk assigns every stored value change a monotonically ordered version. Versions make four workflows possible: ## Queries, history, and live updates - [Data Aggregations](https://maryk.io/querying/aggregations/index.md): Aggregations help you analyse data by summarising large result sets into concise values. Maryk offers built‑in operators… - [Atomic requests](https://maryk.io/querying/atomic/index.md): Use AtomicRequest when several record mutations form one logical operation. The existing Add, Change, Delete, and Collect &… - [Collect & Inject Values Requests](https://maryk.io/querying/collect-inject/index.md): Maryk allows values from one response to be injected into another request. You can request an object, collect specific… - [Filters](https://maryk.io/querying/filters/index.md): Filters narrow query results. They can be applied to Get and Scan requests. - [History and revision paging](https://maryk.io/querying/history/index.md): Use the query overview to choose a request and a write boundary. - [Query Data](https://maryk.io/querying/index.md): Maryk stores support a range of query actions. Requests can run locally or be serialized and sent to a remote store. - [Reading and writing records](https://maryk.io/querying/reads-writes/index.md): Use the query overview to choose a request and a write boundary. - [Property Reference Graphs](https://maryk.io/querying/reference-graphs/index.md): Property reference graphs define which properties to retrieve in a query. They allow you to select specific fields and… - [SQL execution and limits](https://maryk.io/querying/sql/execution/index.md): Start with the SQL overview for installation and a first query. - [SQL](https://maryk.io/querying/sql/index.md): Maryk SQL is an optional Kotlin Multiplatform query and mutation layer over Maryk’s public datastore requests. Use SQL for… - [SQL queries and values](https://maryk.io/querying/sql/queries/index.md): Start with the SQL overview for installation and a first query. - [SQL writes and transactions](https://maryk.io/querying/sql/writes/index.md): Start with the SQL overview for installation and a first query. - [Serializable transactions](https://maryk.io/querying/transactions/index.md): Use store.transaction { tx -> ... } for an interactive read/write transaction, or store.beginTransaction() when the caller… - [Synchronization and live views](https://maryk.io/querying/updates/index.md): Use the query overview to choose a request and a write boundary. ## Storage engines and operations - [Maryk + FoundationDB: Architecture Overview](https://maryk.io/stores/foundationdb/architecture/index.md): This document describes how the FoundationDB storage engine is structured inside Maryk, how requests flow through the… - [FoundationDB backup and recovery](https://maryk.io/stores/foundationdb/backups/index.md): Use fdbbackup, backup_agent and fdbrestore for operational recovery of a FoundationDB deployment. These are… - [Cluster-wide live updates](https://maryk.io/stores/foundationdb/cluster-updates/index.md): By default, executeFlow only receives updates originating from the current process (in-memory update flow). - [FoundationDB configuration and limits](https://maryk.io/stores/foundationdb/configuration/index.md): Start with the store overview for a first connection. This guide covers opening options, transaction policies, memory, read… - [Maryk FoundationDB Store](https://maryk.io/stores/foundationdb/index.md): Distributed transactional storage for Maryk models, queries, history and live updates. The store uses FoundationDB’s… - [Local Test Server](https://maryk.io/stores/foundationdb/local-testing/index.md): For an isolated native backup/restore rehearsal using separate disposable clusters, see the recovery drill. It runs… - [FoundationDB Migrations](https://maryk.io/stores/foundationdb/migrations/index.md): This guide documents migration behavior in FoundationDBDataStore and operational controls. - [Maryk + FoundationDB: Storage Layout](https://maryk.io/stores/foundationdb/storage/index.md): This document explains how Maryk stores data in FoundationDB (FDB): what subspaces are used, how keys and values are… - [Maryk Stores](https://maryk.io/stores/index.md): Maryk ships with multiple storage engines that implement the same datastore API. You can pick the engine that best matches… - [IndexedDB Store Architecture](https://maryk.io/stores/indexeddb/architecture/index.md): The IndexedDB store maps Maryk’s ordered key-value storage model to browser-native IndexedDB primitives. - [Maryk IndexedDB Store](https://maryk.io/stores/indexeddb/index.md): Persistent browser store for Maryk JS and WasmJS apps. - [IndexedDB migrations](https://maryk.io/stores/indexeddb/migrations/index.md): On open, stored model definitions are compared with the configured models. Compatible changes are handled automatically;… - [IndexedDB Storage Layout](https://maryk.io/stores/indexeddb/storage/index.md): One IndexedDB database is opened per Maryk database name. - [Maryk Memory Store](https://maryk.io/stores/memory/index.md): In-memory Maryk data store implementation. Useful for tests and local development. No persistence. Requests are processed… - [Maryk 0.14 datastore performance](https://maryk.io/stores/performance/index.md): Compare stores by the operations and deployment your application needs. These measurements come from a 0.14 development… - [Remote clients and recovery](https://maryk.io/stores/remote/client/index.md): See the Remote Store overview for a first connection. - [Remote Store (HTTP/SSH)](https://maryk.io/stores/remote/index.md): Expose a local Maryk store over HTTP and connect through RemoteDataStore, using the same typed request API as a local… - [Remote HTTP protocol](https://maryk.io/stores/remote/protocol/index.md): See the Remote Store overview for a first connection. - [Serving a remote store](https://maryk.io/stores/remote/server/index.md): See the Remote Store overview for a first connection. - [Maryk RocksDB Store: Architecture](https://maryk.io/stores/rocksdb/architecture/index.md): This document explains how the RocksDB-backed data store is structured and how it maps Maryk’s versioned data model onto… - [Native RocksDB backups](https://maryk.io/stores/rocksdb/backups/index.md): Use RocksDBBackupRepository to recover a complete RocksDB store, including its indexes, Maryk metadata and whatever history… - [RocksDB configuration and tuning](https://maryk.io/stores/rocksdb/configuration/index.md): Existing RocksDBDataStore.open(...) calls need no extra configuration. The defaults balance memory, CPU and storage costs;… - [RocksDB field encryption](https://maryk.io/stores/rocksdb/encryption/index.md): Mark sensitive properties in the model and provide the encryption implementation when opening the store. Keep the keys… - [RocksDB history and transactions](https://maryk.io/stores/rocksdb/history-and-transactions/index.md): Choose history retention when opening a store. The flags control which physical column families Maryk maintains; see the… - [Maryk RocksDB Store](https://maryk.io/stores/rocksdb/index.md): An embedded Maryk data store backed by RocksDB, supporting JVM, Android, Apple platforms, Linux, Windows and Android Native… - [RocksDB Migrations](https://maryk.io/stores/rocksdb/migrations/index.md): This guide documents migration behavior in RocksDBDataStore and how to operate it safely. - [RocksDB Record Storage Structure](https://maryk.io/stores/rocksdb/storage/index.md): RocksDB Record Storage Structure — Maryk documentation. - [Portable backup reference](https://maryk.io/stores/shared/backup-reference/index.md): This page is for custom storage adapters, store implementations and limit tuning. For normal use, start with choosing a… - [Backup and restore](https://maryk.io/stores/shared/backup-restore/index.md): Start here to choose a backup. Use an engine backup to recover a complete database, or a portable backup to move… - [Encryption key rotation](https://maryk.io/stores/shared/encryption-key-rotation/index.md): KeyringFieldEncryptionProvider is an additive envelope around existing FieldEncryptionProvider implementations. New field… - [Portable history backups](https://maryk.io/stores/shared/history-backups/index.md): Use a history backup when earlier record revisions must remain queryable after restore. For current records or backend… - [Maryk Store Shared](https://maryk.io/stores/shared/index.md): The common datastore layer used by Maryk storage engines. Applications normally choose a concrete store; this module is for… - [Model migration contract](https://maryk.io/stores/shared/migrations/index.md): Model migrations change an application’s schema. They are separate from the storage format upgrade performed when opening… - [Portable state backups](https://maryk.io/stores/shared/state-backups/index.md): Use a state backup to save current records or move them between compatible Maryk backends. It preserves record IDs, values,… - [Storage format upgrades](https://maryk.io/stores/shared/storage-format-upgrades/index.md): This guide covers opening a persistent store created by Maryk 0.13.0 with Maryk 0.14.0. New stores need no legacy… - [Store behavior and lifecycle](https://maryk.io/stores/shared/store-behavior/index.md): Use the query guide for request syntax and the transaction contract. This reference explains behavior that matters when… - [Maryk Store tests](https://maryk.io/stores/test/index.md): This subproject contains generic tests for Maryk data store implementations. It validates storage/retrieval behavior and… ## Serialization - [Serialization](https://maryk.io/serialization/index.md): Maryk transports three things: your data models, the data itself, and the requests/responses exchanged with data stores.… - [JSON Serialization](https://maryk.io/serialization/json/index.md): JSON is widely supported and easy to integrate with external services, tools, and browsers. Maryk supports JSON for both… - [ProtoBuf compatibility](https://maryk.io/serialization/protobuf-compatibility/index.md): Use the transport guide for serialization examples. This reference covers mixed-version peers, repeated fields and… - [ProtoBuf Transport](https://maryk.io/serialization/protobuf/index.md): Maryk uses the ProtoBuf v3 encoding for compact, fast, binary transport of data values. You don’t need .proto files:… - [YAML Serialization](https://maryk.io/serialization/yaml/index.md): YAML is a human‑readable format suited for model definitions and example data. Maryk supports YAML for both models and data. ## Tools - [Maryk App Desktop Guide](https://maryk.io/app/index.md): Maryk App Desktop Guide — Maryk documentation. - [CLI commands](https://maryk.io/cli/commands/index.md): CLI commands — Maryk documentation. - [CLI](https://maryk.io/cli/index.md): Interactive terminal client for browsing and editing Maryk stores. - [Maryk Generator](https://maryk.io/generator/index.md): Generate Kotlin and Proto3 source from Maryk model definitions. Choose one generation path per schema: