Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.6 Update released for Drupal core (11.4.6)! Release: Drupal 10.6.16 Update released for Drupal core (10.6.16)! Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.10 Minor update available for module photoswipe (5.0.10). Release: Twig Tweak 4.0.0-alpha5 New alpha version released for module twig_tweak (4.0.0-alpha5). Release: Advanced Varnish 4.2.0 Minor update available for module adv_varnish (4.2.0). Release: Path File 2.2.0 Minor update available for module path_file (2.2.0). Release: Media PDF Thumbnail 6.1.10 Minor update available for module media_pdf_thumbnail (6.1.10). Release: Rigel 8.0.0 Major update available for theme rigel (8.0.0). Module Revived: DruxtJS 1.2.2 Module druxt updated after 13 months of inactivity (1.2.2). Security Coverage: Unrestricted Page Module unrestricted_page now has official Drupal security advisory coverage.

Canvas Component Migrator

No security coverage

Part of the Canvas ecosystem · 35 projects

View on drupal.org

This module provides a browser-based interface to migrate Canvas JavaScript components and global CSS between Drupal sites. It allows you to export components from one site and import them into another, with options to include or exclude CSS and validate components before migration.

Introduction

Canvas Component Migrator provides a browser-based admin interface for moving Canvas JavaScript components and global CSS between Drupal sites.

  • Export - push components from this site to a remote destination.
  • Import - pull components from a remote source into this site.

Only the site running the migration needs this module. The other site only needs Canvas and a configured OAuth consumer.

This module wraps the @drupal-canvas/cli npm package. Features and supported commands track that package - new CLI capabilities will be reflected in module updates.

Features

  • Select individual components or migrate all at once
  • Three CSS modes: include global CSS, skip CSS, or CSS only
  • Auto-selects the optimal CLI strategy (pull/push vs download/upload)
  • Optional pre-send ESLint validation via canvas validate
  • Dependency warnings - flags components whose dependencies are missing on the source site
  • Configurable CLI timeout for large sets or slow connections
  • All activity logged to Drupal watchdog (canvas_migrator channel)
  • No global config stored - credentials are entered per operation
  • No terminal access needed on the server running the migration.

Post-Installation

Go to Admin → Configuration → Canvas to find the Export and Import forms. Before running a migration, configure an OAuth consumer on both sites with scopes enabled such as canvas:js_component, canvas:asset_library, and ensure Node.js (v18+) and the @drupal-canvas/cli package are installed on the server. Full setup instructions are in the module README.

Additional Requirements

  • Drupal 10 or 11
  • Canvas module
  • Simple OAuth consumers configured on both source and destination sites
  • Node.js v18 or later and npm, available to the web server process
  • @drupal-canvas/cli npm package (currently v0.11.2) - this module's feature set tracks the CLI, check the module release notes when upgrading the package.

Canvas OAuth - simplifies OAuth consumer setup for Canvas-specific scopes.

Similar projects

No direct equivalent exists. This module is the only admin UI wrapper for the @drupal-canvas/cli migration toolchain.

Supporting this Module

NA

Community Documentation

NA

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Apr 22, 2026