Getting started
Go from an empty folder (or an existing Next/Nuxt app) to a module running against your Directus project.
Prerequisites
- Node 20+
- Directus 11+ (12.2+ recommended for additive schema merge)
- A static admin token from Directus (User → Token)
Init your app
dkit init detects Next or Nuxt, or scaffolds one if the folder is empty. It writes dkit.json with your Directus URL, framework, and preferred UI kit.
npx dkit init --url http://localhost:8010 --token <token>
Add a module
Pick a module from the module directory, then install schema, access, and UI in one command:
npx dkit add blog --seed
Interactive mode asks for a collection prefix and route base path. Use --yes for CI.
What you get
- Collections, relations, and policies on Directus
- Owned files under
lib/dkit/andcomponents/dkit/ - Optional seed data so list/detail UI works immediately (
--seed)
UI kits and themes: UI kits. Agent tooling: MCP server.