---
title: "Spirula — Case study · Inky the Squid"
canonical_url: "https://inkythesquid.dev/work/spirula"
last_updated: "2026-11-13T02:02:33.538Z"
meta:
  author: "Gwynfor Hockridge"
  description: "A multi-user revision app for my Master of MIS units. It reads my study notes read-only and turns pre-generated question banks into flashcards, quizzes, timed mock exams and weak-spot analytics, with cohorts controlling who sees which unit."
  keywords: "creative web engineer, web engineer, software engineer, frontend developer, WebGL, Three.js, GSAP, Nuxt, Vue, portfolio, Perth, Gwynfor Hockridge"
  "og:description": "A multi-user revision app for my Master of MIS units. It reads my study notes read-only and turns pre-generated question banks into flashcards, quizzes, timed mock exams and weak-spot analytics, with cohorts controlling who sees which unit."
  "og:title": "Spirula — A revision platform built from my own study notes: spaced repetition, mock exams and weak-spot analytics."
  "twitter:description": "Portfolio of Gwynfor Hockridge (Inky the Squid), a creative web engineer in Perth, Western Australia. Immersive frontend, WebGL, and platform engineering."
  "twitter:title": "Gwynfor Hockridge — Creative Web Engineer · Perth"
---

Own product · 2026

# Spirula

A revision platform built from my own study notes: spaced repetition, mock exams and weak-spot analytics.

Live (sign-in required), built for my 2026 semester exams. Content is generated ahead of time and reviewed before it's committed.

## Summary

A multi-user revision app for my Master of MIS units. It reads my study notes read-only and turns pre-generated question banks into flashcards, quizzes, timed mock exams and weak-spot analytics, with cohorts controlling who sees which unit.

## Stack

- Nuxt 4
- Nuxt UI
- TypeScript
- Cloudflare Workers
- D1 + Drizzle ORM
- R2 (read only)
- KV + Cron Triggers
- zod
- nuxt-auth-utils
- Vitest

## The problem

My study notes were thorough, but notes don't tell you what you've forgotten. I wanted revision that came from my own material, showed me where I was weak, and could be shared with classmates without exposing assessment work.

## What I built

- A home dashboard with exam countdowns, items due, per-unit coverage and the top weak spots, plus a "cram mode" that focuses each session as an exam gets close.
- Spaced-repetition flashcards (Again, Hard, Good, Easy), quizzes that ask for a confidence rating before an answer is checked, and timed mock exams that only mark when submitted.
- Written-answer practice with rubrics. The app builds a marking request for your own AI and records the self-reported marks. Spirula itself calls no model.
- Weak-spot analytics by concept, week and unit, with drill links, an Anki export, and a reader for the notes that understands Obsidian wikilinks and images.

## Architecture

- Nuxt 4 built as a Cloudflare Worker. Users, review events, invites, groups, mock-exam attempts, written answers and rate limits live in D1 through Drizzle migrations. Local mode uses the same schema in SQLite.
- The vault is read only, straight from object storage. A cron job rebuilds a vault index in KV every 10 minutes, so requests never list or read the vault. This replaced a cold build that took about 13 seconds for 345 notes.
- Questions, flashcards and unit summaries are generated ahead of time, reviewed as a diff and committed, rather than generated live. Every file records the SHA-256 of its source notes, so content goes stale visibly when a note changes.

## Engineering decisions

- Access control in one place. A server middleware rejects anonymous API calls, admin paths need the admin role, and learners see only the units their groups give them, applied as one filter rather than per-route checks.
- Invites: single-use or group links (optional use limits, 7-day default expiry), with only a SHA-256 of the token stored.
- Restricted notes. Assignment and feedback notes are admin only. A learner gets a 404 and loses any generated content that depends on them.
- Hardening: HttpOnly, Secure, SameSite cookies, strict security headers (including no-referrer, because invite links carry secrets in the path) and database-backed rate limits.
- Two ADRs (pre-generated content, AI marking of written answers) and about 40 test files.

## Status and what's next

- Live; built for and used in my 2026 semester revision.
- Next: a Content-Security-Policy, and more units as I take them.