Numeric Citizen Polls: a small polls app of my own

Every now and then I want to ask readers a simple question. Do you still use an RSS reader every day? Which Mac are you writing on? For years the obvious tool was PollDaddy, now Crowdsignal. It works, but it is one more account, one more set of trackers and one more look that is not mine. So I built my own: polls.numericcitizen.me.

This post documents what it does, how it is built and how it came together over four days with Claude Code.

What it does

The app is deliberately small. There is one admin (me), and readers never need an account.

For readers

  • Single-choice and multiple-choice polls. One vote per browser.
  • Results are shown always, after you vote, or only once the poll closes. I choose per poll.
  • A public archive at the root of the site lists every poll, with Open and Closed filters and 5 polls per page.
  • Once you have voted, you can share the poll to Mastodon or Bluesky, or copy its embed code.
  • It follows your system’s light or dark mode, and it was designed for phones first.
  • An RSS feed lists new polls, so they can show up alongside everything else on feeds.numericcitizen.me.

Embeds on my three blogs

My writing lives in three places: Ghost (numericcitizen.me), Micro.blog (blog.numericcitizen.me) and Scribbles (blips.numericcitizen.me). Each one accepts embeds differently, so a poll can be embedded three ways:

  • a plain iframe whose height is computed for the poll, so it never shows a scroll bar;
  • a small script that resizes the iframe to fit;
  • oEmbed, so on Ghost I can paste the poll’s link into an Embed card and it just works.

Every poll page also has Open Graph tags and a generated preview image, so a shared link looks right on Mastodon, Bluesky and elsewhere.

For me, the admin

  • Create, edit, close early, reopen and delete polls. Anything destructive asks for confirmation.
  • Save a poll as a draft, preview it, then publish it. Readers never see drafts.
  • Closing is either automatic, on a date (Montreal time), or manual.
  • A dashboard with a few stats, a search box and filters.
  • When I am signed in, the public archive shows a small admin panel on each card, so I can manage polls in place.

Privacy

There are no reader accounts and the app never stores a raw IP address. To limit duplicate votes, it combines a cookie with a salted, per-poll fingerprint that cannot be turned back into an address. Those fingerprints are deleted within a day of a poll closing. The privacy page explains it in plain words.

It is a blog poll, not an election. Someone determined can vote twice by switching browsers and networks. That trade-off is fine for questions like “Which Mac are you writing on?”

How it is built

  • Next.js (App Router) and TypeScript, hosted on Vercel.
  • Neon Postgres for the data, with Drizzle as the ORM.
  • One scheduled job runs once a day to close polls that have reached their date and to clean up old fingerprints.
  • Public pages are cached and refreshed the moment something changes (a vote, an edit, a poll closing), so the site stays fast even when the database has been asleep.
  • Vercel’s firewall rate-limits the vote and sign-in routes.

The type is Inter for text and Manrope for headings, to match the blog. There is a single accent colour, and the open and closed badges use green and red without relying on colour alone: they also say “Open” and “Closed”.

How it came together

I did not write this app line by line. I wrote a specification and built it with Claude Code, Anthropic’s coding agent, over a series of focused sessions.

The spec came first. Before any code, I wrote a document describing every screen, every rule and every route: what happens when a poll closes, how results are rounded, what a reader sees when results are hidden, what the privacy page says. Mockups of each screen, in light and dark mode and on a phone, came with it. The spec is the source of truth. When a decision changes, the spec changes in the same session.

Then eight build sessions, each with a narrow scope:

  1. Foundation: the project, the database and an empty page live on the domain
  2. Admin sign-in and poll creation
  3. The poll page, voting and results
  4. Embeds
  5. Sharing and preview images
  6. The dashboard, with close, reopen and delete
  7. The public archive, the RSS feed, the privacy page and caching
  8. Polish

A logbook kept everything on track. Each session ends by running the tests, the type check and the build, then adding an entry to a progress file: what was built, what was decided outside the spec and what is left. The next session starts by reading it. That file is the reason a fresh session never has to guess what came before.

A short rule book applies everywhere. The project has a few rules that every session follows. Logic such as rounding, open or closed, duplicate votes and stats lives in small, pure functions with tests (146 of them today). Colours only come from a shared set of variables, so every screen works in light and dark mode. Touch targets are at least 44 pixels, form fields use 16-pixel text so iPhone Safari does not zoom, and interface text is plain and short.

After version 1

Once the eight sessions were done, smaller changes followed:

  • A favicon and web manifest, so the site looks right in tabs and on a home screen.
  • A look closer to the blog’s: Manrope headings and the same site name style.
  • Status badges: a slowly blinking green dot for open polls and a red “Closed” pill. The dot stays still for anyone who has asked their device to reduce motion.
  • Draft polls, with preview and publish.
  • Pagination on the archive.
  • Some quiet motion: result bars grow into place after you vote, archive cards fade in when you change the filter or page, and buttons ease between states. Again, none of it moves when reduced motion is on.

A few lessons

  • Write the spec before the code. Most of the time saved came from decisions already made on paper, not from typing speed.
  • Keep a logbook. A progress file read at the start of each session works much better than hoping the context carries over.
  • Mind the order of database changes and code. Preview deployments each get their own copy of the database. When I added draft polls, a preview failed because its copy had been made before the new column existed. The rule now: change the production database first, then ship the code that needs it.
  • Free tiers have edges. The database plan allows a limited number of branches, and preview copies were piling up. A small automated job now deletes a preview’s database copy when its branch is deleted.

What’s next

A few ideas are parked for later: exporting results as an image, and a way to update older blog posts that still point to Crowdsignal. For now, the app does what I need: I ask, you answer, and everyone can see where readers landed.

Go vote: polls.numericcitizen.me.

Week 48 Summary (Nov 22 - Nov 28, 2026)

A week of steady building rather than publishing, anchored by two long-form writing projects: My 2026 Year in Review Report, started Sunday with Claude from the Craft daily notes, and the Writing in public — Upgrading from iPhone 15 Pro Max to iPhone 18 Pro Max piece, which got attention on Sunday, Tuesday and Saturday before finally spinning off a publication-ready document for the main blog. Claude ran through almost everything: the Year in Review, the Artifacts-as-apps experiments midweek, and the “Bookmarking This” shortcut that got reworked on Saturday. Tooling and plumbing took up most of the rest — Dia replacing Arc ahead of its December 22 retirement, RSS summarization feeds and documentation in Craft, a “Save to Craft” button in Bookmarks, dashboard additions, and new bio page and feature tours on Scribbles and Tinylytics. The one piece of hardware news landed flat: the HomeView arrived Monday evening and immediately raised the question of whether nearly $500 went somewhere useful.

Week 47 Summary (Nov 15 - Nov 21, 2026)

A rebuilding week after the return from South Asia, with automation infrastructure as the dominant thread: n8n came up on four separate days, from tagging every suspendable production workflow for vacation mode and upgrading the instance to 2.47.7, to finally fixing the Anthropic cost-analysis report and then building a single workflow that disables all suspendable workflows in one pass. Running alongside it was a clear move back toward app development — the Xcode beta installed to gauge storage needs, Claude wired into Xcode to settle whether the subscription covers it or API credits are mandatory, and a PollDaddy replacement scoped as a small public-polls web app on a numericcitizen.me subdomain. Writing returned in the second half of the week, with the iPhone 15 Pro Max to 18 Pro Max review picked back up on its photography and screen sections, then two new Apple-upgrade pieces and a refresh of the upgrade plans page on Saturday. Smaller experiments filled the edges: Workbench tested against Scribbles-poster with browser autosave added, and Wavelength tried for narrated posts on the Mac.

Fixing bugs from my iPhone at the airport

I ran into an issue with my Scribble web app after adding the capability to include an image in a blog post: image size limit validation was required. Oopsy. I asked Claude Code on my iPhone ( I was on my way to the airport!) to confirm the potential issue. I had to find a way to resize images from Photos. No problem. I need a new Shortcut for that (I thought I already had one!). Using Siri AI, I created such shortcut. It resizes the image at 50%. Now that image is small enough. But, the web app should do the resize itself, right? Yeah. On my iPhone using Claude Code, I tweaked the upload feature and sure enough, five minutes later, a new version was deployed on Vercel.

We live in the future.

I just realized that keeping my GitHub repo locally in a folder inside iCloud Drive wasn’t a good use of resources1. What the hell was I thinking? Moving everything out now with a Claude AI-generated bash script. Works great.


  1. The fileproviderd daemon was constantly triggering high CPU usage when editing my repos. ↩︎

Week 43 Summary (Oct 18 - Oct 24, 2026)

Two slow-running threads defined the week: the long-form iPhone upgrade piece and a hardening doubt about Ghost. I poured more effort into my iPhone 18 Pro review in three sessions: Sunday’s cost analysis, Monday’s conclusion, and one more pass Saturday morning, making it the week’s most sustained writing effort. Platform questions ran alongside it: Sunday brought a post on the Ghost renewal plus reading up on Micro.blog’s newer Premium features, Ghost sync among them, and by Thursday evening the doubt had sharpened into a direct question about whether Ghost is still the right WordPress replacement at all. The iPhone Duo owned the middle of the week, an evening of video reviews Wednesday, notes gathered that same night, finished and shared by the next morning. Underneath it all, three housekeeping passes got the n8n instance ready for 3.0, and Saturday closed with OpenClaw cleared off the Mac mini and Search and Stats plugins added to meta.numericcitizen.me.

Week 42 Summary (Oct 11 - Oct 17, 2026)

A week built around one shipped thing: the Blips newsletter digest. Monday was groundwork, a Blips post aggregator sketched with Claude AI, a recovered Buttondown account, Scribbles configured, and by Tuesday morning the first September issue was out the door, announced to subscribers, and documented on meta.numericcitizen.me. Apple supplied the week’s commentary thread, running from HomeView on Tuesday through the Siri AI language-versus-device-language problem and Apple’s apparent retreat from keynotes later in the week. The long-running iPhone 15 Pro Max to iPhone 18 Pro Max upgrade review bookended things, picked up Monday afternoon and worked on again Saturday.

Building the newsletter Scribbles doesn't send

The assumption

When I saw the Buttondown section in my Scribbles blog settings, I assumed Scribbles would turn my posts into a newsletter on its own. It doesn’t. The integration stores a Buttondown username, a heading and a description, and that’s it: a theme can show a subscribe form wired to my Buttondown list. People can subscribe, and then nothing is ever sent.

I only connected Buttondown to Blips yesterday, and the form didn’t appear on the blog at all until I updated my custom theme to show it. So before anyone could subscribe and wait for an email that would never come, I built the missing piece: a monthly digest of every post, generated by an n8n workflow from the Scribbles API and created in Buttondown through its API.

Why not RSS-to-email

Buttondown’s own answer to this is RSS-to-email, and I ruled it out for two reasons.

  • It’s a paid add-on. My newsletter is on Buttondown’s free plan, which includes the API but not RSS-to-email.
  • The feed is too short. The Scribbles feed only carries the latest 15 posts. In a busy month I post more than that (September had 17), so a monthly digest built from the feed would quietly drop the oldest ones.

The Scribbles JSON API doesn’t have that limit. It takes a date range, pages through results, and returns each post’s full content. That made it the right source.

The workflow

The workflow has six nodes and runs on the 1st of each month at 8:00, Montreal time. It covers the previous calendar month.

  1. Two triggers. A Schedule Trigger fires monthly on the 1st. A Manual Trigger lets me run the same path on demand for testing.
  2. Config (Set node). Every setting lives here: the mode (draft or send), the blog ID, name and URL, the subject prefix, an optional intro note, the maximum text length per post, and whether to show categories. It also computes the month with Luxon: the previous month in the America/Toronto time zone. The date range sent to the API is padded by a day on each side, so posts near midnight UTC aren’t lost.
  3. Fetch (HTTP Request). GET /api/v1/posts on the Scribbles API with blog_id, type=posts, from_date, to_date, include_content=true and limit=100, authenticated with a bearer token. n8n’s built-in pagination increments page until pagination.page reaches pagination.pages. The node retries up to three times.
  4. Build Digest (Code node). Merges the pages, drops duplicates, and keeps only published posts that aren’t hidden or excluded from RSS. It then applies the exact month boundaries in Toronto time, sorts by date and builds the email body. If the month is empty, it returns nothing and the workflow stops there, so no empty email is ever created.
  5. Create email (HTTP Request). POST /v1/emails on the Buttondown API with the subject, the body and a status: draft while testing, about_to_send once it’s live.

Failures go to my shared error workflow, like every other workflow on my n8n instance. A digest that silently doesn’t go out is worse than one that fails loudly.

Designing the email

The first draft was too airy, and the second one fits the same 17 posts in about a third of the scrolling.

Version one gave each post a heading, a full-width photo, a 300-character excerpt and a “Read the blip” link, with a rule between entries. On a phone, a month of blips became a long scroll with little on each screen.

Version two is built for density:

  • Full text. Blips are short, so each one goes in whole, with its own links kept: the trail links, the article I’m pointing to, the YouTube video. Only posts over 700 characters get trimmed, with a “Read more” link.
  • Small photos. When a post has a photo, it becomes a 96-pixel thumbnail on the right of the text.
  • Tighter entries. The title is the link, followed by the date in grey. No separators, no extra links.
  • Short link labels. Long URLs show as glass.photo/…/iphone-18-pro-max instead of the full address.
  • No category line. My titles already carry the category ("📡✨" for blips, “→ Links 🔗” for links), so repeating it was noise. A setting brings it back.

The body is HTML, not Markdown. Buttondown accepts both, but Markdown can’t size an image or place a thumbnail beside text, and that’s what makes the layout compact. The thumbnail rows use a simple table, which is still the most reliable way to lay out two columns across email clients.

Snags along the way

The Scribbles side worked on the first run; Buttondown authentication took several tries.

  • Token, not Bearer. Buttondown expects Authorization: Token <key>. My first credential was n8n’s Bearer Auth type, which sends Bearer <key>, and Buttondown answered 401 with a helpful message saying exactly which header it wanted.
  • Header Auth is the fix, but its fields are literal. In n8n’s Header Auth credential, “Name” is the HTTP header name, not a label for the credential. It must be Authorization. “Value” must be Token, one space, then the key. A stray space or a re-pasted wrong key gives the same 401, so if it keeps failing, copy the key again from Buttondown’s API settings.
  • Embed shortcodes in the text. A post’s plain-text version still contains Scribbles embed codes like {{yt:https://youtu.be/…}}. The builder now turns those into plain links, and YouTube embeds in the HTML become a “Watch on YouTube” link.

The subscribe form

The form lives in my custom Scribbles theme and needs no JavaScript. It’s a Liquid snippet that reads the Buttondown username from the blog settings, so changing it in Scribbles updates the form everywhere. If the username is blank, the form doesn’t render.

The form posts the email address straight to Buttondown’s embed endpoint, https://buttondown.com/api/emails/embed-subscribe/<username>, with embed=1, and opens the confirmation in a new tab. It appears in two places: the left sidebar, and under each individual post, where a reader who just finished a blip is most likely to want more. The heading and description come from the same Scribbles settings, with a default heading when they’re empty.

Where it stands

The workflow is built and tested in draft mode, and the first real issue goes out November 1, covering October.

So far every run has created a draft in Buttondown, which let me review September’s digest as a real email before anything reached subscribers. The remaining steps are small: confirm a fresh signup through the form, flip mode from draft to send in the Config node, and activate the schedule. The send path hasn’t run yet, so the first live issue is also its first real test.

What I like about this setup is that nothing is locked in. If Scribbles adds a native newsletter one day, or I move the list elsewhere, the workflow is five steps I can change or retire in an afternoon.

Week 41 Summary (Oct 4 - Oct 10, 2026)

A week that started strong and quickly wrapped up. Sunday carried more than the next three days combined: three unrelated bugs closed in one evening, two AI-related videos watched and digested, and then the week settled into shorter, sharper sessions. Sundays are always busy. Two build threads ran through it — the saved-bookmarks web app graduated from working to trustworthy on Tuesday evening (broken-link rechecks, full backup and restore, a last-export-date readout), and on Thursday a custom visual theme for the Scribbles.page blog went from first poke to finished inside a single day with Claude Desktop. The writing-in-public iPhone 15 Pro Max to 18 Pro Max piece was the connective tissue early on, touched Sunday, promoted from sub-page to a full Craft document on Monday, resumed Wednesday, then quiet. The back half turned reflective and Apple-shaped: a note about the coming MacBook Pro, a post on being more deliberate about which Claude model fits which task, and a quick look at Cork for Homebrew. Tooling got the attention this week; the journal itself stayed lean, with Socializing and Reading unlogged all seven days, surprisingly.