Software notebook / 2026 / In progress
The Tesseract Memory.
The portfolio you are reading, which puts online only the exact version I reviewed and none of the editing tools
- The hard part
- Making sure the page that goes online is exactly the version I reviewed, and that the editing tools never go online with it.
- Works today
- You are reading this site through it, and each page here went online only after I named the version I reviewed.
- Role
- Design and build, with Codex
- Built with
- Next.js · React · TypeScript · Three.js · SQLite · MCP · ChatGPT Sites · Node.js · JavaScript ESM · JSON · SHA-256 · Shared content validator · CLI
- Website
- Visit website
01What I built
The problem.
I change this site often, and three things can go wrong. I could check a page, edit it again, and then put the unchecked version online by mistake. A note could link to a build that is not online yet. And if the editing tools went online with the public site, only a hidden address would keep visitors away from them.
What I built.
The Tesseract Memory has three parts. The first is a private content service, a program that keeps the site's words. It saves every edit as a new version in SQLite, and it decides what can go online. The second is an exporter, which builds the public site from the pages that are online. It leaves out Studio, the screen where I edit. It also leaves out the private services and the A technical wordAPIA set of web addresses that one program uses to ask another program for data, or to ask it to do something. routes, the web addresses that programs call. The third is the reader, the pages visitors see. Its homepage has an animated figure drawn with 3D graphics code. On a computer, the figure follows the page sections as you scroll. On a phone, it sits in the page with the text.
The publishing system
TypeScript, SQLite, MCP
- Saved versions
- Each edit becomes a new version with a SHA-256 fingerprint. Rules inside the database stop anyone changing a saved version later.The storyPublishing only the exact draft that was reviewed
- Publishing check
- To publish, I must name the reviewed version and its fingerprint, and say who is publishing. A setting on this computer must allow it, and I must confirm.The storyPublishing only the exact draft that was reviewed
- Link rules
- A note can't go online with a link to a build that isn't online. A build can't be taken down while online notes link to it.
- Safe retries
- A repeated request with the same key gets the first answer back. A request with changed details is refused.
- Input checks
- Before saving, it limits the size and shape of the content. It refuses private file paths, text that looks like a password or key, and unknown fields.
The public site
Next.js, React, Three.js
- Exporter
- Checks the pages that are online, and copies only what the reading pages need into the public site.
- Reading pages
- Each page reads the same kind of record, from the published pages stored on this computer or from the fixed public copy.
- Homepage figure
- One animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.The storiesMaking the homepage figure follow the page as you scrollA seam in the homepage figure that smoother scrolling couldn’t fixA matching fingerprint doesn't mean the figure looks right
The program
Node.js, JavaScript ESM, JSON, SHA-256
Working Memory Content Operations- File discovery
- Finds the website and draft folders, and picks out the draft file names it recognises.
- Record checks
- Each draft must pass the check and stay a Draft with no publish date. Its content fingerprint must stay the same.The storyWhen the check changes the draft you reviewed
- Bundle checks
- Refuses two drafts with the same identity, and any note whose linked project isn't in the bundle.
- Report
- Lists fingerprints of the exact file bytes, the content and the checking code file. It leaves out the full drafts.The storyWhen the check changes the draft you reviewed
02The journey
What broke, and what changed.
Broke, then fixedA decisionA milestone
- 01 of 11DecidedThe Tesseract Memory
Put online the exact version I reviewed
The questionA draft can keep changing after I review it. If the site put online whatever is newest, it could show words nobody checked.
What I choseEach edit is saved as a new versionThe Tesseract Memory · The publishing systemSaved versionsEach edit becomes a new version with a SHA-256 fingerprint. Rules inside the database stop anyone changing a saved version later.See it in the map above, with a fingerprint of its content. A fingerprint is a short code that changes when the content changes. To publish, I must name the version I reviewed and its fingerprint. The site keeps a marker on the version readers see. The marker moves only if both match, in one A technical worddatabase transactionA group of database changes saved together, so either all of them are saved or none are., so the move is saved all at once or not at all.
- 02 of 11DecidedThe Tesseract Memory
Leave the editing tools out of the public site
The questionThe public site and its editing tools could go online together. Only a hidden address or a switched-off button would keep them apart.
What I choseThe exporterThe Tesseract Memory · The public siteExporterChecks the pages that are online, and copies only what the reading pages need into the public site.See it in the map above copies only the code the reading pages need. It swaps the parts that read the database for parts that read fixed files. Studio, my editing screen, never enters the public site, and nor do the private services. The web addresses that programs call and the files of starter drafts stay out too.
- 03 of 11DecidedThe Tesseract Memory
Tie each pose to a measured section of the page
The questionThe homepage figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above changes pose as you move through the page. Text wraps differently on every screen, which can put the figure in the wrong section.
What I choseOn a computer, the site measures where each section sits, and the poses follow those positions. On a phone, the first figure sits in the page with the text. It breathes in one slow cycle, reacts to touch and lets the page scroll normally.
- 04 of 11BrokeThe Tesseract Memory
A seam at the neck that smoother scrolling couldn’t fix
What went wrongThe figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above is made of tiny dots called particles. It followed scrolling correctly but still split between the head and neck, as particles side by side moved apart.
What changedThe fix was in the shader, the small program that moves each particle. It now moves neighbouring particles smoothly together, so they no longer split apart. More scroll smoothing would not have helped.
- 05 of 11BrokeThe Tesseract Memory
Bands across the figure’s face, neck and fingers
What went wrongEach grain of the figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above was drawn by the graphics chip as a single point. The size of the drawing area was worked out apart from the image it draws into. Bands across and down the figure appeared that weren't in the artwork. I traced them to two causes. The chip placed each point to only a sixteenth of a pixel. And the drawing area was one pixel off from the image.
What changedEach grain is now drawn as a small square, built from a shared list of corners. The drawing area now follows the image's real size. The number of grains and their colours are unchanged. So are the way see-through grains stack and the pose data.
ProofAll 383,099 grains keep their own identity. Only the pixels each one covers changed.
- 06 of 11DecidedThe Tesseract Memory
A matching fingerprint doesn't mean the figure looks right
The questionA fingerprint, a short code made from a file, can show the figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above's data hasn't changed. It can't show that the figure looks right.
What I choseThe site asks three separate questions about the figure. Which files are the originals? What data was made from them? What does the browser draw? A matching fingerprint doesn't count as approval of how the figure looks.
- 07 of 11BrokeThe Tesseract Memory
On phones the figure got in the way of reading
What went wrongOn phones, the page kept empty bands of space for the four-pose figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above from the computer layout. A later version moved one figure area between those bands. Scrolling jumped, and large gaps opened around the figure.
What changedOn screens narrower than 760 pixels, I removed the figure and its caption. I also removed the motion control and the space kept for it. The drawing code no longer starts on those screens. This was a stopgap, later replaced by a figure that sits in the page with the text.
- 08 of 11BrokeThe Tesseract Memory
A wavy line that stopped when the motion paused
What went wrongThe first figureThe Tesseract Memory · The public siteHomepage figureOne animated figure. On a computer it changes pose as you pass each section. On a phone it breathes in place.See it in the map above, the Reach figure, came back on phones. It sat in the page with the text, and its grains scattered at a touch. I could still see a wavy line. Pausing the motion stopped it, so the cause was the movement as well as how the image was turned into pixels.
What changedOn phones, the image the figure is drawn into now keeps the original 1586 by 992 grid. All the separate flowing and swaying when idle is gone. One shared breathing value now moves the whole figure.
ProofChecks on my computer cover the full-size drawing image, the single breathing motion and touch. Others cover pausing, the reduced-motion setting, and recovery when the figure comes back on screen.
- 10 of 11DecidedWorking Memory Content Operations
Tell a formatting change from a changed draft
The questionThe check tidies a draft into one standard form. If that changes the text, the version that passes isn't the one that was reviewed.
What I choseThe program takes a fingerprint of the contentThe Tesseract Memory · Working Memory Content Operations · The programRecord checksEach draft must pass the check and stay a Draft with no publish date. Its content fingerprint must stay the same.See it in the map above before the check and after it. A fingerprint is a short code that changes when the content changes. If the two differ, the program stops. Changes only to spacing or field order in the A technical wordJSONA common text format that programs use to send each other structured data. file, a common text format for data, don't count.
- 11 of 11DecidedWorking Memory Content Operations
Require linked projects in the same bundle
The questionA note links to a project, and that link has to be checked without a running service.
What I choseThe project file must be in the bundleThe Tesseract Memory · Working Memory Content Operations · The programBundle checksRefuses two drafts with the same identity, and any note whose linked project isn't in the bundle.See it in the map above, so the check runs offline. The cost is an extra file even when the project is already on the website.
03Today
Where it stands.
The publishing checksThe Tesseract Memory · The publishing systemPublishing checkTo publish, I must name the reviewed version and its fingerprint, and say who is publishing. A setting on this computer must allow it, and I must confirm.See it in the map above make sure what goes online is what I reviewed. They can't judge the writing or the animation. A person still has to read the page and watch it move. I checked the phone layout in a browser pretending to be a phone, not on every real phone.