Quickstart
In order to get started with MD-Models, you can follow the steps below.
Installation
In order to install the command line tool, you can use the following command:
cargo install mdmodels
Writing your first MD-Models file
MD-Models files can be written in any editor that supports markdown. In the following is a list of recommended editors:
We also provide a web-editor at mdmodels.vercel.app that can be used to write and validate MD-Models files. This editor not only features a syntax higlighted editor, but also ...
- Live preview of the rendered MD-Models file
- Graph editor to visualize the relationships between objects
- Automatic validation of the MD-Models file
- Export to various schema languages and programming languages
Packages
The main Rust crate is compiled to Python and WebAssembly, allowing the usage beyond the command line tool. These are the main packages:
-
Core Python Package: Install via pip:
# Mainly used to access the core functionality of the library pip install mdmodels-core
-
Python Package: Install via pip:
# Provides in-memory data models, database support, LLM support, etc. pip install mdmodels
-
NPM Package: Install via npm:
# Mainly used to access the core functionality of the library npm install mdmodels-core
Examples
The following projects are examples of how to use MD-Models in practice: