Projects

Productivity · since 2020

Public Intent

Voting for clubs, committees and groups: as a questionnaire on the phone or live in the meeting with a timer and projector view, open to anyone, members only or as a secret ballot with paper tokens. Who took part and what they answered are stored apart.

public key ↑← signtoken ↑vote →whowhatBalloton the phone, via QR codeTokenQ1 · linkableABCBQ2 · linkable123454Q3 · isolatedYesNoYesToken cardsone per personOrganiser’s browserEd25519 key pairpublicprivate✕ discarded ServerGo · ConnectRPC · SQLitepublic keycheck signaturelock tokensplit the ballotParticipationswho · hash of the token41d0 b2c8 6e15 …9c3f 1a7e 52d0 … e7b2 05c9 d431 … no link · no timestampsAnswerswhat · ballot IDc2e9Q1 · A—Q3 · Nod815Q2 · 5c2e9Q2 · 37f3aQ1 · B—Q3 · Yes7f3aQ2 · 4Isolated questions (—) store no ballot ID: their answers cannot be linked to anything.
Status
In production
Period
since 2020
Area
Productivity
Role
Design, development, operations
3
ways to take part: public, members, token
0
links between participation and answer
1
binary for API and UI
GoConnectRPCProtobufSvelteKitSQLiteEd25519Docker

What it is

Public Intent is a tool for polls with several questions. The first version was a 2020 prototype with a PHP API and a React front end, which then sat untouched for a long time. In 2026 I rebuilt and finished it with AI assistance: a Go back end with ConnectRPC, a SvelteKit UI, live sessions and secret ballots with tokens.

  • Question types: yes/no/abstain, single and multiple choice, scale, free text.
  • Two modes: a questionnaire with all questions at once, optionally with an end date, or a live session in which questions are opened one at a time.
  • Three ways to take part: public via link without an account, only for signed-in members of an organisation (once per account), or with signed one-time tokens.
  • Results update live; two linkable questions can be cross-tabulated.

Features

The images show a local instance with made-up data from a sports club (UI in German); click to enlarge.

Questionnaire on the phone

Opening the link needs no account: all questions on one page, required ones marked, multiple choice with a maximum.

The “Sommerfest 2026” questionnaire on a phone (demo data)

Live in the meeting

In the meeting, the chair opens one question after another, with a timer if wanted. People join with a six-digit code or a QR code; each phone then shows only the open question and the countdown.

An open question with a timer on a participant’s phone (demo data)

The chair runs the session from a page of its own: on the left is what the projector also shows (join code, question, votes cast and, once released, the result), on the right the list of questions, the timer and keyboard shortcuts. The projector view itself opens in its own window or full screen.

Live session controls with the released result: 19 votes from 27 connected (demo data)

Results

The results update while voting is under way: bars for choice questions, distribution and average for scales. Whether only the organisers see them, everyone after closing or everyone at any time is a setting of the poll.

Results of the questionnaire with 46 participants (demo data)

Who may take part?

Each poll is either public, limited to members of the organisation or requires tokens. Once someone has voted, questions and options can no longer be changed, only texts.

Poll settings with participation link, mode and access (demo data)

Secret ballot with paper tokens

For a secret ballot, the browser creates a batch of tokens and prints them as cards with a QR code. Everyone draws a card and can vote exactly once with it; nobody knows who had which card.

A batch of twelve tokens as printable cards with QR codes (demo data)

How it stays anonymous

  • Participation and answers are stored apart. One table only records that someone took part (account, hash of the token or a random ID), another only what was answered. Nothing links the two.
  • No time, no order. Both tables use random keys and no timestamps, so the order of votes cannot be reconstructed.
  • Isolated or linkable, per question. Only answers to linkable questions carry a random ballot ID so they can be cross-tabulated. Isolated questions are stored without it and cannot be combined with anything else, not even by the operators.
  • Tokens without a key. For each batch the browser creates an Ed25519 key pair, sends only the public key to the server, signs the tokens itself and discards the private key. The server checks the signature and locks each token after its vote. The token sits in the link’s fragment (#t=…) and so never reaches a server log.

There are limits: in public polls only the browser prevents a second vote, whoever runs the server can watch live traffic, and in very small groups the result alone gives a lot away.

How it is built

  • One binary. The Go server serves the API and the UI; the SvelteKit app is built statically and embedded, data lives in SQLite (no CGO).
  • API from Protobuf. The interface is defined in Protobuf, and Go and TypeScript code are generated from it. ConnectRPC speaks JSON over plain HTTP.
  • Live without WebSockets. Live sessions and results arrive as Connect server streams over HTTP/1.1 via fetch.
  • Runs as a container via edgegate: every new image from the Gitea CI is rolled out automatically.