Search by

drupal / schoolspace

Drupal-Infrastructure

A private home on the web for a school, with an avatar tutor that helps students learn at home and in class. A Drupal CMS site template.

Package info

git.drupalcode.org/project/schoolspace.git

Homepage

Issues

Type:drupal-recipe

pkg:composer/drupal/schoolspace

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

1.0.0-alpha2 2026-11-30 05:49 UTC

This package is auto-updated.

Last update: 2026-11-30 06:34:55 UTC


README

A private home on the web for a school: its classes, students and staff, the learning materials and homework of each class, and an avatar tutor that helps students learn at home and in class, and sends them to their teachers.

A Drupal CMS site template of the Avatar Space family: Family, School, University, Company, Organization, Club, Clinic, Dev and Test Space.

What it gives you

  • Classes: grade, teachers, and what the class learns this term.
  • Students: class, birth date, "about" (what helps them learn), account.
  • Staff: role (headteacher, teacher, counselor...), subjects.
  • Learning materials: files and links for classes and subjects.
  • Homework: classes, subject, due date, what to do, materials.
  • Announcements: for the whole school or some classes.
  • A Subjects vocabulary, to start with nine subjects.
  • Pages (the Webpage content type) for anything else the space wants to say, built with Display Builder, and a contact form.
  • Tabs: Dashboard (the front page), Homework, Materials, Announcements, Classes, Staff.
  • Example content to start from: two classes (Grade 4 Blue and Grade 5 Green), five staff, four students, materials, homework and announcements. Edit them, or delete them and add your own.
  • The School tutor's chat, docked on the left: things to ask first ("What homework is due this week?"), the subjects as topics, quick replies (Yes, No, Give me a hint, Tell me more), and a menu to start a new chat or show the panel wide, floating or hidden. They are the chat block's Conversation settings.

Roles

  • Headteacher: everything, the subjects included.
  • Teacher: materials, homework and announcements, the students and the classes; reviews the tutor's notes.
  • Student and Parent: see the school's pages and talk to the School tutor.

Dashboards

Each role has its dashboard, built with Web Dashboard, Webpage and Display Builder. The front page is the dashboard of the person who is logged in, and people land on it after they log in. Each list shows the most pressing items first, with a date, a person or a status, and a link to all of them. Change a dashboard in Structure > Web Dashboards.

Every dashboard opens with the space at a glance, the Space cards of Avatar Space: a card for each part of the space, with its icon, what it is for and how many of them the person may see, which opens the list.

  • Administrator: The space at a glance, what they may add, a welcome card, Quick tasks.
  • Content editor: The space at a glance, a welcome card, what they may add.
  • Headteacher: From the school, Homework due, a welcome card, what they may add, Classes.
  • Teacher: Homework I set, From the school, Materials, a welcome card, what they may add.
  • Student: Homework, From the school, a welcome card, Materials.
  • Parent: From the school, Homework, a welcome card.

Privacy

Students are private (Avatar Space): only the staff and the student themselves see a student's profile, and the School tutor talks about a student only with them. The space is private: people who are not signed in are asked to sign in. Everyone logs in to use the space, its avatar and its AI: the chat is shown only to people who are logged in.

Install

With the Drupal CMS installer: choose School Space among the site templates. Or with Drush, on a Drupal CMS codebase. Until its modules have stable releases, the template comes from its development release, and Drupal CMS takes development releases (prefer-stable keeps the rest stable):

composer config minimum-stability dev
composer require drupal/schoolspace:1.0.x-dev
drush site:install drupal_cms_installer installer_site_template_form.add_ons=schoolspace

The site opens in Gin, front and back, in the school's colors and logo, with the toolbar at the top and the School tutor's chat docked on the left of every page (on a phone, in the page).

The School tutor

The School tutor is the face, voice and eyes of the Drupal AI chatbot (DeepChat with the Avatar chat processor of AI Avatar). Its mind is the site's default Drupal AI chat model: choose a provider and a model in Configuration » AI » AI Settings (or pick one on the avatar's page at Structure » Avatars). It talks to children as a tutor: it explains step by step, asks questions and gives hints, never does the homework, and sends students to their teacher or a parent when they need a person.

  • It speaks its answers with a browser voice, listens when the person holds the microphone button, and can see through a camera only when the person turns it on and presses Look; nothing is recorded.
  • It can fly over the page and point at a menu link or a heading it talks about.
  • It keeps short notes about the people it knows; they wait for review at Content » Avatar memories before it uses them, and they expire.

AI providers

The guide's chat needs one chat provider of Drupal AI. The template brings these with Composer, and installs none of them, so pick one under Extend (or drush en <module>), add its key under Configuration > System > Keys, and choose its models under Configuration > AI > AI Default Settings:

  • amazee.io (ai_provider_amazeeio), the Drupal CMS default
  • Anthropic (ai_provider_anthropic)
  • OpenAI (ai_provider_openai)
  • Google Gemini (gemini_provider)
  • Grok from xAI (grok)
  • A command line tool on the server, such as Claude Code, Codex or Gemini CLI (ai_provider_cli), for a local or private site

The guide's voice

The guide speaks with the ElevenLabs voice "Rajab Natshah - Tech Explainer" (elevenlabs, a text to speech provider of Drupal AI), and moves its mouth with it. Its key is the Key module's elevenlabs key, read from the ELEVENLABS_API_KEY environment variable, so no key is kept in configuration; it must be a key of the ElevenLabs account the voice belongs to. Without a key, or when ElevenLabs fails, the guide speaks with the browser's voice. Change the voice, or turn it off, under Drupal AI voice on the avatar's settings.

Demo content

The template comes with a small school to try it with: a class for each grade from 1 to 12, two students in each, the staff (a headteacher, teachers, a counselor and teaching assistants), homework, materials and announcements.

Test users, with no password: log in as one with drush uli NAME, or set a password first. Delete them, or block them, before the school goes live.

  • Headteacher: emma.clarke
  • Teachers: ana.silva, david.kim, tom.becker, omar.haddad, laila.nasser, ben.ortiz, sara.okoye; teaching assistants hana.saleh and leo.park; counselor priya.shah
  • Students (one per grade), such as rami.martin and karim.smith (drush user:list --roles=student lists them all)
  • Parents: rania.khalil, mark.smith, huda.haddad, jane.brown, fadi.nasser, luca.rossi

Avatar Agent

The School tutor does the school's small jobs for a teacher, by voice, with almost no keyboard or mouse. Each action is a plain change of the school's content the teacher may also make by hand, and the tutor asks for a yes first (the action tools of AI Avatar):

  • Teacher and Headteacher
    • "Set homework": create Homework (subject, classes, due date, materials).
    • "Post an announcement": create an Announcement for classes.
    • "Share a material": create a Material (subject, classes, links).

Requirements

Drupal CMS 2 (Drupal 11.4 or 12), Drupal AI, Avatar, AI Avatar, Avatar Space, Web Dashboard and Display Builder.

Tests

The webship-js suite in tests/ checks that people log in to use the space, that each role lands on its dashboard, and that the chat answers (with the Echo test model of Drupal AI, from tests/recipes/schoolspace_test). The CI pipeline builds a fresh Drupal CMS with this template and runs it; to run it on a local site, create an account for each role, set their passwords in the environment (see cucumber.js), then:

yarn install
LAUNCH_URL=https://example.ddev.site yarn test