drupal / clubspace
A private home on the web for a sports or hobby club, with a club coach avatar that knows the fixtures, the training and the teams. A Drupal CMS site template.
Package info
git.drupalcode.org/project/clubspace.git
Type:drupal-recipe
pkg:composer/drupal/clubspace
Requires
- drupal/ai: ^1.3
- drupal/ai_avatar: ^1.0
- drupal/ai_provider_amazeeio: ^1.4
- drupal/ai_provider_anthropic: ^1.2
- drupal/ai_provider_cli: ^1.0
- drupal/ai_provider_openai: ^1.2
- drupal/avatar: ^1.0
- drupal/avatar_space: ^1.0
- drupal/core: ^11.4 || ^12
- drupal/drupal_cms_ai: ^2.2
- drupal/drupal_cms_site_template_base: ^2
- drupal/elevenlabs: ^1.2
- drupal/gemini_provider: ^1.1
- drupal/grok: ^1.0
- drupal/webdashboard: ^1.0.7
- drupal/webpage: ^12.0.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 06:38:12 UTC
README
A private home on the web for a sports or hobby club: its teams and members, training sessions, fixtures and results, kit and fees, and a club coach avatar that tells families when the next match is, books a training slot and records a result.
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
- Teams: sport or activity, age group, coaches, and what the team works on this season.
- Members: player, coach, parent or guardian, volunteer or club manager; teams, birth date, parents or guardians, "about", accounts. Members are private.
- Training sessions: team, when, where, what to bring.
- Fixtures: team, against, when, home or away, where, and the result and outcome once it is played.
- Bookings: a place in a training session for a member, with a status (booked, attended, cancelled).
- Kit and fees: kind, price, the day to pay or order by, the teams it is for.
- Notices: for the whole club or some teams.
- A Sports and activities vocabulary, to start with seven.
- Pages (the Webpage content type) for anything else the club wants to say, built with Display Builder, and a contact form.
- Tabs: Dashboard (the front page), Fixtures, Results, Training, Teams, Notices, Kit and fees, Members, Bookings.
- Example content to start from: three teams (Under 11 Lions, Under 13 Tigers and a Chess Circle), ten members, training sessions, fixtures with three results, bookings, kit, fees and notices. Edit them, or delete them and add your own.
- The Club coach's chat, docked on the left: things to ask first ("When is my son's next match?"), the sports as topics, quick replies (Yes, No, Tell me more, Show me the fixtures), 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
- Club manager (
clubmanager): everything, the sports and the pages included. - Coach (
coach): training sessions, fixtures and results, notices, bookings; adds and edits members, edits teams; reviews the Club coach's notes. - Club member (
clubmember) and Club parent (clubparent): see the club's pages, book a place in a training session for themselves or their child, and talk to the Club coach.
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 team 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.
- Club manager: Coming fixtures, Training, Notices, a welcome card, what they may add, Teams.
- Coach: My teams' training, My teams' fixtures, Bookings, a welcome card, what they may add, Latest results.
- Club member: My fixtures, My training, My bookings, Notices, a welcome card, Kit and fees.
- Club parent: My family's fixtures, My family's training, My bookings, Notices, a welcome card, My family, Kit and fees.
"My" lists follow the accounts on a member's profile: the fixtures and training of the teams of the members your account is listed on.
Privacy
Members are private (Avatar Space), the children among them first of all: the club manager and the coaches see every member; a member sees their own profile; a parent sees the profile of their child once the club lists the parent's account on it (Accounts). No family sees another family's members, and the Club coach talks about a member only with the people who may see that member's profile. Bookings are private the same way: the staff and the person who booked see them. The Club coach's notes about people wait for review by the club manager or a coach before it uses them, and they expire.
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.
The guide is how the space works, so its chat loads without asking: the template sets the consent for it in Klaro, the consent manager of Drupal CMS. If your rules ask for consent first, change the Deepchat service under Configuration > Klaro.
Demo content
The template comes with a club to try it with: teams from the Under 9 Cubs to the Adults Falcons and a chess circle, coaches, players and parents, training sessions, fixtures, bookings, kit and fees, and notices. A child's profile lists a parent's account, so the parent sees it.
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 site goes live.
- Coaches:
ella.novak,marco.silva,nina.petrova,rami.saad,sam.rivera - Parents:
hannah.carter,kenji.tanaka - Members and players:
adam.haddad,chris.oduya,eli.silva,kai.haddad,leo.carter,lina.novak,mia.tanaka,noa.novak,omar.haddad,rita.brown,sara.brown,yusuf.silva,zoe.lindqvist - Club manager:
jordan.ellis
Avatar Agent
The Club coach is meant to do the club's small jobs by voice, with almost no keyboard or mouse: it listens for its name, keeps listening, and looks through the camera only when asked. Each action is a plain change of the club's content that the person may also make by hand, and it asks for a yes first. The action tools come with AI Avatar; this template brings the content types, the fields and the permissions they need.
- Club parent and Club member
- "Book a training slot": create a Booking (training session, for me or my child, status Booked).
- "Cancel my booking": update my Booking's status to Cancelled.
- Coach
- "Plan a training session": create a Training session (team, when, where).
- "Record a result": update a Fixture's result and outcome.
- "Send a team notice": create a Notice for a team.
- "Mark who came": update a Booking's status to Attended.
- "Add a player": create a Member (in the club as Player, teams, accounts).
- Club manager
- Everything a coach does, and: create a Team, a Fixture, a Kit or fee item, a Member.
Connected spaces
A person can be a parent or a member in several spaces. The role names of Club Space are its own (clubmanager, coach, clubmember, clubparent), and so are its content types, views and dashboards (club…), so it can be applied to a site that already has another space. The link between spaces, where a parent in Family Space sees their child's matches here, is planned in Avatar Space and is not part of this template yet.
When a second space is applied to a site (drush recipe), the last one sets the colors, and each space adds its private content types to Avatar Space's list (addPrivatePeople), so the people of every space stay private. Rebuild the content permissions after it, and choose which guide's chat block to show.
Install
With the Drupal CMS installer: choose Club 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/clubspace:1.0.x-dev
drush site:install drupal_cms_installer installer_site_template_form.add_ons=clubspace
The site opens in Gin, front and back, in the club's colors, with the toolbar at the top and the Club coach's chat docked on the left of every page (on a phone, in the page).
The Club coach
The Club coach 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).
- AI Ask: it answers from the club's own content, such as "When is my son's next match?", and says so when the club's pages do not tell.
- AI Help: it does tasks for the person who is signed in: book a training slot, send a team notice, record a result (see Avatar Agent).
- Many members are children: it is kind and brief, gives no medical advice, and sends a child who is hurt or upset to their coach or a parent.
- It speaks its answers, listens when the person holds the microphone button or says its name, 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. Drupal CMS's AI
(drupal_cms_ai) comes with the template: AI agents, the AI dashboard, alt
text, and the choice of a provider when the site is installed. The template
also 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.
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, that the chat answers (with the Echo
test model of Drupal AI, from tests/recipes/clubspace_test), and that members
stay private. 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