Skip to content

Plugin Development Guide

This chapter is the shortest path from "I understand what MINT is" to "I can build and install a plugin." Read it after the platform path is clear: deploy MINT, understand the experiment data model, then learn how plugins fit into the platform.

Core path

StepPageOutcome
1First analysis pluginScaffold hello-mint, run it locally, read an experiment through PlatformContext, and build a .mint bundle
2Adding a frontendAdd a Vue frontend with SDK components, generated API clients, and platform-aware layout
3Design plugin with tablesBuild an experiment-design plugin with SQLModel tables, CRUD routes, and migrations
4Plugin rolesAdd plugin-specific viewer/editor/admin roles and enforce them in backend routes

The tutorials are written so you can follow them in order without reading the full API reference first. Each step links to the concept page or recipe you need at that moment.

Mental model before coding

ConceptRead when
Plugin typesYou need to choose STATIC, ANALYSIS, EXPERIMENT_DESIGN, or FULL
Plugin lifecycleYou need to know what happens during install, initialize, upgrade, and uninstall
PlatformContextYour plugin needs experiments, users, project data, settings, or plugin-owned storage
MigrationsYour plugin owns tables or needs production-safe schema changes

What to use after the first plugin works

NeedSection
A copy-paste pattern for one taskRecipes
Frontend components, composables, tokens, or FormBuilderFrontend
Packaging, publishing, CI, deployment, versioningOperations
Exact Python, frontend, migration, client, or CLI signaturesAPI Reference

Platform path

New to the platform itself? Read these first, then come back here:

  1. Deploy MINT
  2. Experiment data model
  3. Plugin system

MINT is open source. Made by the Morscher Lab.