The fully decoupled Drupal framework for Nuxt and Vue: routing, entities, views, menus and blocks rendered from Drupal's own display configuration.
Druxt = DRUpal + nUXT: fully decoupled Drupal, rendered by Nuxt.
Druxt connects a Drupal backend to a Nuxt frontend. Drupal stays the editorial system your authors know, Nuxt renders the site, and Druxt bridges the two: it reads Drupal's JSON:API and turns routes, content entities, menus, blocks and views into Vue components you can theme.
You choose how much of it to use. The druxt-site module gives you a complete
decoupled site out of the box, driven by your Drupal display configuration. Or
install individual modules and add decoupled routing, entity rendering or
menus to an existing Nuxt project.
Create a working Drupal + Nuxt + Druxt project from the quickstart template:
npx giget@latest gh:druxt/quickstart#develop my-druxt-site
cd my-druxt-site
npm run setup
The getting started tutorial walks through the same steps with explanations. Other starters cover Tome static content and serverless setups.
Or add Druxt to an existing Nuxt 2 project against any Drupal site with JSON:API enabled:
npm i druxt-site
// nuxt.config.js
export default {
modules: ['druxt-site'],
druxt: {
baseUrl: 'https://api.umami.demo.druxtjs.org',
},
};
Every change merged to 0.x is published under the dev tag:
npm i druxt-site@dev
These are unreleased builds. See development releases before using one.
| Module | Package | Purpose |
|---|---|---|
| Druxt | druxt | The client, store and component foundation |
| Blocks | druxt-blocks | Decoupled block and region rendering |
| Breadcrumb | druxt-breadcrumb | Router based breadcrumbs |
| Entity | druxt-entity | Content entities, forms and fields |
| Menu | druxt-menu | Decoupled Drupal menus |
| Router | druxt-router | Drupal routes in Nuxt |
| Schema | druxt-schema | Display mode schemas |
| Site | druxt-site | A decoupled Drupal site out of the box |
| Views | druxt-views | Decoupled Drupal Views |
The Umami food magazine demo renders Drupal's Umami install profile through Druxt, with a Storybook of its components.
Everything lives at druxtjs.org: tutorials, how-to guides, module documentation and the full API reference.
Find support or get involved in building Druxt via the community channels:
Druxt is an open-source project, built by the community for the community. See the Contributing guide for how to get involved.
This repository includes a dev container (.devcontainer/devcontainer.json) for
VS Code, GitHub Codespaces and DevPod, with Node, Yarn
and all dependencies installed on first open.
Pages render empty with the unreleased Decoupled Router 2.1.0 on a site without language prefixes
https://github.com/druxt/druxt.js/issues/1098
Labels: bug
The router asks Decoupled Router without the path's language prefix, so a page in another language loads in English
https://github.com/druxt/druxt.js/issues/1065
Labels: 없음
Contributions are welcomed and appreciated.
Druxt is an open source project, built, supported and maintained by the community, for the community.
The Druxt development environment can be run in a dev container (VS Code, GitHub Codespaces, DevPod) or locally:
First, fork druxt/druxt.js on GitHub,
giving you https://github.com/USER/druxt.js to work from.
.devcontainer/devcontainer.json provides a ready environment with Node 16 and Yarn via corepack. Monorepo dependencies install on first open. It starts from a prebuilt image, defined in .github/.devcontainer and published to ghcr.io/druxt/druxt.js-devcontainer, so a new container does not build its tools.
Dev Containers: Reopen in Container.devpod up github.com/USER/druxt.js, or add the same URL as a workspace source in DevPod's desktop app.yarn build after changing one.The container covers package development, unit tests and linting. It does not provision a Drupal backend. Use the examples/drupal .devtools flow (below) or a quickstart repository when you need one.
git clone https://github.com/USER/druxt.jsmake setup (enables corepack and installs dependencies)yarn buildcd examples/drupal && make build (or .devtools/assemble && .devtools/provision && .devtools/start)yarn example:druxt-siteIf
makeis not available, runcorepack enable && yarn installmanually instead ofmake setup. This project uses Yarn Berry via corepack, which requires Node 16.9 or later.
One of the easiest ways to contribute to Druxt is to open issues, giving as much detail as possible to make it easier for other contributors and maintainers: open an issue
When reporting bugs please make sure to provide detailed steps to reproduce the issue, and when possible provide a minimal reproduction (a repo or snippet that triggers the bug).
To resolve an issue or propose an improvement, use the following process to create a pull request:
feature/# branch from the develop branch.Druxt welcomes contributions written with AI coding agents. They go through the same process as any other change: an issue, a branch from develop, linting, tests, documentation, a pull request and review. CI checks every pull request the same way, and the person who opens the pull request is accountable for it.
The repository is set up for agents:
AGENTS.md holds the project instructions. Claude Code (v2.1.277 or later), Codex, Cursor, Gemini CLI, Copilot and OpenCode read it directly..agents/skills/ cover the project workflow: starting work, changesets, verification, pull requests, review and issue triage. .claude/skills links to the same directory for Claude Code. The table in AGENTS.md lists them.A few things to know:
AGENTS.md only when the project has no CLAUDE.md or CLAUDE.local.md. If you keep a personal CLAUDE.local.md, or run a Claude Code version older than v2.1.277, put @AGENTS.md on its first line..claude/skills is a symlink. Clone with git clone -c core.symlinks=true (which needs Developer Mode or an administrator shell), or Claude Code finds no skills.user.name and user.email, with no AI attribution lines in the message. The commit-msg and pre-push hooks and CI refuse a commit made under an agent's identity (Claude, Cursor, Copilot, Codex) or crediting one. .claude/settings.json turns off Claude Code's own commit and pull request attribution..claude/hooks/session-start.sh when a session starts. It installs the pinned Node and Yarn (Yarn from the npm registry, because hosted sessions can't reach corepack's download host), runs yarn install, which also installs the git hooks, and builds the packages so the unit tests can run. On your own machine the hook does nothing: use mise install and make setup..agents/skills/ and the .claude/skills symlink, and logs a duplicate-name warning for each. Set OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1 to have it read .agents/skills/ only.yarn lint:skills (agnix) ru