New
Apps 6,354Makers 6,333This week 13
Promote your app−30%
1views in
the last 30 days

Nextcloud Pulse

Live polls and quizzes for Nextcloud — vote from your phone without an account

Built with Claude Code

by hotochan123 · Unclaimed · added Nov 3, 2026
no ratings0 comments

Pulse — live polls for Nextcloud

Vibe-coded: Pulse was written by AI coding agents (Anthropic's Claude Code), not by hand. The maintainer set the goals, made the product decisions and tried the app out in the browser; there has been no independent human code review and no security audit. Details: How this app was built.

Live polls, word clouds and quizzes for presentations as a native Nextcloud app — a self-hosted alternative to services such as Kahoot!, Mentimeter or Slido. The presenter opens a room and projects a six-character code; the audience joins through a public link without a Nextcloud account and votes from their phones. Results update live through polling.

How this app was built (AI disclosure)

Pulse is vibe-coded. The maintainer (hotochan123) did not write the code by hand. They set the goals, made the product decisions and tried the app out in the browser. Everything else was written by AI coding agents:

  • all code — PHP, JavaScript/Vue, CSS and the database migrations;
  • the tests, the development tools (HTTP simulation, screenshot harness) and the throwaway scripts used for request fuzzing;
  • the documentation, including this README, and the German translation.

Tool and models. The agents ran in Anthropic's Claude Code. The private development history has 87 commits, from 16 July to 29 September 2026. Every one of them carries a Co-Authored-By trailer naming the model: Claude Opus 4.8 (37 commits), Claude Opus 5 (44) and Claude Opus 5.5 (6). Commits in this public repository carry the same trailers.

Design. The UI design explorations (mockups, design briefs) were also produced with AI tools. They are not part of this repository.

Verification. The app is checked by a PHPUnit suite (over 1,300 tests), unit tests for the self-paced rules, an HTTP simulation of complete poll and quiz runs and a browser screenshot harness; during development it was also fuzzed with throwaway request-fuzzing scripts. All of them were written by the same AI agents, so they check the code against the agents' own reading of the requirements. Not all of them run automatically: CI (.github/workflows/ci.yml) only builds the bundle, checks that the committed bundles in js/ are exactly what the sources build to, checks the translations and info.xml against the App Store schema, packs a test release archive, runs the unit tests (dev/unit), php -l and the PHPUnit suite, and checks that the dev scripts parse. The simulation (dev/sim) and the screenshot harness (dev/design-shots) are run by hand — they need a running Nextcloud instance — and the fuzzing scripts were one-offs that are not in this repository. There has been no independent human code review and no security audit. In September 2026 AI agents of the same kind reviewed the code for security problems and fixed what they found (listed under "Security" in CHANGELOG.md); what remains is described under Security notes. That review is no substitute for an independent audit. How to report a problem: SECURITY.md.

History. This public repository starts with one squashed commit. The earlier history is kept private because early screenshots in it showed an internal host name; the code is the same.

What this means for you. Evaluate Pulse yourself before you rely on it, especially for anything sensitive. Issues and reviews are welcome (issue tracker). Pulse is licensed under AGPL-3.0-or-later and comes without any warranty.

Features

  • Two roles: moderator (signed in to Nextcloud) and participant (public, no account).
  • Two room modes: poll (anonymous) and quiz (nickname, countdown, leaderboard).
  • Question types — poll: multiple choice · word cloud · scale (single/spectrum/compass) · ranking · matching. Quiz: multiple choice · true/false · multiple answers · number guess · free text (with grading) · ranking · matching. A quiz question can carry an optional explanation (plain text, up to 500 characters) that the reveal shows together with the correct answer.
  • A deck of several questions, an image per question, a projector view, QR code, practice run, and a summary with CSV export.
  • Self-paced quizzes (the "Self-paced" toggle in a quiz deck's menu): instead of one question for everybody, each person works through the deck on their own phone — as a race in the room or as homework with a deadline. The moderator follows each person's progress, grades free-text answers and releases the results; the projector shows the race, never the questions. See below.
  • An anonymous voter cookie (no link to a person) discourages double voting; whoever clears their cookies can vote again (see Security notes).
  • A daily background job deletes rooms after 30 days without any activity: no participant was there, and the owner did nothing with the room — did not open it, edit the deck, present or look at the results. A deck prepared weeks ahead therefore stays. Participants alone keep a room alive only while its owner has used it within the last 180 days, so a room whose code keeps being polled still goes about 180 days after its owner last used it. Deleting a Nextcloud account deletes that account's rooms, with their questions, votes, players and images. The same daily job also deletes the rooms of accounts that no longer exist — for example ones deleted while Pulse was disabled, which would otherwise pass to a new account with the same user ID — and question images that no question refers to any more.

Self-paced quiz

  1. Switch: in the quiz room, deck menu → tick "Self-paced". This clears participants, answers and leaderboard (after asking, once somebody has joined); the questions stay. The header shows "Quiz · self-paced".

  2. Open: "Open quiz …" instead of "Start presenting". In the dialog, choose how it ends:

    • "When I close it" = race: by default with a timer and feedback after every question; closing releases the results at once (or use "Stop without releasing" to check free-text answers first).
    • "At a set time" = homework, deadline 1 minute to 30 days: by default without a timer, results only with the release; the deadline closes the quiz by itself, even with no tab open.

    Timer and feedback can be changed in the dialog; a practice run always gives feedback at once and never shows a leaderboard. Once the quiz is open, the questions are locked until the room is reset.

  3. Progress view ("Show progress"): for each person the question, answers, points and last activity; next to it the join code with QR, a projector preview and free-text grading (without the list of accepted answers; slips can be undone under "Checked just now"). At the bottom exactly one main action: "Close quiz" → check open free-text answers → "Release results". In the menu: lock joining, change the end or reopen, show points (with feedback at the end), participants and answers as CSV, reset the quiz; people can be removed one by one. The page is private — what you project is the projector window.

  4. Phone: name → start card → questions. "Next question" appears once the answer is final (a few seconds, costs no points); questions without a timer can be skipped. Reloading continues at the same place — but only in the same browser: switching devices starts over with a new name at question 1.

  5. Projector: while open, the race (how many people are on which question, how many have finished), with a large join block for the first two minutes, then — with feedback after every question — the top eight; once closed, only the count; once released, the final standings.

Limits: at most 300 people per room who have started and 600 who have joined, and 120 new names per address and room within ten minutes; an instance can change the last two (all limits: Limits). Lock joining once the class is in. Implementation notes with test paths and open points: docs/pace-2026-09/UI.md.

Architecture

  • Public access without login through #[PublicPage] + #[NoCSRFRequired] — the same mechanism as share links. The room code is the share token: /apps/pulse/s/{code}. Because that switches Nextcloud's CSRF check off, the participant API checks for itself that a vote comes from its own page (see Security notes).
  • Core decision on vote counting: one database row per (poll_id, voter_token) (UNIQUE index), counted with COUNT/aggregates — no shared counter. A re-vote is an upsert (last write wins per person). Carried over from the original prototype so that simultaneous votes are not lost.
  • Realtime: adaptive JSON polling. Moderated rooms poll every 1.2 to 2.5 s depending on view and phase, backing off to 4–5 s while nothing changes; in a self-paced quiz, phones poll every 0.7–10 s, the progress view every 2–10 s (phoneDelay/progressDelay in src/util/pace.js) and the deck status every 5–10 s. Polling pauses in hidden tabs, and an unchanged state is answered with an empty 204. In moderated rooms that check reads no votes: it compares a per-question change marker kept in Nextcloud's memory cache (the distributed one, such as Redis, where configured). Without any memory cache it falls back to reading the votes of the question. No High Performance Back-end needed.
  • Public views are capped: phones and the projector get the top 100 words or free-text groups, at most 500 compass points and the first ten leaderboard rows plus the viewer's own row and neighbours, each with the full count. The moderator's results, the summary and the CSV export stay complete.

Structure

lib/Controller/   PageController (moderator SPA), RoomApiController (moderator API),
                  PublicController (participant pages), PublicVoteController (public API),
                  AddinController (PowerPoint add-in manifest)
lib/Db/           Room, Poll, Vote, Player, Presence, Progress + QBMapper
lib/Service/      RoomService (rooms), DeckService (questions), VoteService (votes),
                  StateService (read views + CSV), TallyService (tallying),
                  AnswerRules (per-type answer checks + grading), QuizService (points),
                  PollImageService (images), DemoService, CodeGenerator,
                  PaceService + PaceStateService (self-paced quiz: window, read views),
                  PublicPayload (capped public views), Limits (caps per account)
lib/SetupCheck/   EmbedFraming (setup check for the PowerPoint embed)
lib/BackgroundJob/ CleanupStaleRoomsJob (deletes rooms unused for 30 days, rooms of deleted
                  accounts and question images nothing refers to)
lib/Listener/     UserDeletedListener (a deleted account takes its rooms with it)
lib/Migration/    Schema (pulse_rooms, pulse_polls, pulse_votes, … pulse_progress)
src/              Moderator.vue (control desk), Participant.vue (phone), Screen.vue (projector),
                  components/StageRow.vue (stage row model), ResultsView.vue,
                  self-paced: components/Pace*.vue (moderator), StageRace.vue (projector),
                  mixins/pace-phone.js (phone), util/pace.js (pure rules, no browser),
                  util/question-types.js (composer contract per question type, no browser),
                  util/routes.js (every URL and request time limit of the Vue frontend;
                  js/pulse-embed.js builds its own),
                  styles.js (token layer without Vue — for the embed shell)
l10n/             Translations (de.json is maintained, de.js is generated from it)
build/            l10n-build.js (json -> js), l10n-check.js (coverage),
                  package.sh (release archive), certificate.sh (signing key)
tests/            PHPUnit (database-free) + run.sh
office-addin/     PowerPoint add-in (guide, Traefik example; the instance generates
                  the manifest itself)
dev/design-shots/ Screenshot harness for design reviews and store images (headless Firefox)
dev/sim/          HTTP simulation of complete runs against a running instance
.github/          CI: bundle (and that js/ matches it), PHPUnit, JS unit tests (dev/unit),
                  script syntax, translations, info.xml schema, test release archive
screenshots/      Images for the App Store page
.htaccess         Hides the development folders when a git checkout sits in the web root (Apache)

References in code comments

Many code comments cite section numbers ("§2.4", "specification §1.6"), acceptance criteria ("acceptance #7"), steps and gates of the build plan ("step 4.6", "gate 4.4b") or review IDs ("B1", "R2", "E1", "D6"). They point to the working documents the AI agents worked from: the design briefs, handoffs, review notes and screenshots of the July 2026 design rounds, and the specification of the self-paced quiz from September 2026. None of these documents is part of the public repository, so such a reference cannot be looked up; read it as "this rule comes from the design notes". Files that cite them say so in a note. The one exception is docs/pace-2026-09/UI.md, the implementation record of the self-paced UI, which is included.

Installation

Pulse has been in the Nextcloud App Store since 3 October 2026. As an admin, open Apps in Nextcloud, search for "Pulse" and install it, or run occ app:install pulse. A new release can take some hours to show up there: Nextcloud reads a copy of the store's app list that the store renews only from time to time. Every release is signed with the app's certificate from Nextcloud and attached to the GitHub releases, which is where the store sends every instance to download it. Pulse runs on Nextcloud 34 and 35 and has been tested on 34.0.1 and 35.0.1 with fresh installations on SQLite, MariaDB 11.8, PostgreSQL 17 and MySQL 8.4, and on 34.0.4 with PostgreSQL, including the server update from 34.0.4 to 35.0.1. The signed archives of 0.19.0 and 0.19.1 were installed on 34.0.4 and 35.0.1 through the same download and signature checks an installation from the store runs, and both have been installed from the store itself (0.19.0 on 34.0.4, 0.19.1 on 35.0.1).

To install from the repository instead (for example a state that has not been released yet), do not clone it into the web root. A checkout carries the development tree — tests, the simulation and screenshot harness, sources and, after a build, node_modules/ with demo pages of its packages — and the web server hands out static files below apps/ as they are, so all of it would be public on your Nextcloud's own origin. Clone it somewhere else and copy only the runtime files into Nextcloud. The built bundles in js/ are part of the repository, so this needs no build step, only Node.js for the translation check:

git clone https://github.com/hotochan123/nextcloud-pulse.git ~/pulse-src
cd ~/pulse-src
SKIP_BUILD=1 ALLOW_UNRELEASED=1 sh build/package.sh   # -> build/pulse-<version>.tar.gz
tar -xzf build/pulse-<version>.tar.gz -C <nextcloud>/apps/
occ app:enable pulse

The archive holds a single folder pulse/ (the directory has to be named after the app ID) with only the runtime folders — appinfo, css, img, js, l10n, lib, templates, office-addin — plus README, licence and changelog. Without a key it is not signed, which Nextcloud accepts for an app installed by hand. ALLOW_UNRELEASED=1 is only needed between releases (a checkout of a release tag packs without it). Copying those folders yourself, for example with rsync, works just as well. To update, replace <nextcloud>/apps/pulse with the new folder; when the version in appinfo/info.xml went up, run occ upgrade afterwards (until then Nextcloud does not serve the app).

Running Pulse straight from a git checkout inside apps/ still works, and the repository ships an .htaccess as a safety net for that case: on Apache (with mod_alias and AllowOverride for the app folders, as in Nextcloud's own setup) it answers 404 for node_modules/, dev/, build/, tests/, src/, tools/, docs/, .git/, local _*.php scripts and the package files. nginx ignores .htaccess; there, deploy the runtime files as above.

Building

Build outside the web root as well, then deploy as above:

npm ci             # exactly the dependency versions of package-lock.json
npm run build      # produces js/pulse-main.js, js/pulse-public.js and js/pulse-styles.js

Use Node.js 22.18.0, the version the committed bundles are built with: with it, npm ci plus npm run build reproduces js/ byte for byte. CI builds the same way and fails when the committed js/ differs from a fresh build, so after a change to src/ or to the dependencies, commit the rebuilt js/ along with it. build/package.sh without SKIP_BUILD=1 runs the build itself.

Languages

The source language is English — the code contains the English text, and translations come from l10n/. That way the app does not suddenly show German buttons outside German-speaking countries, and further languages need no code change.

PHP:  $this->l10n->t('Room not found.')          // IL10N in the constructor
      $this->l10n->n('%n vote', '%n votes', $x)
Vue:  {{ t('pulse', 'Save') }}                    // Vue.prototype.t/n from main.js
      {{ n('pulse', 'answer', 'answers', total) }}
      t('pulse', 'Hello {name}', { name })        // placeholders in curly braces

Only l10n/de.json is maintained by hand; l10n/de.js (the file Nextcloud loads in front of the bundle) is generated from it:

npm run l10n         # de.json -> de.js
npm run l10n:check   # reports missing and orphaned translations, exit 1 on gaps

Plurals live under the combined key _singular_::_plural_ with an array as the value — the same rule in PHP and JS. Numbers are formatted in the language of the interface (fmtNum() in the frontend, NumberFormatter in the CSV export); a hard-wired decimal comma would be a different number in an English interface.

Data model

Poll  = { id, type, question, options, answerKey, explanation, maxWords, timeLimit, image, status }

# options holds something different per type (JSON in one column):
choice/multi/rank/truefalse -> [{id,label}, …]
scale                       -> {mode, min, max, aspects|axisX/axisY, …}   -> getScaleConfig()
match                       -> {items:[{id,label}], targets:[{id,label}]} -> getMatchConfig()

# answerKey is the quiz solution (never sent to participants before the reveal):
multi {correct:[id]} · rank {order:[id]} · match {map:{itemId:targetId}}
number {target,tolerance} · text {accepted:[],rejected:[]}

# explanation (quiz only, plain text, NULL = none) follows the same gate as
# answerKey: owner views always, participants and projector only once revealed.

Vote  = { value: "<optionId>" }                  # choice/truefalse
Vote  = { value: ["word", "word"] }              # words (lower-cased when tallying)
Vote  = { value: ["id","id"] }                   # rank (complete permutation)
Vote  = { value: {"<itemId>": "<targetId>"} }    # match (every row assigned)

Tests

tests/run.sh          # PHPUnit inside the Nextcloud container (see tests/README.md)
npm run l10n:check    # translation coverage, exit 1 on gaps
TZ=Europe/Be

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#polls · #nextcloud · #education