Marcel Slowly

Management engineering → security

Marcel Slowly

Learning as I build. Most of these started as something I did not know how to do yet. I build to find out, test until it holds, and keep notes on what each one taught me.

See what I have built
17
live deployments you can open today
3442
passing tests across forty-one of the repositories

Still learning, so where something is simulated rather than captured live, the repository says so.

Workshop 01, the long builds

Capabilities of Opus 5.5

Projects I set as a test of how far Claude Opus 5.5 can carry real engineering when I steer and the budget is $0. They are judged the way an engineer would judge them: does it run, does it hold up, and is it honest about what it cannot show yet.

  1. Lure home page in dark mode: the headline Hide one sentence in a web page, watch the agent obey it, beside a replaying episode where an invoice email carries a highlighted hidden instruction and the agent sends 940 dollars to the attacker account, marked HIJACKED, before paying the real invoice. Below, 620 attacks, 19 ways to hide them, 15 tools and 7 defences.

    Build 01 Agent security

    Lure

    TypeScript, Vite, Ollama on GitHub Actions

    An arena where AI agents with tools do everyday tasks while instructions hidden in what they read try to take them over. A sandbox records every email, payment and file write, and only that record decides whether an attack worked, so no model grades another model. The agent also connects to real MCP servers, some of them hostile: poisoned tool descriptions, shadowing, rug pulls. Eleven defences, among them a small learned detector tested on tricks it never saw, are scored on the same attacked episodes with error bars and paired tests, and every real hijack is on the record to replay. Visitors can run a small model in their own browser, write an attack and share it as a link, and watch a self-copying one spread through a company of agents.

    16 of 34
    poisoned MCP prompts and resources that hijacked a real 3B model (tool descriptions: 0 of 50)
    28 of 40
    runs where a note hidden in a file made a real 7B model delete a signed contract; a per-task allowlist stopped all 28
    0
    verdicts left to an LLM judge
  2. Faultline lab in dark mode: a three-node Raft cluster where node n1 is cut off by a partition, its links drawn as red dashed lines with crosses, beside a red Violation card reporting a linearizability failure and an inspector showing n1 campaigning as a candidate, with a seismograph timeline of node activity and faults below.

    Build 02 Distributed systems

    Faultline

    Rust, WebAssembly, GitHub Actions

    A Raft key-value store and two more protocols, Viewstamped Replication and Multi-Paxos, under one deterministic simulator that owns the network, disks and clocks, all written from scratch and running in the browser. It partitions, crashes and skews the cluster on purpose, then proves whether every read, write and transaction stayed correct with a linearizability checker, an Elle-style checker for strict serializability and a bounded model checker for all three protocols, including Raft membership changes by joint consensus and learners. The faults reach past the network: disks that lose or damage what they wrote, clocks that drift or jump, snapshots that arrive in parts. It also checks that the cluster makes progress again once the faults end, timing how fast it comes back, and the model checker finds the shortest path to a cluster that never will. Any failure shrinks to the few faults that caused it, replays byte for byte from a share link, and is told as a short story. Its own sweep caught a real bug in its VR once in 20,000 runs and a stale read in its Raft ReadIndex after a leader restart, and its model checker caught one in its Raft membership changes that 40,000 random runs missed. It also showed that one server that can send but not hear stalls Multi-Paxos three different ways, each fixed and pinned by a test.

    0 in 560,000
    violations in seeded runs of the correct build across twenty-eight fault profiles and three protocols, including joint consensus, leadership transfer, damaged disks, one-way links and wall clocks that jump
    32 of 32
    planted bugs caught, each pinned to a failing seed
    20 steps
    shortest trace to the VR bug random search hit once in 20,000 runs, found by exhaustive search
Want to dig further? Everything else I have built lives in the workshop, sorted by chapter: security, AI, hardware, money tools and more.

Security

Six tools that scan, grade, and attack. Each one is tested against its own claims before it ships.

01 / chrome extension

SentinelScan

Manifest V3 · shipped v1.1

Gives any website a security report card on demand: header and config analysis, a JS-source secrets scanner, Subresource Integrity checks, and local drift detection that flags when a site's posture changes between visits, which one-shot graders never catch. Every finding maps to a MITRE ATT&CK technique and ships with a paste-ready Express and Nginx fix.

  • TypeScript
  • React
  • MV3
  • Vitest

scan report: sentinelscan

  • transmitted anywhere0 bytes
  • host permissionsactiveTab
02 / offense, defense, grc

Cybersecurity Portfolio

9 projects · live demo

Nine projects spanning AppSec, SIEM and detection engineering, statistical anomaly detection, cloud/IaC scanning, and GRC. The flagship found and fixed four OWASP Top 10 vulnerabilities in a live React/Node/MySQL app. Each was exploited with a screenshot, remediated, then re-exploited to prove the fix holds.

  • Python
  • Flask
  • MySQL
  • Terraform
  • NIST CSF

scan report: cybersecurity-portfolio

  • log ingestion, benchmarked190K+/s
  • mean time to detection<20s
  • recall / precision100/80%
03 / network scanning

Porthawk

Go · shipped v1.3

A concurrent TCP port scanner with banner grabbing, written in Go with zero dependencies. Point it at your own network to find every listening service (a forgotten FTP daemon, a Redis bound to 0.0.0.0) and identify it from the banner it sends back. HTTPS ports get a real TLS handshake that records the certificate and cipher and flags expired certs, and -diff spots new or changed services week over week. v1.3 adds CI with race and fuzz testing, plus a -rate cap for gentle scans of fragile devices.

  • Go
  • Standard library
  • TLS
  • Fuzz testing

scan report: porthawk

  • external dependencies0
  • 100-port localhost sweep7ms
04 / auth log analysis

AuthLog Sentinel

Go · shipped v1

Point it at an SSH auth log and it ranks the IPs trying to break in: failed logins grouped by source inside a sliding window, with a score that weights distinct usernames so credential stuffing stands out from one password guessed many times. The sample log flags three attackers, including a stuffing run across 12 usernames and a brute force that later logged in successfully, which the report calls out as a possible compromise. --blocklist prints suggested firewall rules, all commented out: nothing here ever blocks anything on its own.

  • Go
  • Standard library
  • SSH
  • Detection

scan report: authlog-sentinel

  • external dependencies0
  • usernames tried by top offender12
05 / email forensics

PhishLens

Python · shipped v1

Paste in suspicious email headers or a URL and it hands back a plain-English verdict: safe, suspicious, or likely phishing, with the reasons spelled out. It checks SPF, DKIM, and DMARC alignment separately, spots From vs Return-Path mismatches and display-name spoofing, and catches URL tricks like punycode, @-traps, and IP-literal hosts. Nothing is ever fetched or stored: every analysis runs in memory on the pasted text, and every URL in the output is defanged.

  • Python
  • Standard library
  • Headers
  • URLs

scan report: phishlens

  • network requests during analysis0
  • analyzed content stored0 bytes
06 / plugin supply chain

Plugin Warden

Python · Claude Agent SDK · shipped v0.3

Audits a Claude Code plugin, skill pack, or MCP server before you install it. It clones the repo without running anything, traces every hook, server, and monitor to the files that run on their own, and runs 131 checks plus Gitleaks, OSV, and Semgrep. A read-only Claude agent then reads the real code, confirms or dismisses each finding with a cited line, and reports what the rules missed: on a 92-plugin marketplace it found a governance hook that a single ./.review-approved file skips. Version 0.2 turned it into a team product: a policy file with pinned approvals, a CI gate that fails a pull request enabling an unapproved plugin, a nightly diff that flags when an approved plugin gains reach, signed audit evidence packs, and a live public registry of more than 60 scanned repositories that publishes no verdict until a review is complete. Version 0.3 widens coverage to 18 threat categories, measured on a 78-sample benchmark it catches in full, with a written list of what it cannot catch.

  • Python
  • Claude Agent SDK
  • Static analysis
  • Supply chain

scan report: plugin-warden

  • findings triaged by the agent131
  • agent cost, 4 real repos$2.11
  • repos in the live registry63

Fig. 1 • distribution drift

Models fail quietly.

So the tooling has to be loud. Four projects: one that catches a model going stale before anyone notices, one that puts a trained detector in your browser, one that researches LLMs and recommends the right model for a task, and one that red-teams a system prompt against injection and jailbreak attacks and reports exactly where it breaks.

07 / python mlops

Driftwatch

Drift detection · shipped v0.2

Driftwatch fits a reference distribution once, then scores every new batch column by column with PSI, KS tests, Jensen-Shannon divergence and chi-square, flags correlation shifts, and tracks accuracy, log-loss or R² once labels arrive. A --fail-on flag turns drift or decay into a CI exit code, and everything runs offline.

  • 5drift metrics
  • 0external services
  • Python
  • scikit-learn
  • MLOps
  • pandas
08 / typescript ml

Smishield

SMS smishing detection · shipped v1

Smishield trains a TF-IDF and logistic regression classifier on 5,574 real labeled SMS messages, then runs the whole detector in your browser: paste a message and it returns a verdict, a confidence percentage, and the plain-English signals behind it, like a shortened URL or urgency wording. The TypeScript scorer matches scikit-learn to within 1e-9 on a held-out set, and nothing you paste ever leaves the device. The data is 2012-era, so modern parcel-fee and bank-alert smishing can still slip past it, and the page says so.

  • 0.96test-set F1
  • 5,574labeled messages
  • 3of 966 normal texts wrongly flagged
  • TypeScript
  • TF-IDF
  • scikit-learn
  • In-browser
09 / javascript model research

Model Scout

Model research & recommendation · shipped v2

Model Scout researches LLMs and recommends one for your task. Describe the task and its limits, or start from a preset, and it returns a ranked, explained shortlist with a monthly cost that counts prompt caching, batch prices and an optional spend limit. Tool calling, JSON output, reasoning mode, zero data retention and a backup host are hard requirements, read from OpenRouter's own lists, and a live check shows how each host is holding up right now. Each pick comes with a 300-rerun confidence check, the exact weight shifts that would change it, what-if levers, the cost of splitting traffic with a cheaper model, and a market watch for new models, price moves and retirements. A test kit runs your own examples through the shortlist, and a ready request with fallbacks puts the pick in your code. Every spec carries its source and date or is flagged unverified, and quality and speed ratings are marked as editorial.

  • 36models in catalog
  • 300reruns behind each pick
  • JavaScript
  • LLM research
  • Pricing
  • Client-side
10 / python red teaming

PromptSentry

Prompt injection red teaming · shipped v1

PromptSentry red-teams a system prompt against injection and jailbreak attacks and reports exactly where it breaks. It fires a library of 25 attacks across six categories (direct override, indirect injection, role-play jailbreaks, data exfiltration, encoding tricks, multi-turn erosion) at a real model over OpenRouter or a deterministic offline mock, judges each reply HELD, BROKEN, or UNCLEAR with a cited evidence snippet, scores overall robustness 0-100, and writes an HTML report with a concrete hardening suggestion for every broken attack.

  • 25attacks in library
  • 6attack categories
  • Python
  • Prompt injection
  • Red teaming
  • CLI
PSI 0.000 stable
referencecurrent batch
Live illustration with simulated data. PSI is computed in your browser across 32 bins, using the usual 0.1 and 0.25 thresholds.

Fig. 1 • one table, checked

Bad data never crashes.

It just quietly moves the average. One tool that profiles a table, runs quality rules, and flags drift run over run, so the problem gets caught before it reaches a dashboard.

11 / python data quality

DataHound

Data quality & drift · shipped v1

DataHound profiles every column of a CSV or SQLite table (types, null rates, duplicates, ranges, top values), runs eight built-in quality rules plus custom rules from a JSON config, saves each run to a local history store, and flags drift when a metric moves past a stated threshold, always showing the old value, the new value, and the threshold. Output is a terminal summary, worst problems first, plus a self-contained HTML report with sparklines across runs. No network, nothing hosted, your data stays on your machine.

  • 8built-in rules
  • 9drift metrics tracked
  • Python
  • Data quality
  • SQLite
  • CLI

Fig. 2 • retrieval, not recall

An answer you can check.

A chatbot will answer from memory and sound sure either way. This one answers only from your notes, cites the exact chunks it used, and says plainly when your notes do not cover the question. Three more applied AI tools now sit alongside it: a scam detector built for seniors, a codebase atlas, and a marketplace trust toolkit.

An answer page with its claims checked against source notes Illustration only, not data. A ruled notebook page holds an answer drawn as grey lines of text. Three highlighted claims end in citation brackets numbered 1 to 3. Each cited line has a check mark in the margin and a dashed thread to a matching numbered source-note card on the right. [1][2][3] 123
12 / python applied ai

Course Compass

School hub and grounded study companion · v0.2

Course Compass started as a study companion that answers questions only from your own notes, cites every claim, and refuses honestly when the notes do not cover it. Version 0.2 makes it a school hub: a local web app that syncs Waterloo LEARN (assignments, quizzes, announcements, files and grades), pulls the grading scheme and exam dates out of each course outline with the line they came from, and shows what-if grades and the mark you need on the final. It fits study blocks into your free hours, tracks focus time, and publishes live feeds that Apple Calendar subscribes to. Its tutor gives hints before answers, checks your working, and scores your own explanations, citing your slides throughout.

  • 0/6made-up answers to off-topic questions, real-model eval
  • 89%top-1 retrieval on sample notes
  • 0keys needed for the offline fallback
  • Python
  • LLM RAG
  • D2L sync
  • Web app
  • Spaced review
13 / python applied ai

Senior Scam Shield

Multi-channel scam detector · shipped v1

Senior Scam Shield is a multi-channel scam detector built for seniors: paste an SMS, an email, or a phone call transcript and get a plain-English verdict, the reasons behind it, and what to do. A weighted engine combines text signals, URL analysis, impersonation detection, pressure language, and dangerous request types, and it says plainly when it is unsure and suggests a trusted person checks it. Output is senior-first: large print, simple language, a printable report, and a family share sheet. Nothing is ever sent, stored, or logged, and adversarial tests prove legitimate bank messages stay clean while spoofed versions of the same messages are caught.

  • 22adversarial messages classified correctly
  • 0network requests during analysis
  • Python
  • Scam detection
  • Multi-channel
  • Local-only
14 / python applied ai

Codebase Atlas

Codebase onboarding intelligence · shipped v1

Codebase Atlas is onboarding intelligence for a repo: point it at code and get an architecture map, data flow, dependency graph, and a start-here reading order, plus Q&A grounded in the code with file and line citations, change-impact analysis, a good-first-issue finder, and drift detection. It works across Python, TypeScript, and Go, fully offline, with retrieval first and a language model second, so the map is useful even with no model at all. When the code does not support an answer, it says so instead of inventing architecture.

  • 3languages supported
  • 0model required
  • Python
  • Code analysis
  • RAG
  • Offline
15 / python applied ai

Marketplace Trust

Secondhand trust toolkit · shipped v1

Marketplace Trust is a secondhand marketplace trust toolkit: fair price ranges with reasoning, scam detection, negotiation coaching, meetup safety, and price trends, all from pasted text only. Price estimates show their comparables, condition grading, depreciation, and regional adjustment, and refuse a number when comparables are too thin. Scam verdicts quote the triggering text, negotiation prices stay ordered and never appear for likely scams, and safety warnings sit at the top, never buried. Nothing is scraped and nothing is sent anywhere.

  • 5tools in one suite
  • 0marketplace accounts needed
  • Python
  • Pricing
  • Scam detection
  • CLI

Fig. 3 • a walk around the wheel

Every playlist is a walk.

Every great playlist is secretly a walk around a circle of twelve keys, so I built a tool that draws the map and shows you where the path stumbles.

1B 1A 2B 2A 3B 3A 4B 4A 5B 5A 6B 6A 7B 7A 8B 8A 9B 9A 10B 10A 11B 11A 12B 12A 12 keys
16 / python music

Playlist Analyzer

Playlist analysis & harmonic mixing · shipped v1

Playlist Analyzer reads an exported playlist and shows which keys and tempos it lives in, how its energy rises and falls across the track order, and which back-to-back tracks blend or clash on the Camelot wheel. It scores the playlist's flow from 0 to 100 and suggests a better order that never drops a track. Along the way it teaches the theory in plain English: the circle of fifths, harmonic mixing, beatmatching, and energy arcs, and it says plainly what it cannot do without a streaming API key.

  • 25→70flow score, clashing sample reordered
  • 0keys needed, fully offline demo
  • Python
  • Camelot wheel
  • CLI
  • Static demo

Fig. 4 • the crossing

Every idea has a price.

Every idea has a price before it has a customer. Add it up first, while changing your mind still costs nothing.

Break-even crossing over a cash burn-down A faint staircase falls from top left to the baseline, showing cash running out month by month. Over it, a blue revenue line rises steeply from zero and crosses an orange total-cost line that starts higher and rises gently. The crossing, marked with a dot, is break-even. Illustrative shape only, not data. break-even revenue total cost cash runs out
17 / python entrepreneurship

Startup Cost Calculator

Startup cost estimation · shipped v1

Startup Cost Calculator turns a list of costs and three guesses (price, cost per unit, starting cash) into the numbers that decide whether a small business survives: total opening cost with a contingency buffer, monthly burn, runway, break-even, and months to earn the opening cost back, compared across lean, standard, and premium plans. It is a standard-library Python CLI with text, JSON, printable HTML, and CSV reports, plus a static browser demo whose JavaScript is tested to give exactly the same answers. Every sample business is labelled synthetic, and the plain-English concepts guide teaches the arithmetic behind each figure: fixed versus variable costs, burn rate, runway, break-even, and contingency.

  • 3scenarios compared side by side
  • 0paid services or API keys needed
  • Python
  • CLI
  • Static demo
  • Break-even

Fig. 5 • what you keep

Pay is not what you keep.

A paycheque is a promise and take-home is the truth: put two co-op offers side by side after the city takes its cut, and the “better” job is sometimes the one that pays less.

Gross pay vs take-home per month for two synthetic co-op offers (estimates) Synthetic example, all figures are estimates. Grouped bars compare monthly gross pay with monthly take-home after estimated tax, CPP, EI, rent, commuting and moving. Toronto offer at 28 dollars an hour: 4,549.65 dollars gross and 677.93 dollars take-home per month. Waterloo offer at 24 dollars an hour: 4,159.68 dollars gross and 1,640.89 dollars take-home per month. The higher hourly rate keeps less. Toronto, $28/h (synthetic) Waterloo, $24/h (synthetic) $4,550 gross / mo $678 take-home $4,160 gross / mo $1,641 take-home gross pay take-home (estimate)
18 / python money tools

Co-op Offer Comparator

Co-op offer comparison by take-home pay · shipped v1

Co-op Offer Comparator ranks job offers by what you keep, not the headline rate: estimated income tax, CPP and EI on their own lines, then rent, commuting, moving costs and signing bonuses, compared per month so a 16-week and a 24-week term are fair to each other. It calls offers within $25 a month “about tied”, works out the pay one city would need to match another, and shows whether a $200 rent guess would flip the ranking. A standard-library Python CLI and a static browser demo share bit-identical math, and every figure is labelled an estimate.

  • 4provinces of tax and payroll rules
  • $963a month the higher rate hid, synthetic sample
  • 0paid services or API keys needed
  • Python
  • CLI
  • Static demo
  • Take-home pay

Fig. 1 • exported API surface

Ship the version you meant.

One CLI that catches a breaking change before it becomes a release-note apology.

19 / typescript devtools

Semver Guard

Breaking-change detection · shipped v6

Semver Guard diffs the public API of a TypeScript package between two snapshots and flags exactly the changes that break downstream users: removed exports, changed signatures, dropped class and interface members, altered type aliases, removed enum members. It exits non-zero when it finds one, so it can gate a release in CI before the version number is a lie. Safe changes, like a new export or an internal-only edit, pass silently.

  • 6breaking-change rules
  • 3exit codes for CI
  • TypeScript
  • Compiler API
  • CLI
  • CI

Fig. 2 • scheduled vs observed

Was the bus actually on time?

A small pipeline that turns public schedule and realtime feeds into an auditable reliability report.

20 / python data pipeline

Transit Pulse

GTFS reliability analytics · shipped v3

Transit Pulse joins a GTFS static schedule with GTFS-Realtime observations in DuckDB and reports what riders actually experienced: on-time performance per route, headway adherence on frequent service, and bunching events where two vehicles arrive together instead of evenly spaced. Cancelled trips and unobserved stops are reported separately, never silently counted as on time. Output is a metrics file plus a self-contained HTML dashboard that renders with no network.

  • 3reliability metric families
  • 2GTFS inputs, static + realtime
  • Python
  • DuckDB
  • GTFS
  • CLI
21 / python automation

PagePilot

Browser automation agent · shipped v1

PagePilot is a local browser automation agent: plain-English tasks become explicit step plans shown before anything runs, with human gates before sign-in, payment, submit, send, or delete, resilient selectors that self-heal, and a full audit trail with screenshots. Plans are separate from the executor so they are testable without a browser, dry-run mode acts on nothing, and recipes cannot fill secret fields. Nothing is stored and nothing is hosted; it runs on your machine against your own browser session.

  • 3recipes shipped
  • 0credentials stored
  • Python
  • Playwright
  • Automation
  • CLI
22 / python git history

GitWhy

Code history reader · shipped v1

GitWhy answers one question: why does this code exist? Point it at a file and a line (or a function name) in any git repo and it reads the repo's own history with blame, log, and diff to tell the story: the commit that introduced the lines, every later commit that touched them, the files that always changed alongside them, and a HOT, STABLE, or STALE verdict with the exact rule that decided it. It follows renames where git can and says plainly when history is cut off. Every claim cites its commit sha and line range.

  • 6languages for function lookup
  • 3heat verdicts
  • Python
  • Git history
  • CLI

Fig. 3 • twelve partitions, one transaction per batch

Kill it mid‑batch. Count again.

A fraud detector built to be killed, and the platform that keeps proving it survives.

23 / go streaming

cardsharp

Real-time card fraud detection on Kafka · exactly-once

cardsharp scores every card swipe against that cardholder's own habits as it streams through Kafka, and explains each decision in plain words: an impossible trip, a burst of $0.99 test charges, 3am gift cards. When disputes come back weeks later, it works out which gas pump had the skimmer on it. Each batch of alerts, card profiles and offsets commits as one Kafka transaction, so a scorer can be SIGKILLed mid-batch without losing a purchase or counting one twice, and an audit tool proves it from the topics afterwards.

  • 91.1%precision on 183,285 labelled transactions (a "$500+" rule gets 14.8%)
  • 0lost or doubled after 6 scorer kills and a broker kill under load
  • 2 / 2skimmed gas pumps found from chargebacks, no innocent shop flagged
  • Go
  • Kafka
  • gRPC
  • Protobuf
  • OpenTelemetry
  • Docker
24 / kubernetes platform

nightshift

GitOps platform for cardsharp · SLOs, autoscaling, chaos

nightshift is everything cardsharp needs to run like a real service. Terraform creates a Kubernetes cluster and installs Argo CD, and from then on git is the source of truth: Argo CD installs Kafka, Prometheus, Grafana, tracing and the app itself. KEDA adds scorers when Kafka lag builds instead of waiting for CPU to rise, SLO alerts page on how fast the error budget burns, and every alert links a runbook. A weekly CI run loads it, kills it, and audits it on a fresh cluster. Its first runs found two real bugs a laptop never showed, including a race that left 316 transactions uncounted; both are fixed and written up.

  • 2.57Mtransactions audited after 7 kills under load: 0 lost, 0 doubled
  • 2 → 12scorers added by KEDA on Kafka lag at 12,000 transactions a second
  • 21 sto clear an 18,000-record backlog once scaled out
  • Kubernetes
  • Terraform
  • Argo CD
  • Helm
  • KEDA
  • Prometheus
  • k6

Fig. 4 • two screens, one board

Pull the plug. Keep drawing.

A shared whiteboard where a dropped connection costs nobody their work.

25 / typescript realtime

scrawl

Live multiplayer whiteboard · hand-written CRDT · live on Render

Open a board, send the link, and everyone draws at once: pens, shapes and sticky notes, with each person's cursor moving live. If someone's Wi-Fi drops they keep drawing, their edits wait on their device even through a closed tab, and on reconnect everything merges so every screen shows the same board. The merge is a CRDT written from scratch (per-field last-writer-wins for shapes, RGA for note text), so two people typing in one note both keep their words. A simulator attacks the real server and client code with dropped, duplicated and reordered messages to prove it converges.

  • 431,820edits across 2,000 hostile-network sessions: identical on every screen, none lost
  • 6 msmedian to store and share an edit with 500 people drawing at once
  • 3 / 3deliberately broken merge rules caught by the convergence test
  • TypeScript
  • React
  • WebSockets
  • CRDT
  • SQLite
  • Playwright
  • k6

Fig. 5 • 000412.loglast record torn

Pull the plug mid‑write.

A database written from scratch, then crashed 25,500 times to prove every saved write survives.

26 / go storage engine

brownout

Key-value database from scratch · LSM tree, Redis protocol

brownout is a small database written from scratch in Go: a write-ahead log with checksums, a lock-free skiplist, sorted table files with bloom filters, and background compaction. When it answers OK the write is on disk, and it stays there if the process is SIGKILLed or the power is cut at any instant. A simulated disk drops, tears and reorders everything that was not fsynced, and a checker compares every key byte for byte afterwards. To prove the checker can fail, CI breaks the engine eight ways on purpose and requires each one to be caught. It speaks the Redis protocol, so redis-cli and redis-benchmark work against it.

  • 0saved writes lost across 500 SIGKILLs and 25,000 simulated power cuts (20.2M writes checked)
  • 8 / 8deliberately broken builds caught by the crash test
  • 9.6×bbolt's durable writes per second with 32 writers, from group commit
  • Go
  • Storage engines
  • fsync
  • Redis protocol
  • GitHub Actions

Things you can open.

Four products for real people, from finance teams to families. Two are live right now.

27Live beta

Fake Company in a Box

B2B SaaS on Next.js, Postgres, Stripe

Test data for teams building Stripe, QuickBooks and HubSpot integrations. One seed becomes a realistic, deliberately messy company, loaded into all three test accounts with an answer key to grade against. Live keys are refused before a single request is sent. The first real runs found three bugs the emulators missed; each now has a test that fails without its fix.

  • 347records into real Stripe, 0 failed
  • 3platforms kept in sync
  • Live keysrefused in code
  • TypeScript
  • Next.js
  • PostgreSQL
  • Stripe
  • OAuth
28Live

Memory Time

React Native, Expo, Supabase

A shared spaced-retrieval app for families supporting a loved one with memory loss. The schedule follows real SRT clinical practice, not generic flashcard spacing: misses are re-asked soon but never drilled back-to-back, intervals reset on a miss, and a run of misses eases the session off rather than pushing harder.

  • 3 platformsiOS, Android, web
  • RLSper family group
  • Edge AItopic suggestions
  • React Native
  • Expo
  • TypeScript
  • PostgreSQL
29In delivery

Departure Handover

Python knowledge extraction

When someone senior leaves, what they knew leaves with them. This turns one YAML file into a Handover Pack in three formats: Markdown for the wiki, JSON for IT, and styled HTML for the manager. The cover sheet is derived, never authored, so it cannot drift from the data behind it.

  • 3 formatsfrom one source file
  • 8 sectionsper generated pack
30Prototype

Proximity Bar Hunter

PostGIS, Expo geofencing

Know what a drink costs before you walk in. It flags which bar is charging tourist rates and buzzes when you walk past a cheap one. Prices are crowd-sourced and matched to canonical SKUs, so a pint is measured against a pint.

  • PostGISreal geography, not floats
  • 5 iterationsprototype versions

The Research Desk

Market researchCorrections printed in full

31 · Escheatment · Validating

Unclaimed Property Compliance

Research toward an AI-native service for US state unclaimed property compliance, wedged on Delaware VDA response.

Companies that hold money owed to someone else, such as uncashed payroll checks, stale vendor credits or forgotten customer balances, must eventually hand it to the state. Most do not, and states have started auditing. This project screens the market for a service that helps holders respond when a Delaware voluntary disclosure letter lands.

It is published with its corrections intact. Two load-bearing claims from the original screen were wrong, and the build log records both. The field is contested, and state holder data is not public, so every figure here is sourced rather than assumed.

  • Market research
  • GTM
  • Compliance

Attention, kept honestly.

A timer for deep work that reports what happened and nothing more: timed sessions, distraction notes, and a weekly review. No streaks, no grades, no pressure. A day with nothing in it is just a day with nothing in it.

32 / python focus

Focus Session Tracker

Timed focus sessions and a weekly review · shipped v1

Start a focus session, pause it when life interrupts, and stop it when you are done: paused time never counts as focus. Log distractions with a timestamp and a short note, look back over session history, and read a weekly review with per-day totals, most common distractions, and time-of-day patterns. Data lives in a JSON file on your machine: no network, no accounts, no sync. The review is deliberately neutral: a day with nothing in it shows as a dash, and there are no streaks, grades, or targets anywhere.

  • 0network requests or accounts needed
  • 0streaks, grades, or pressure mechanics
  • Python
  • CLI
  • Static demo
  • Weekly review

Fig. 1 • parts and wires

Software that needs a soldering iron.

Each of these only means something once it is wired to a sensor. The code runs first on a laptop against simulated parts, so the logic is tested before anything is bought, and every board lists what each part actually does.

Open the build bookStep-by-step assembly for every board here, built and planned, picture first like a model kit manual.

33 / python sensor fusion

Aurora Picket

Arctic under-ice sensor node · simulated end to end, parts list ready

A node frozen into sea ice that listens for ships under it and checks what it hears against what ships report over AIS. Its fusion layer, TrustFuse, scores each sensor's health live, refuses to label sounds it has never heard, and reports BLIND instead of all clear when the hydrophone ices over. It flags dark ships, fake AIS tracks, spoofed positions and GNSS jamming or spoofing, and each report fits in one 340-byte Iridium satellite message. Built around the gap DND's Canadian Arctic Suite of Sensors project describes. The results come from a simulator anchored to published Arctic noise measurements; nothing has been in the water yet, and the repository says so.

  • 10 / 10simulated dark ships found with 0 false alarms (naive fusion: 40)
  • 5 / 5each of GNSS jamming, GNSS spoofing and spoofed AIS caught
  • 100%of hydrophone faults reported as blind, not as an empty sea

How the hardware is used

H1
Hydrophone (Aquarian H2a)Hears propellers, ice and whales under the water
U1
Raspberry Pi 5Runs the sound classifier, the fusion engine and the power manager on the node
U2
24-bit USB audio interfacePowers the hydrophone and digitises it with enough headroom for a ship passing close
U3
RTL-SDR at 162 MHzReceives AIS, the positions ships broadcast, to compare against what is heard
U4
u-blox NEO-M9N GNSSGives time and position, and its RF data shows when GPS is jammed or spoofed
LS1
Piezo disc and amplifierPlays a test tone into the water; when the tone vanishes, the hydrophone is iced
BT1
LiFePO4, heater and temperature probesKeep the battery warm enough to work and never charge it below 0 °C
U5
RockBLOCK Iridium modem (optional)Sends alerts by satellite where there is no cell signal
  • Python
  • Raspberry Pi
  • Signal processing
  • AIS
  • GNSS integrity
  • Iridium
34 / c embedded

thirsty

ESP32 plant monitor · simulated end to end in CI

An ESP32 with soil-moisture, light and temperature sensors wakes every 15 minutes, buffers the reading in memory that survives deep sleep, and uploads hourly over MQTT with per-device TLS certificates. A reading is forgotten only after the broker acknowledges it, so a dead router loses nothing. The Go backend stores readings in TimescaleDB and fits each pot's drying curve to warn a day before the soil goes dry, through a free self-hosted push service. Drivers sit behind a hardware abstraction layer; OTA updates check a SHA-256 and roll back if the new image cannot publish. Nothing has run on a physical board yet, and the repository says so.

  • 99.6%of 510 simulated dry spells warned 6+ hours ahead (plain threshold: after)
  • 120 / 120readings delivered after a 30-hour Wi-Fi outage, none lost or doubled
  • ~1 yearestimated on a 2000 mAh battery, from a cited power budget

How the hardware is used

U1
ESP32 board (FireBeetle 2)Wakes every 15 minutes, reads the sensors, buffers readings and uploads over MQTT with TLS
P1
Capacitive soil probeMeasures soil moisture; powered for only 100 ms per reading to save the battery
U2
BH1750 light sensorLight drives how fast a pot dries, so it feeds the forecast
U3
SHT31 air sensorTemperature and humidity tell hot-and-sunny drying apart from a fault
BT1
2000 mAh LiPoRuns the node off-grid; the cited power budget puts it near a year per charge
  • C
  • ESP-IDF
  • MQTT over TLS
  • Go
  • TimescaleDB
35 / python computer vision

Signature Mirror

Drone's-eye camouflage check, visible and thermal · runs offline on a laptop, field demo written

Photograph a vehicle, tent or fighting position from where a scout or drone would see it, box what you are hiding, and add a FLIR Lepton thermal frame if you have one. Nine visible measurements (CIEDE2000 colour, colour mix, texture, straight edges, outline, saliency, shine) feed a model fitted on real images, then the app names each tell with a fix and estimates the range at which common drone cameras have enough pixels to spot it. The model learned from camouflaged animals and everyday salient objects, not military photos, and the thermal score is a rule rather than a fitted model; the repository says both.

  • 0.883ROC AUC, cross-validated on 978 real images with ground-truth masks
  • 0.828AUC on a dataset it never trained on (COD10K)
  • 100 → 22bundled sample: an exposed vehicle, then the same scene netted and cooled

How the hardware is used

C1
Phone or USB webcamTakes the visible photo from the observer's position
C2
FLIR Lepton 3.5 on a PureThermal boardStreams radiometric frames, a temperature for every pixel, so the app can say how far above the background the target runs
U1
LaptopRuns the analysis with no network, so it works in the field
  • Python
  • OpenCV
  • Thermal imaging
  • Logistic regression
  • FastAPI
36 / python sensor logging

Lot Witness

Storage-climate record for every ammunition lot · demo on real Petawawa weather, logger firmware written

Propellant uses up its stabilizer faster when it is hot, but surveillance testing is scheduled by calendar age. Cheap loggers in each magazine and container feed a server that follows every lot through its moves, integrates the heat it has lived through (Arrhenius kinetics, with gaps in logging counted against it), corrects itself to any lab results, and ranks lots in issue order: least life left goes first. The weather is real ERA5 history for CFB Petawawa; the storage sites, lots and lab results are simulated from it, and the kinetic profiles are illustrative until replaced with a propellant's own test data.

  • 2xfaster ageing in an unshaded container than in a climate-controlled magazine, despite a colder average
  • 33 hof 25 °C storage life used by one hour at the container's 48 °C peak
  • OK → Overduetwo lab results move a 40 mm lot from 45 years left to past its threshold

How the hardware is used

U1
ESP32 boardWakes every 10 minutes, keeps up to 1,000 readings while Wi-Fi is down, posts them with its own token
U2
Sensirion SHT45Measures temperature to 0.1 °C and humidity, the two things that age propellant
J1
USB loggers (optional)Existing Elitech, Lascar or HOBO loggers work too: their CSV exports import as they are
BT1
18650 cellDeep sleep between readings lets a node run off-grid in a magazine
  • Python
  • FastAPI
  • SQLite
  • ESP32
  • Arrhenius kinetics
37 / python flood sensing

Sandbag Sense

Seepage and creep alarms for temporary flood walls · real 2019 Ottawa River levels, simulated wall

Sandbag walls built in a flood are watched by people walking them, and seeps start between patrols. One node every 20 m measures moisture at the landward toe and the lean of the wall. Each node learns its own segment's response to the river, then a CUSUM flags moisture rising faster than the water explains, and the inverse-velocity method forecasts when an accelerating lean will fail. Every hour on the timeline uses only data up to that hour. The river is real Water Survey of Canada data; the wall, sensors and failures are simulated.

  • 219 / 219injected wall failures warned before breach across 200 simulated floods
  • 23.8 hmedian warning before breach, time to move a section and bags
  • 0.19%of healthy-wall hours with a false alarm, about one per two floods

How the hardware is used

U1
ESP32 boardReads both sensors every 10 minutes, buffers while offline, posts over a phone hotspot
P1
Capacitive soil probePushed into the landward toe where seepage shows first; powered only while reading
U2
ADXL345 accelerometerStrapped to a stake through the top course, so it leans when the wall does
BT1
18650 cellRuns the node for a flood season without mains power
  • Python
  • FastAPI
  • Change detection
  • ESP32
  • Hydrometric data
38 / python radio, receive only

EMCON Mirror

Hear your command post the way the enemy does · synthetic captures, RTL-SDR demo written

A $40 receiver a kilometre out records what a command post radiates; EMCON Mirror finds every emitter in the sweep, its power, airtime and schedule, estimates how far a ground direction finder and a drone-borne receiver could detect it, and flags phones and consumer radios that should not be on. Sliders show what cutting power, traffic or the schedule would buy. It never transmits and never decodes content. The accuracy figures come from simulated captures with known emitters; real recordings are the next test, and the repository says so.

  • 0false emitters in 200 captures; every emitter 20 dB above the noise found
  • 1.3 dBmedian error estimating transmit power when the antenna height is known
  • 92 → 20demo post's detectability by ground DF after four fixes; a drone still hears it

How the hardware is used

U1
RTL-SDR Blog V4Receives only: rtl_power sweeps the bands every 2 seconds and records the energy in each slice
A1
Dipole or discone antennaHears VHF nets, UHF links and phone uplinks from one spot
U2
LaptopRuns the analysis and the what-if sliders
X1
Two FRS walkie-talkiesPlay the command post's net in the demo, on licence-free channels
  • Python
  • Software-defined radio
  • RF propagation
  • FastAPI
  • Canvas
39 / python audio forensics

Codec Ghost

Deepfake voices on a radio net · measured on public datasets, FRS demo written

Telephone networks already screen for synthetic speech; nothing published covers Codec2, analog FM or HF radio. Codec Ghost cuts a radio net into transmissions and scores each one for a deepfake voice after it has passed through those channels, then measures how badly a lab-grade detector holds up there. It never generates or clones a voice: every spoofed clip comes from published anti-spoofing datasets.

  • 21% → 47%a lab-grade detector's error rate, clean audio vs Codec2 radio; 50% is a coin toss
  • 6 ptserror cut on Codec2 after fine-tuning with simulated radio channels in the loop
  • 0–100%spoofs let through at one threshold, by channel: each net type needs its own

How the hardware is used

U1
RTL-SDR Blog V4Receives FRS channel 8 and hands the demodulated audio to the detector
A1
Telescopic dipoleArms set to about 15 cm, a quarter wave at 467 MHz
X1
Two FRS radiosStand in for the net; one plays the test clips on air
U2
LaptopRuns rtl_fm, the detector and the live dashboard
  • Python
  • PyTorch
  • Speech anti-spoofing
  • Codec2
  • Software-defined radio
40 / python evidence custody

Evidence Grade

Ship tracks that stand up in court · replay demo runs, Pi build written

When a ship dumps oil or fishes illegally, AIS positions are often the main witness. Evidence Grade signs each AIS message as it arrives, chains it to the last one, writes it to an append-only log and anchors that log with third-party time-stamps. An independent verifier then names the exact check and record that fail if anything was altered. It is built toward the electronic-records rules in the Canada Evidence Act; that is a design goal, not legal advice.

  • 7 / 7tampering methods caught, from one edited record to a full rewrite by an insider holding the keys
  • 16checks the verifier runs, each naming the record that fails
  • 1 clickevidence packet per vessel: track, custody chain, results and method statement

How the hardware is used

U1
Raspberry Pi 5Receives, signs and logs every message; serves the verifier
U2
ATECC608B secure elementHolds the signing key so it cannot be copied off the receiver
U3
u-blox GNSS with PPSGives a trusted clock to check every time-stamp against
U4
RTL-SDR or dAISyReceives AIS at 162 MHz; the SDR also keeps raw IQ for an expert to re-check
  • Python
  • COSE signatures
  • Merkle log
  • RFC 3161
  • AIS
  • Raspberry Pi
41 / python radio, receive only

JamWatch

GNSS jamming map from aircraft broadcasts · simulated traffic, receiver build written

Airliners report in their ADS-B broadcasts how sure they are of their own position, and that number drops when GPS is jammed. JamWatch reads it from a 1090 MHz receiver, gives each aircraft one vote per map cell, learns and drops aircraft whose avionics always report low, and only colours a cell red when a Beta-binomial test is confident. It then places the jammer from who was hit at which altitude, since a ground jammer reaches an airliner far further than a light aircraft, and checks for spoofing. Receive only. The traffic and jammers are simulated; the repository says so.

  • 0 vs 103false red cells per jammer-free scenario, against the usual 10% rule
  • 3.8 kmmedian error placing a jammer (averaging the bad reports: 27.1 km)
  • 99.5%of teleport-style spoofed aircraft caught; slow drag-off only 39%, stated as the limit

How the hardware is used

U1
FlightAware Pro Stick PlusReceives 1090 MHz ADS-B through its built-in filter and amplifier
A1
1090 MHz outdoor antenna and arrestorHeight sets range: every metre up adds aircraft at the horizon
U2
Raspberry Pi 5Runs readsb and the map, rewritten every 5 minutes as GeoJSON
U3
u-blox NEO-M9N GNSSThe ground node: its own jamming indicator confirms what the aircraft show
  • Python
  • ADS-B
  • Bayesian statistics
  • GNSS integrity
  • Raspberry Pi
42 / python acoustic sensing

City Watch

Passive drone detection on rooftops · simulated fly-bys, node build and ESP32 firmware written

Each rooftop node hears a drone three ways: its Remote ID broadcast, a jump in Wi-Fi traffic on one channel (counted, never read), and the ladder of tones its propellers make. Evidence adds up second by second, so a busy phone hotspot alone can never raise an alert, engines and rooftop air-conditioners are learned and ignored, and a drone whose sound comes from a different direction than its broadcast claims is flagged as a Remote ID mismatch. Nodes share detections over LoRa to cross bearings. It never interferes with a drone. The audio is simulated; the repository says so.

  • 67% vs 50%of 48 simulated fly-bys caught, fused against the best single sensor
  • 0false alerts in 20 drone-free minutes with an air-conditioner, mower, birds and a hotspot
  • ~100 mrotor-sound range in city noise, the stated limit of one node

How the hardware is used

MK1
ReSpeaker USB 4-mic arrayHears the rotor harmonics and gives their bearing from four raw microphone channels
U1
ESP32-C3Receives Remote ID broadcasts over Bluetooth and Wi-Fi Beacon
U2
ESP32-S3Counts Wi-Fi frames per channel, never their contents
U3
Raspberry Pi 5Fuses the three once a second and logs every decision
U4
RFM95W LoRa radioShares 24-byte detections with other roofs to cross bearings
  • Python
  • Signal processing
  • Remote ID
  • ESP32
  • LoRa
43 / python supply-chain provenance

Maple Trace

Tags that prove a part is genuine · NXP test vectors matched, simulated supply chain, station build written

Each part carries an NTAG 424 DNA tag that writes a fresh, AES-signed URL every time it is read, with keys that never leave the chip. A Raspberry Pi reader station checks that message and its read counter, then the part's custody record: where it was made and every hand-over since, each event hash-chained and signed with a key held in an ATECC608 secure element. It catches cloned tags, replayed URLs, edited or rolled-back records and genuine tags moved onto fakes. Two attacks still get through, and the benchmark measures them. The cryptography matches NXP's published examples; the supply chain is simulated, and the repository says so.

  • 100% vs 6.7%of 3,750 simulated attacks caught, against a UID allow-list
  • 0 / 9,786genuine scans wrongly rejected
  • 8 / 8NXP AN12196 worked examples matched byte for byte

How the hardware is used

U1
Raspberry Pi 5Runs the reader station, keeps the custody records and checks every tap
U2
PN532 NFC readerReads each tag's signed URL over I2C
U3
ATECC608 secure elementMakes and keeps the station's P-256 signing key; the key never leaves the chip
U4
SSD1306 OLEDShows PASS or FAIL, and why, to the person holding the part
T1
NTAG 424 DNA tagsOne per part; each signs every read with its own AES key and a counter
  • Python
  • NFC
  • AES-CMAC
  • ECDSA
  • Raspberry Pi
44 / python early warning

Lentus Eye

Solar fire and flash-flood post · real air and stream data, simulated fires, firmware compiles

A solar post with a thermal camera on a hillside, a particle sensor in the air and an ultrasonic probe over a creek, reporting every 5 minutes over LoRa. Each pixel learns what it normally reads at that time of day, so a rock that bakes every afternoon is not news but a hotspot that stays and grows is. Smoke is judged against neighbouring nodes, so regional wildfire haze cancels out. Every alert says why it fired. The air comes from real 2023 Toronto smoke-season data and the creek levels are real; the fires are simulated, and the repository says so. It was never tested with real fire.

  • 26 / 26simulated hillside fires caught, a median 15 minutes after ignition (hot-pixel rule: 30)
  • 0.15 vs 0.98false heat alerts per camera-day on clear days, against a 60 C hottest-pixel rule
  • 1.45 to 0.36false smoke alerts per node-day on real wildfire-haze days, against a 35 ug/m3 rule

How the hardware is used

U1
ESP32-S3 FeatherWakes every 5 minutes, reads the sensors, sends the report and sleeps
U2
MLX90640 thermal cameraA 32 by 24 heat picture of the slope; stays on so its readings stay stable
U3
SPS30 particle sensorMeasures PM2.5 for 30 seconds each cycle to smell smoke
U4
JSN-SR04T ultrasonic probeWaterproof; measures the distance down to the water to catch a fast rise
U5
RFM95W LoRa radioSends the 26-byte report and a coarse heat frame to the gateway at 915 MHz
U6
bq24074 solar chargerCharges a 6600 mAh pack from a 6 V panel; 8 days with no sun
  • Python
  • Sensor fusion
  • ESP32
  • LoRa
  • Thermal imaging
45 / python ground monitoring

Permafrost Sentinel

Thaw and ground-movement watch for northern runways · real ECCC weather, simulated ground, parts list ready

A solar node at the edge of a runway reads five temperature probes buried down to 2 m and an inclinometer on a post, sends one 29-byte LoRa packet an hour, and sleeps in between. The server works out how deep the ground has thawed between the probes, forecasts the season's deepest thaw with the Stefan equation, catches frost heave and thaw settlement in the tilt after correcting for temperature, and drops probes that have disconnected, stuck or drifted. The air temperatures are 22 years of real Inuvik and Iqaluit records; the ground under them is a heat-conduction simulator, nothing has been buried yet, and the repository says so.

  • 3.2 cm vs 23.1 cmdaily thaw-depth error, against reading the deepest warm probe
  • 110 / 110simulated heave and settlement events caught, median 4 days, 0 false alarms (0.5 degree threshold: 75)
  • 13.3 cm vs 68.8 cmerror forecasting the season's deepest thaw from 15 July

How the hardware is used

U1
ESP32-S3 PowerFeather V2Wakes once an hour, reads everything, sends, then cuts power to the sensors and sleeps
U2
RFM95W LoRa radio, 915 MHzSends the 29-byte reading to a gateway; buried in the canister because it is only rated to -20 C
U3
Murata SCA3300 inclinometerSits on the post and measures tilt to a few thousandths of a degree as the ground heaves or settles
T1–T5
DS18B20 probes at 0.25 to 2.0 mGive the temperature profile that locates the thaw front
BT1
LiFePO4 cell with a 103AT thermistorRuns about 480 mAh a year; the charger refuses to charge it below 0 C
PV1
6 V solar panelTops the cell up in summers when the canister thaws
  • Python
  • ESP32-S3
  • LoRa
  • Heat transfer
  • CUSUM

Unpopulated footprints

Planned builds, marked DNP the way a circuit board marks a part that is not fitted yet. None of these exist yet; each lists the hardware it will need and what that hardware does, and each has a draft manual in the build book.

  • Polaris Nav

    GPS-free navigation near the magnetic pole

    Camera star tracker, sun compass and IMU give heading and position where GPS and magnetic compasses fail

  • Northern Medic

    Casualty vitals and cold-chain monitoring

    A vitals patch (heart rate, SpO2, skin temperature) and fridge probes report over a mesh to a triage screen

  • SpaceWatch

    Backyard satellite tracking that flags manoeuvres

    Telescope, astronomy camera and a GPS-timed shutter measure where satellites really are

  • BeaconHunter

    Finds distress beacons for search and rescue

    A drone-mounted antenna array and SDR take bearings on 406 MHz beacons, receive only

  • ColdCell

    Self-heating battery for Arctic drones

    Heater, cell temperature probes and a fuel-gauge chip keep the pack warm and predict its health

  • IceShield

    Sea-ice hazard navigation for ships

    A ship camera and marine radar are fused with satellite radar images of the ice ahead

  • Ottawa Protocol

    Humanitarian demining rover, detection only

    Metal detector, magnetometer and thermal camera on a rover, fused by ML; tested on inert targets only

  • EMSEC Auditor

    Finds data leaking from your own rooms as radio

    An SDR and near-field probes scan screens and cables for unintended emissions

  • RangerLink

    Off-grid encrypted messaging for Arctic patrols

    LoRa radios carry messages between patrol members; a satellite modem takes over out of range