imrodmartin / jarvis-recipe
Drupal recipe that turns a blank site into a fully functional Jarvis site: the Jarvis theme (WCAG 2.2 AA safeguards), Drupal Canvas with folders/patterns/templates, demo content incl. Canvas pages, forms, editorial workflow, SEO, Editoria11y, admin UX, and a configured (keyless) AI stack.
Package info
github.com/imrodmartin/jarvis-recipe
Type:drupal-recipe
pkg:composer/imrodmartin/jarvis-recipe
Requires
- php: >=8.3
- drupal/ai: ^1.4
- drupal/ai_agents: ^1.3
- drupal/ai_image_alt_text: ^1.0
- drupal/ai_media_image: ^1.0@alpha
- drupal/ai_provider_anthropic: ^1.2
- drupal/ai_provider_openai: ^1.2
- drupal/antibot: ^2.0
- drupal/asset_injector: ^2.21
- drupal/back_to_top: ^3.0
- drupal/backup_migrate: ^5.1
- drupal/better_exposed_filters: ^7.1
- drupal/canvas: ^1.8
- drupal/canvas_ai: ^1.8
- drupal/canvas_field_component: ^1.0
- drupal/ckeditor5_markdown: ^1.0
- drupal/coffee: ^2.0
- drupal/default_content: ^2.0@beta
- drupal/editoria11y: ^3.0
- drupal/elevenlabs: ^1.1
- drupal/extlink: ^3.0
- drupal/focal_point: ^2.1
- drupal/gemini_provider: ^1.0
- drupal/key: ^1.19
- drupal/linkit: ^7.0
- drupal/metatag: ^2.2
- drupal/save_edit: ^2.1
- drupal/scheduler: ^2.3
- drupal/simple_gmap: ^4.0
- drupal/token_filter: ^2.2
- drupal/twig_tweak: ^3.4
- drupal/webform: ^6.3
- drupal/webform_ui: ^6.3
- imrodmartin/jarvis: ^4.5
- imrodmartin/jarvis-modules: ^2.3.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v4.1.0
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.0.0
- v1.2.0
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-claude/project-thread-b6a2yj
- dev-claude/project-thread-i0asbc
- dev-claude/project-thread-4ctemw
- dev-claude/site-alerts
- dev-claude/footer-defaults-off
- dev-claude/sync-4.4.3
- dev-claude/project-thread-zpqkmx
- dev-claude/sync-4.4.1
This package is auto-updated.
Last update: 2026-12-02 14:04:44 UTC
README
Self-contained bootstrap recipe: stands up a fully functional Drupal site with the Jarvis theme — Canvas visual editing, demo content, forms, editorial workflow, SEO, an accessibility checker, admin UX, and a configured AI stack.
Validated end-to-end on a fresh standard install: the recipe applies with
zero warnings and every demo page (nodes and Canvas pages) renders. See the
repository-root README for the quick start.
What it does
- Installs the Jarvis theme and sets it as the default; applies the theme settings (colours, fonts, sizes, logo). Claro becomes the admin theme and content is edited in it, like the standard profile.
- Canvas, fully wired: canvas + canvas_field_component, component config
for the theme's 21 SDCs and the block/views components the library folders
use, content templates for the Blog, Basic and News content types, page regions, 5
reusable patterns, and the custom
jarvis_canvasglue module. Component folders are organised byjarvis_canvason every cache rebuild (they cannot ship as config — Canvas auto-creates folders during component sync and an item may only live in one folder). - Content types: Blog, Basic, News and Alert. News is a lighter article type
(body + hero banner, with a Canvas full-page template: hero across the top,
body beside a main-menu sidebar). There is deliberately no
landing_pagetype — landing pages are what Canvas pages are for, and shipping a node type that only ever holds a Canvas layout was a second, worse way to do the same job. Blog, Basic and News carry afield_meta_tags(Meta tags) field, so an editor can override title/description/OG tags per node; anything left blank falls through to the site-wide metatag defaults the recipe already imports. - Media types:
image(local image) andremote_video(remote/oEmbed), plus core's stock Document (document,filesource) and Video (video,video_filesource) — byte-identical to the standard profile's, so a standard-profile site keeps its own. The local Video type is what makes Canvas's video prop (json-schema-definitions://canvas.module/video, used by the Video Background SDC) resolve to a media-library picker instead of a bare mp4 upload field: Canvas binds that prop to every media type whose source plugin isvideo_file, and until one existed there was nothing to pick. - Admin experience: core Navigation sidebar with shortcuts, and
config.importpulls each module's admin views (content/media/files/ people/blocks listings), the media-library style/widget, menus, and the shortcut set — recipes skip module-shipped config entities by design, so the import list is what makes the admin UI whole. - Site features: webform stack (contact form included), workflows + content_moderation (Editorial workflow ships unassigned), metatag (+ Open Graph/Twitter Cards) with module defaults, editoria11y, antibot, extlink, back_to_top, coffee, save_edit, better_exposed_filters, field_ui/views_ui, big_pipe, automated_cron. Share buttons come from the theme's Share component, not a module.
- Installs and configures the AI stack: ai, ai_agents, ai_automators, ai_ckeditor, ai_assistant_api, ai_chatbot, ai_image_alt_text, ai_media_image, the Anthropic/OpenAI/Gemini/ElevenLabs providers, and canvas_ai with nine Canvas agents. No API keys ship here — add them via the private jarvis_ai overlay (see the AI section below). Until keys exist the providers idle.
- Imports demo content (core Default Content format, shipped in
content/): 7 nodes (Home, About, Accessibility Statement, 4 blog posts), 2 Canvas pages (the component showcase and a Test Page), 3 block_content entities, the referenced media + files, and the main-menu links. Node URL aliases are carried inline, so they attach regardless of imported node IDs. The front page is the Canvas component showcase (/page/2).
Every module is required in the project composer.json, so composer install
downloads them; the recipe enables + configures.
Apply
Designed for a fresh / empty site (validated on the standard profile).
With composer (the normal way)
This recipe is published as a composer package — imrodmartin/jarvis-recipe,
"type": "drupal-recipe". It pulls the theme and the glue module with it, so
there is nothing to clone. All the Jarvis packages are on Packagist, so a stock
drupal/recommended-project needs no extra repositories:
composer create-project drupal/recommended-project:^11 mysite && cd mysite
composer require imrodmartin/jarvis-recipe drupal/ckeditor5_markdown drupal/default_content:^2.0@beta drupal/ai_media_image:^1.0@alpha drush/drush
Those extras are spelled out because nothing else pulls them in, and the
@beta/@alpha stability flags only work in the root composer.json.
If your host cannot reach Packagist, register the three repositories as VCS sources before the require:
composer config repositories.jarvis-theme '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis","no-api":true}'
composer config repositories.jarvis-modules '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis-modules","no-api":true}'
composer config repositories.jarvis-recipe '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis-recipe","no-api":true}'
Composer prints imrodmartin/jarvis-recipe unpacked. — drupal/core-recipe-unpack
moves the recipe's own requirements into your root composer.json and drops the
recipe from require, while leaving the recipe files in place. On a stock
drupal/recommended-project the pieces land here:
| Piece | Path |
|---|---|
| Recipe | recipes/jarvis-recipe/ |
| Theme | web/themes/contrib/jarvis |
jarvis_canvas |
web/modules/custom/jarvis-modules/jarvis_canvas |
| Contrib deps | web/modules/contrib/ |
themes/contrib is correct, not a mistake: the theme declares
"type": "drupal-theme", and stock installer-paths route that to contrib.
Drupal finds it either way. To keep it under themes/custom instead, add
"imrodmartin/jarvis" to the web/themes/custom/{$name} entry in your
extra.installer-paths and move that entry above web/themes/contrib/{$name}
— composer/installers takes the first matching entry in file order, so a later
package-name match loses to an earlier type:drupal-theme.
Then install the site and apply the recipe with an absolute path:
drush site:install standard --account-name=admin -y
drush recipe "$(pwd)/recipes/jarvis-recipe"
drush cache:rebuild
Under ddev, prefix each command with ddev and pass the in-container path
(ddev drush recipe /var/www/html/recipes/jarvis-recipe): drush's working
directory is the docroot, while recipes/ sits at the project root.
Full walkthrough, including the existing-site recipe and upgrades: docs/INSTALL.md.
From a clone of the bootstrap repository (development)
The Jarvis theme lives in its own repository, wired in as a git submodule at
web/themes/custom/jarvis — clone with --recurse-submodules or the theme
directory arrives empty and the recipe fails:
git clone --recurse-submodules https://github.com/imrodmartin/jarvis-bootstrap-recipe.git mysite cd mysite # (already cloned without submodules? run: git submodule update --init) ddev start # .ddev/config.yaml ships in the repo; project name = directory name ddev composer install ddev drush site:install standard -y # NOTE: under ddev, drush's working dir is the docroot (web/), but recipes/ lives # at the project root — pass the absolute in-container path: ddev drush recipe /var/www/html/recipes/jarvis ddev drush cache:rebuild
Without ddev (drush run from the project root), the path is just recipes/jarvis.
Existing sites: everything the recipe ships is namespaced away from the standard profile's config — text formats are
jarvis_html/jarvis_full_html(Drupal's own Basic/Full HTML are untouched), the theme's own media types areimage/remote_video, the Linkit profile isjarvis— so applying to a site created with the standard profile no longer collides with or overwrites its formats or media types. The recipe ships no block types of its own, so the site's Basic block type is untouched. The exceptions are deliberate: the stockdocumentandvideomedia types (and their field storages/instances/displays) ship under core's own names and are copied byte-for-byte from the standard profile, so a standard site already has them and a minimal site gets them. Shared field storages (media.field_media_image) are byte-identical with the standard profile's, so they pass the recipe's strict check. Note that applying to an existing site is still an opinionated takeover: it sets the default theme to Jarvis, the admin theme to Claro, the front page to the demo Canvas page (/page/2), and imports the demo content alongside your own.
Adding a content type to a site that already has Jarvis
Sites built before a content type existed (Alert, News) do not need the whole
recipe re-run. Each type ships as a small sub-recipe in recipes/:
jarvis_alert and jarvis_news. On a ddev site:
ddev composer require imrodmartin/jarvis-recipe:^4.1 -W ddev drush cache:rebuild ddev drush recipe /var/www/html/recipes/jarvis-recipe/recipes/jarvis_news ddev drush cache:rebuild
The first cache:rebuild matters: without it Drupal cannot see modules composer
just downloaded (Scheduler, Metatag) and the recipe stops with "is not a known
module or theme". Sub-recipes only add what is missing, so re-applying is safe.
Step-by-step guide:
docs/ADD-CONTENT-TYPE.md.
AI keys (optional, private)
The bootstrap recipe installs and configures the AI stack but ships no
keys — it contains no secrets and is safe to share. To activate the
providers, put your gitignored key.key.*.yml files in
recipes/jarvis_ai/config/ and apply the keys-only overlay:
ddev drush recipe /var/www/html/recipes/jarvis_ai ddev drush cache:rebuild
The overlay's key.key.*.yml (plaintext credentials) are gitignored and are not
in this repo — supply your own. See recipes/jarvis_ai/README.md.
Known limitations
- The
header,content_bottomand right-sidebar Canvas regions ship empty. Their per-entityblock_contentplacements were removed from the recipe: content imports after config, so the block plugins don't exist at apply time (which produced "block plugin was not found" warnings), and under Canvas PageRegions block-layout placements never render anyway. The demo block content (an "Alert", a "Bottom Block", a "More" block) still ships as entities — place them via the Canvas UI after install if you want them.