Skip to main content
inSided SuperAdmin
test rank
Oct 30, 2026 2:50 PM UTC

Advent calendar: the widget files and a prompt to make it your own

This is the advent calendar we run on burrito.ai. It has 24 doors, and each one opens on its own day in December. Behind every door is a small tip or challenge for members, like adding a profile photo, voting on three ideas or welcoming a newcomer.

You can download the widget below and install it in your own community. The prompt further down helps you rewrite the 24 doors for your members, so you don't have to start from a blank page. If you want to see it first, it's listed in our build library.

 

What's in the download

File What it is
widgets/advent-calendar/index.html Layout and styles. Colours come from your community's design tokens, so it picks up your branding.
widgets/advent-calendar/app.js The calendar logic, plus the DOORS list with the content of all 24 doors
registry-entry.json The entry for your extensions_registry.json, including the widget settings
PROMPT.txt The same prompt as in this article

Download: advent-calendar-package.zip (attached below)

 

Before you start

  • Your community needs Developer Studio with GitHub sync. If you add custom code by pasting it into an HTML widget in Control, this widget won't work as it is.
  • There are no connectors, secrets or API calls. Everything runs in the member's browser.
  • Three doors link to /ideas. If you don't use Ideas, change or remove those doors.

 

How to install it

  1. Copy the widgets/advent-calendar folder into your Developer Studio repository, keeping the same path.
  2. Add the contents of registry-entry.json to the widgets list in your own extensions_registry.json. Leave your other entries as they are. The path in the entry has to match the folder, or the whole build fails.
  3. Commit and push, then check the build under Integrations > Developer Studio > Sources.
  4. Place the widget on a page with the No-Code Builder. It needs a full width container.
  5. Set Preview mode to "Unlock all doors" and check every door.
  6. Set Preview mode back to Off before 1 December.

 

Make the doors your own

The door content lives in the DOORS list at the top of app.js, not in the widget settings. Each door has a short peek (two to four words, visible once it's open), a title, a body and an optional button link.

You can edit the list by hand, but it's quicker to let an AI assistant such as Claude rewrite it for you:

  1. Open PROMPT.txt, or copy the prompt below.
  2. Replace everything in [brackets] with details from your own community.
  3. Attach index.html, app.js and registry-entry.json to the chat.
  4. Check that every link in the new doors points to a page that actually exists in your community.

 

The prompt

I want to add a community advent calendar widget to our Gainsight Customer Communities instance. Our community uses Developer Studio with GitHub sync.

Attached are three files: index.html and app.js (the widget code) and registry-entry.json (the entry for extensions_registry.json).

Please help me:

1. Add the registry entry to our existing extensions_registry.json without changing any other entries. Tell me exactly where the widget folder needs to go in our repo so the path matches.

2. Rewrite the 24 doors in the DOORS list at the top of app.js for our community. Our community is about: [describe your product and members]. Language: [language]. Each door needs a peek (2 to 4 words), a title and a short body. Only include a link if it points to a page that exists in our community. Our main pages are: [e.g. /ideas, /events, a knowledge base category URL]. Leave out tips about features we don't use: [e.g. ideas, ranks, events].

3. Keep everything else in the code as it is: the door order, the date logic, the design tokens and the security functions (esc and safeLink).

4. Give me the complete updated app.js to copy and paste, and tell me how to test it before December using the preview setting in the widget configuration.

 

How the calendar behaves

Situation What happens
1 to 24 December Doors open on their date, in the member's local time. Today's door gets an outline.
Locked door The door shakes and tells the member when it opens
January All doors stay open, so late visitors can catch up
February to November Every door is locked until 1 December
Opened doors Remembered in the browser, not the member's account. Someone who switches devices sees the doors closed again.
Preview mode "Unlock all doors" or "Pretend it is a specific date" lets you test at any time of year

 

Widget settings

Setting What it does
Heading Title above the calendar
Subtext Leave it empty and the text changes with the date, for example "A new door opens every day until the 24th."
Preview mode Off, Unlock all doors, or Pretend it is a specific date
Pretend date The date used when Preview mode is set to a specific date, in the format YYYY-MM-DD

 

Looking for more builds like this one? Browse the build library to see everything running on burrito.ai.