Skip to content

Explore an Allergy Antibody in 3D

Category Creative & Real-World AI Builds
Status 🟡 Partially completed
Repo nextwork-explore-an-allergy-antibody-in-3d
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

📚 NextWork learning project. This is a practice project I built while working through NextWork's Explore an Allergy Antibody in 3D guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning › Creative & Real-World AI Builds
Status: 🟡 Partially completed

Overview

Allergy explainers often blur what has been measured with what is only hoped for. This page keeps them apart: a simple four-step drawing of the reaction, two experimental protein structures you can rotate, and the designed-antibody idea clearly marked as unproven.

Summary

My explainer is built and browser-tested. A four-step SVG story (receptors, IgE priming, allergen cross-linking with histamine release, then a step-four idea labelled as not proof) plays and can be stepped with Back and Next. Two 3Dmol.js viewers, built through the 3Dmol API, load the real PDB structures 2Y7Q (red FcεRIα, blue IgE-Fc) and 5G64 (blue IgE-Fc, green omalizumab-derived Fab). The secret mission's two-structure evidence audit is written. Partial because Claude Code didn't write it and the Claude Code audit pass wasn't run.

The checks behind this are in docs/verification.txt.

Skills & tools

3Dmol.js, Structural biology (PDB), HTML/CSS/JS, Playwright, Science communication

What I built

  • index.html, styles.css, script.js (my own code and wording): an inline SVG whose parts appear per stage via CSS, captions in my words, Play/Back/Next, and a reduced-motion fallback. The viewers are created with $3Dmol.createViewer + $3Dmol.download('pdb:…') and coloured by chain in code, so there are no embedded data-attribute viewers.
  • check.mjs + serve_and_check.sh: Playwright confirms all four stages, the not-proof ending, the Back button, both structures loaded with their chains (2Y7Q: A–D, 5G64: A–D, H, I, L, M), and no page errors.
  • EVIDENCE-AUDIT.md + docs/structure-1.png, docs/structure-2.png (secret mission): both complexes captured, with bullets separating measured structure from the conceptual step four. docs/page.png is the full page.

How to run

python3 -m http.server 8777   # then open http://127.0.0.1:8777/
bash serve_and_check.sh       # browser check + screenshots (needs internet for 3Dmol.js and RCSB)

Verification

I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.

bash serve_and_check.sh | grep -q 'EXPLAINER OK' && test -s docs/structure-1.png && test -s docs/structure-2.png

Notes

Rewritten 3 Dec 2026: the earlier page followed the guide's reference code. The page, styles, script and tests are now my own.

What isn't done, and why

The intended workflow has Claude Code write the page step by step and then audit the code and claims. I wrote it myself and checked it with a browser test, because the local model can't drive a multi-step Claude Code build. Not tested in Safari (Linux box), only Chrome.


Original project: https://nextwork.ai/projects/aaaf288e-f500-4e59-91d8-23d711e3cc2c · Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ bash serve_and_check.sh | grep -q 'EXPLAINER OK' && test -s docs/structure-1.png && test -s docs/structure-2.png


[exit code 0]