https://github.com/bryantgillespie/extension-starter.git
Build custom Directus extensions with a full local dev environment.
npm install -g pnpm)# 1. Clone and install
git clone https://github.com/bryantgillespie/extension-starter.git
cd extension-starter
pnpm install
# 2. Start Directus
docker compose up -d
# 3. Start extension dev mode
pnpm dev
# 4. Open Directus
# http://localhost:8055
# Login: admin@example.com / d1r3ctu5
Claude Code is an AI coding assistant that understands this project. It can help you build extensions, debug issues, and navigate the codebase.
# Install Claude Code
curl -fsSL https://claude.ai/install.sh | bash
# Start in this project
cd extension-starter
claude
The .claude/CLAUDE.md file provides Claude with context about Directus extension development.
extensions/
my-interface/ # Example interface extension
src/
my-interface/
index.ts # Extension definition
interface.vue # Vue component
package.json
tsconfig.json
docs/
extensions/ # Detailed extension documentation
Add more extension types to your bundle:
cd extensions/my-interface
pnpm dlx create-directus-extension@latest add
This prompts you to select an extension type and adds it to your bundle.
| Type | Description |
|---|---|
| interface | Custom field input |
| display | Custom field display |
| layout | Custom collection view |
| module | Custom sidebar page |
| panel | Dashboard widget |
| operation | Flow operation |
| endpoint | Custom API route |
| hook | Event listener |
pnpm build before deploying