# dmog > Translate a document between data formats, and run alchemy programs over it. The documentation of dmog 0.4.0 is in four kinds of page: tutorials, how-to guides, reference, and explanation. Every page has a Markdown version at its address, with `.md` in place of `.html`. ## Tutorials - [Translate your first document](https://dmog.tabnas.dev/tutorials/first-translation.md): Take a CSV file and write it as JSON, YAML, and TOML, then translate one part of it, and meet the one thing a format refuses. - [Write your first program](https://dmog.tabnas.dev/tutorials/first-program.md): Write an alchemy program, check it, run it over a JSON document, then turn a nested document into a table and write the table as CSV, JSON, and YAML. ## How-to guides - [Install dmog](https://dmog.tabnas.dev/how-to/install.md): Install the dmog command with npm, Go, or Cargo, and check that it runs. - [Translate a document to another format](https://dmog.tabnas.dev/how-to/translate-a-document.md): Write a file, or standard input, in another format, and save the result. - [Translate part of a document](https://dmog.tabnas.dev/how-to/translate-part.md): Pick one value out of a document with --path and write only that value. - [Name the key a document is written under](https://dmog.tabnas.dev/how-to/name-the-root.md): Choose the key --key wraps a document under, for a format whose root must be an object. - [Translate a document that cannot be streamed](https://dmog.tabnas.dev/how-to/read-whole.md): Use --whole for a document with a repeated key or several YAML documents, which dmog cannot write as it reads. - [Reshape a document while translating it](https://dmog.tabnas.dev/how-to/reshape-with-a-program.md): Run an alchemy program over the input with --with, and write what it returns in the target format. - [Convert a grammar between ABNF, EBNF, and GBNF](https://dmog.tabnas.dev/how-to/convert-a-grammar.md): Write a grammar from one notation in another, and understand the refusals when a notation cannot say a rule. - [Limit how much dmog writes](https://dmog.tabnas.dev/how-to/limit-output.md): Stop a translation or a program with --max-output-bytes once its output would pass a size you choose. - [Run a program over a document](https://dmog.tabnas.dev/how-to/run-a-program.md): Run an alchemy program over a JSON document with dmog run, and choose how a table it returns is written. - [Check and format a program](https://dmog.tabnas.dev/how-to/check-and-format.md): Find the mistakes in an alchemy program before it runs, and print it in canonical or layout form. - [Find out what a program keeps in memory](https://dmog.tabnas.dev/how-to/explain-a-program.md): Read the plan report dmog explain prints, to learn how a program reads its input and what it holds while it runs. - [Handle dmog's failures in a script](https://dmog.tabnas.dev/how-to/handle-failures.md): Tell success from failure by the exit status, read the failure object on standard error, and know when output was left behind. - [Use the TypeScript library](https://dmog.tabnas.dev/how-to/use-the-typescript-library.md): Add @tabnas/dmog to a Node.js project, translate a string or a stream, run a program, read a failure, stop a run, and choose between the asynchronous and synchronous forms. - [Use the Go library](https://dmog.tabnas.dev/how-to/use-the-go-library.md): Add the dmog module to a Go program, translate a string or a stream, run a program, read a failure, set a limit, and stop a run with its context. - [Use the Rust library](https://dmog.tabnas.dev/how-to/use-the-rust-library.md): Add tabnas-dmog to a Rust project, translate a string or a stream, run a program, read a failure, and stop a run that is under way. ## Reference - [Command line](https://dmog.tabnas.dev/reference/command-line.md): Every dmog command and option, what each reads and writes, and the rules every command shares. - [Formats](https://dmog.tabnas.dev/reference/formats.md): Every format dmog reads and writes, with the shapes, the parts and the losses of each. - [Failures](https://dmog.tabnas.dev/reference/failures.md): The failure object dmog writes on standard error, every failure code, and the exit status each one gives. - [The three builds](https://dmog.tabnas.dev/reference/builds.md): The TypeScript, Go, and Rust builds of dmog, what each needs, where each is published, and the library each package holds. - [The libraries](https://dmog.tabnas.dev/reference/library.md): The calls and options of the library in each build's package, in TypeScript, Go, and Rust, with their defaults, the failures they return, how they stream, and the threads they run on. ## Explanation - [What dmog is made of](https://dmog.tabnas.dev/explanation/composition.md): dmog's library joins three libraries that do not know about each other, the language, the routers, and the renderers, and the dmog command is one of its users. - [Why dmog streams](https://dmog.tabnas.dev/explanation/streaming.md): dmog writes a translation as it reads the document, which keeps memory flat, and that choice explains its refusals, its partial output, and --whole. - [What a translation keeps](https://dmog.tabnas.dev/explanation/translation.md): How dmog translates between any two of its formats without a translator for each pair, and why a translation loses some things and refuses others. - [Why a program is checked before it runs](https://dmog.tabnas.dev/explanation/programs.md): An alchemy program is compiled into a plan before it reads a byte, which is what lets dmog report mistakes early and state what a run keeps in memory. ## Optional - [Repository](https://github.com/tabnas/dmog): The code of the three ports, and their releases.