# Fastify Plugin Guide

In Fastify everything is a plugin, your routes, your utilities and so on are all plugins. And to add a new plugin, whatever its functionality is, in Fastify

### Registers

Register creates a new Fastify context, this means that if you do any change to the Fastify instance, that change will not be reflected into the context’s ancestors. In other words, encapsulated!

Required Plugins must expose a single function with the following signature:

The Fastify’s plugin module is fully reentrant and graph-based, it handles without any kind of problem asynchronous code and it guarantees the load order of the plugins, even the close order.

### Decorators

Fastify offers you a way nice and elegant to wrote an utility: decorator.

Now you can access your utility by doing fastify.util.