Plugins

FreeSewing uses a modular approach where functionality can be extended with plugins. Plugins can provide snippets, macros, store methods, or use any of the lifecycle hooks.

Using plugins

Plugins can be either added to part configurations in designs or added to a pattern instance with Pattern.use().

To import a plugin for use:

Javascript
import { plugin } from { @freesewing/plugin-gore }
TIP

For convenience, each plugin is exported as several names exports:

  • plugin
  • pluginName
  • namePlugin

For example, @freesewing/plugin-gore has named exports plugin, pluginGore, and gorePlugin that all are the same thing.

Plugins we maintain

Notes

Refer to the plugin guide for an in-depth look into plugins.