Your One-Stop Publication Workbench.
Homepage | Download | Documentation | Community Forum | Discord | Contributing | Support Us | Mastodon

Zettlr brings simplicity back to your texts. Open-minded writing that adapts to your style. Fast information retrieval that finds what matters to you. Versatile exporting that enables you to adapt to whatever publication pipeline your employer or school uses.
Focus on what matters to you.
Publish, not perish.
Table of Contents
… and the best is: Zettlr is Free and Open Source Software (FOSS)!
Download the latest release and install it as you would any other app. Currently supported are macOS, Windows, and most Linux distributions.
On our website and here on GitHub, we provide a set of installers for the most common use-cases. We provide both 64-bit installers as well as installers for ARM systems (called "Apple Silicon" in the macOS ecosystem). 32-bit is not supported. We offer the following binaries directly:
Thanks to our community, we can also offer you a variety of other setup opportunities via package managers:
All other platforms that Electron supports are supported as well, but you will need to build the app yourself.
[!TIP] Zettlr is fully supported by community donations. You can donate once, or monthly. Learn more on our website. Thank you!
After you have installed Zettlr, head over to our documentation to get to know Zettlr. The app ships with a small tutorial which covers the basics.
If you are new to Zettlr, refer to our first time users guide. You might also want to consider installing LaTeX to unlock all export profiles of the app.

You can compile the app for yourself, if you prefer. To do so, refer to our
development guide below to ensure you have all required dependencies installed.
Then, you can build the app for your computer using the command yarn package.
As an Open Source application, Zettlr always welcomes contributions from the community. You do not need to know how to write code to help! A full overview over all the areas where you can help can be found in our contributing guide. In the following, we introduce you to setting up the Zettlr source code locally.
Zettlr is an Electron-based app. To start developing, you'll need to have the following installed on your computer:
lts/jod).
To test what version you have, run node -v.package-lock.json-files and many commands require yarn.
You can install this globally using npm install -g yarn or Homebrew, if you
are on macOS.xcode-select --install sufficesThen, simply clone the repository and install the dependencies on your local computer:
git clone https://github.com/Zettlr/Zettlr.git
cd Zettlr
yarn install --immutable
[!CAUTION] Ensure you run
yarn installwith the--immutableflag. This ensures that yarn will stick to the versions as listed in theyarn.lockand not attempt to update them. This can prevent supply-chain attacks that could infect your computer.
During development, hot module reloading (HMR) is active so that you can edit
the renderer's code easily and hit F5 after the changes have been compiled by
electron-forge. You can keep the developer tools open to see when HMR has
finished loading your changes.
Zettlr relies on three tech stacks: Electron, Node.js, and Vue for the frontend. In order to provide code, you should have basic familiarity with the following topics and/or manuals (ordered by descending importance):
Zettlr offers full debugging-support within VS Code, powered by configurations
in .vscode/launch.json. You can start a debugging session directly from the
debugging sidebar. You can debug either the main process or attach the debugger
to an individual renderer process.
[!TIP] To learn more about debugging in VS Code, read the official guide.
As an Electron-app, Zettlr inherits its distinction into one main process and several renderer processes, the latter of which correspond to the individual windows. On top of this, Zettlr implements a relatively classical server/single-page-application pattern. Here, the main process functions as a server that orchestrates the application windows (think of each as its own, individual, SPA) and enables a bridge between them and the operating system.
All main process code resides in the source/app directory, which includes
three parts:
lifecycle.ts module that performs pre-boot environment checks and
facilitates start and shutdown of the app.app-service-container.ts file which includes the primary application
service container.service-providers, which are
all classes implemented as singletons.During boot, the lifecycle module will perform an environment check and then continue to load the application service container, which in turn loads all the service provider singletons. Those will remain active and running throughout the lifetime of the app. They serve requests from the renderer processes (implemented via Electron's IPC module) and monitor the operating system, e.g., for theme or file changes.
The individual renderer processes, or windows, are managed by the
WindowManager, which is a service provider. Upon request, it will instantiate
a new BrowserWindow and load the correct entry point for the SPA that serves
as the corresponding window.
The renderers are fully functional SPAs with three notable differences compared to normal SPAs:
fetch, they communicate with the
main process via the IPC module. This works essentially akin to websockets,
except we do not have to instantiate a connection first.source/common/modules/preload).This section lists all available commands that you can use during application
development. These are defined within the package.json and can be run from the
command line by prefixing them with yarn. Run them from within the base
directory of the repository.
startUse this command to carefree test any changes you make to the application. This command will start the application, but will provide a custom configuration and a custom directory. Thus, it will not touch any files that a regular Zettlr installation will use.
[!CAUTION] The first time you start this command, pass the
--clean-flag to copy a bunch of test-files to your./resources-directory, create atest-config.ymlin your project root, and start the application with this clean configuration. Then, you can adapt thetest-config.ymlto your liking (so that certain settings which you would otherwise always set will be pre-set without you having to open the preferences).
Whenever you want to reset the test directory to its initial state (or you
removed the directory, or cloned the whole project anew), pass the flag
--clean to the command in order to create or reset the directory.
This is also necessary if you changed something in test-config.yml.
If you want to prevent a config-file from being created (e.g., to simulate the
first start experience), pass the flag --no-config to this command.
You can pass additional command-line switches such as
--clear-cache as well. They will be passed to the child process.
Additionally, have a look at our full development documentation.
packagePackages the application, but not bundle it into an installer. Without any suffix, this command will package the application for your current plat
$ claude mcp add Zettlr \
-- python -m otcore.mcp_server <graph>