Skip to main content
Directus is built to be modular and extensible. You can create custom extensions to add new functionality to both the API and admin app.

Extension Types

Interfaces

Custom field input components

Layouts

Custom ways to view collection items

Displays

Custom field display components

Panels

Custom dashboard panel types

Modules

Full custom pages and navigation

Operations

Custom flow operation types

Hooks

Server-side event hooks

Endpoints

Custom API endpoints

Creating Extensions

Use the create-directus-extension package to scaffold new extensions:
This interactive CLI will guide you through creating an extension.

Extension Structure

All extensions follow a similar structure:

Installing Extensions

Local Extensions

Place extensions in the extensions folder:

Extension Packages

Install from npm:
Configure in your environment:

Extension Marketplace

Browse and install extensions directly from the admin app: Settings > Extensions > Marketplace

Development

Hot Reload

Enable automatic reloading during development:

Building

Build your extension:

Testing

Link your extension for local testing:

Next Steps

Extensions SDK

Start building your first extension