
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
DruxtJS provides an easy connection between a Drupal JSON:API backend and NuxtJS frontend application.
$ npm install druxt
The DruxtClient is the communication layer between Nuxt and the Drupal JSON:API.
Example:
const { DruxtClient } = require('druxt')
const druxt = new DruxtClient('https://demo-api.druxtjs.org')
druxt.getCollection('node--page').then((res) => {
...
})
Get started with the Guide and API Documentation.
The Nuxt module adds the Vue components, Vuex store and DruxtClient plugin to your Nuxt application.
Add module to nuxt.config.js
module.exports = {
modules: [
'druxt'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
The $druxt
plugin gives your Nuxt application access to the DruxtClient
.
Example:
<script>
export default {
data: () => ({ page: null }),
async fetch() {
this.page = await this.$druxt.getResource({
type: 'node--page',
id: 'd8dfd355-7f2f-4fc3-a149-288e4e293bdd',
})
},
}
</script>
Druxt provides a Vue.js component to easily access Drupal's JSON:API data, with a simple Slot based theming system.
<Druxt :module="module" :props-data="propsData" :wrapper="wrapper" />
Get started with the Guide and API Documentation.
DruxtJS is an open source project, built by the comunity for the community.
Find support or get involved in building Druxt via our community channels:
The DruxtJS Site module provides minimal configuration, decoupled Drupal site functionality.
FAQs
The Fully Decoupled Drupal Framework for Nuxt.js.
The npm package druxt receives a total of 248 weekly downloads. As such, druxt popularity was classified as not popular.
We found that druxt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.