Skip to the case study
Morph. Case study Back to the transmuter

File alchemy / Case study

Nothing leaves.
Everything changes.

Morph is a file converter built around one interaction: drop a file into a brass chamber, watch it shred into glyphs, and collect another format from the other side. The conversion runs in the tab, and the result tells you whether it was real or a labelled demo.

Role
Product design and frontend
Stack
TypeScript, Vite, Canvas 2D
Runtime
Browser only, no server
Status
Prototype 01, November 2026
The Morph home page at 1440 by 900, with the headline Turn anything into anything next to the idle brass transmuter chamber.
The live build at 1440x900. The chamber is the converter, not an illustration of one.
01

The problem

File conversion is a trust exercise in a windowless room.

Most online converters ask you to hand over a private file before they show you anything. The upload, the queue, and the download are opaque by design. Even when the result is correct, you cannot see the work.

The web already has the translators: image decoders, Canvas2D encoders, the JSON parser, and file readers. A converter can run in the tab. What is missing is a reason to believe it did. Morph treats the conversion itself as the interface, not a progress bar bolted to a form.

A converter and a magic trick

Both can turn a PNG into a WebP. Only one lets you inspect the boundary.

A comparison of a typical online converter and Morph for file location, feedback, result honesty, verifiability, and cost
Criterion A typical converter Morph
Where the file goes Uploaded to a server you cannot see. Stays in the tab. Nothing is sent.
What you watch A queue, a spinner, a percentage. Glyphs, a forge, a pulse, then the file.
What a result means Presented as a success by default. Marked REAL or DEMO, with a note that says why.
What you can check The service's word. Canvas2D, a parser, and Web Audio in the page.
What it asks of you An account, an upload, a wait. One file, up to 60 MB, no account.

The comparison is not really about features. It is about where the trust sits. Morph moves it into the tab, where the file already is, and then shows the work so the claim is not only a promise.

02

The machine

A converter you can watch think.

The chamber has four states, and each one is tied to the conversion rather than to a timer pretending to be one.

Idle is a brass ring with dust and a slow orbit. Ingest pulls the file card apart into up to 155 glyphs. Forge tightens the vortex and warms the ring. Complete sends a pulse through the glass, the result panel drops in, and a small bell lands. The card is real DOM, not a canvas drawing of a result.

The transmuter mid-conversion, with copper glyphs spiralling inside a glowing brass ring.
Forge. The file card is gone; the chamber is holding the shape.
The result panel showing orrery-no-7.webp, a REAL badge, a 98 percent reduction, and a download button.
Complete. A real PNG to WebP run: 1.1 MB to 26 KB, with the REAL badge and the receipt.

The animation is not a wrapper around the product. It is the product demo.

The interface gets out of the way when it should. Formats are disabled while the chamber is working. The result panel takes focus. Changing the target after a result requires Convert another, so the screen never shows a result for a setting that is no longer active.

Reading the result

REAL The content was converted in the tab: an image re-encoded, a table parsed, or JSON reformatted.

DEMO The file is valid, but it is a transmutation record, a metadata sheet, or a seal image. It is never presented as a successful content conversion.

The result panel showing field-notes.pdf, a DEMO badge, and a note explaining that the PDF is a demo artifact.
A demo artifact, labelled in the card and repeated in the note.
03

The film

Two minutes and twenty-eight seconds to explain the trick.

Morph has a real explainer, not a screen recording with a voiceover. It was built in Manim, narrated, scored, and cut around the prototype's own output. The argument is the same one the interface makes: a file is not a thing. It is a sequence of bytes, and a format is an agreement about how to read them.

The explainer. 1920x1080, 60 fps, 2:28, with English captions. The film is a GitHub attachment because the MP4 is not committed to the repository. If the player does not load, watch it from the release page.

The film follows one PNG through the chamber, then a CSV, then the honest demo case. The 1.1 MB to 26 KB and 553 B to 1.4 KB figures are runs from the live build. They are single measured samples, not a benchmark.

Nine beats

  1. 0:00

    A file feels like a thing.

  2. 0:22

    Decode one agreement, hold the meaning, encode the next.

  3. 0:33

    PNG and WebP agree on pixels. CSV and JSON agree on rows.

  4. 0:54

    A real PNG becomes WebP: 1.1 MB to 26 KB.

  5. 1:14

    A real CSV becomes JSON, with keys and typed values.

  6. 1:31

    PDF is a labelled demo, not a fake success.

  7. 1:40

    The browser already carries the translators.

  8. 1:52

    Nothing leaves the tab.

  9. 2:10

    A file was never the thing. It was the agreement.

04

How it works

The browser already has the translators. Morph conducts them.

There is no server, no framework, and no runtime dependency beyond the browser APIs. The whole product is a state machine, three conversion paths, one canvas loop, and a small synthesizer.

  1. Images go through Canvas2D.

    createImageBitmap decodes the file, with an <img> fallback for formats it cannot read. The bitmap is drawn to a canvas and encoded again with toBlob at WebP quality 0.9. Original dimensions are preserved up to a 7000 px side or 45 MP.

  2. Tables go through a small parser.

    Delimiter detection, quote-aware parsing, duplicate headers suffixed, and numbers and booleans typed. CSV and TSV become JSON objects with real keys.

  3. JSON is parsed and reindented.

    The built-in parser reads the file, then writes it back with two-space indentation. No server, no schema, no surprise fields.

  4. Everything else gets a receipt.

    PDF is a generated one-page record. JSON from an arbitrary file is a metadata sheet. An image target from an unsupported source is a rendered seal. All valid files, all marked DEMO.

A frame from the Morph explainer showing createImageBitmap, canvas.toBlob, File.text, and Blob URL around the chamber.
The four translators the browser already ships, named in the film. Morph only conducts them.

What happens to each route

Morph conversion routes, their REAL or DEMO badge, and what each route actually does
Route Badge What happens
PNG, JPG, WebP, GIF, AVIF, SVG to WebP or PNG REAL Decoded, drawn to Canvas2D, and re-encoded in the tab.
CSV or TSV to JSON REAL Parsed, headers deduplicated, cells typed as numbers, booleans, or strings.
JSON to JSON REAL Parsed and reindented with two spaces.
Any file to PDF DEMO A one-page transmutation record, not a rendering of the source.
An unsupported pair to JSON or an image DEMO A metadata sheet or a seal image, clearly labelled.

The boundary is data

export type ConversionKind = "real" | "demo";

return {
  blob,
  filename,
  kind: "real",
  note: "Real, local conversion. Re-encoded in this tab with Canvas2D. Nothing was uploaded.",
};

The kind drives the badge, the note, the accessible announcement, and the download's accessible label. It is not a label added after the fact. A demo path returns a valid file with the same pipeline, and the interface refuses to call it a conversion.

05

Performance

One loop, and only while you are looking.

The chamber is one Canvas2D context and one requestAnimationFrame loop. It stops when the tab is hidden or the stage leaves the viewport. At rest, it is not drawing frames you cannot see.

The device pixel ratio is capped at 2, so a 3x phone does not pay for pixels it cannot show. The particle budget is fixed: up to 173 glyphs, 40 sparks, 108 ticks, 34 dust motes, and a small ember stream. Reduced motion clears the particles and draws a static ring instead. The result still arrives.

Chamber states
4idle, ingest, forge, complete
Canvas loop
1no timer drives the drawing
Offscreen frames
0hidden tab, out of view
Full sequence
2.36 sbefore conversion work
Input cap
60 MBone file at a time
Audio files
0all cues synthesized

The full-motion chamber budget

  1. File card 440 ms
  2. Shred 480 ms
  3. Recast 640 ms
  4. Anneal 520 ms
  5. Condense 280 ms

2,360 ms total. Reduced motion compresses this to a short static pass.

A frame from the Morph explainer showing a 98 percent reduction, with a 1.1 MB PNG bar shrinking to a 26 KB WebP bar.
The film's measured run: 1.1 MB PNG to 26 KB WebP. The result panel reports the same numbers in the live build.

The numbers on this page are design budgets and constants from the build, not a lab benchmark. The measured claims are the sample runs in the film and in the result cards, where the source and output bytes are printed by the app. A device matrix is still to come. The limitations say so.

06

Accessibility

The chamber is decoration. The controls are not.

Morph is a visual toy, but it is not a canvas-only interface. The file intake, the format choice, the progress, the result, and the download are all real controls with real names.

  • The drop target is a real button with a dynamic label that names the current output format.
  • Format chips are buttons with aria-pressed. They are disabled while the chamber is working.
  • The hidden file input is removed from the tab order. The visible controls do the work.
  • A polite live region announces the start, the completion, the size change, and errors.
  • The result panel takes focus when it settles, but never steals it from the field notes dialog or another field.
  • The download is an anchor with a download attribute and a descriptive label.
  • Reduced motion skips the particles and shortens transitions. The result still arrives.
  • The field notes use a native <dialog>. Escape closes it and focus returns to the trigger.

Keyboard and pointer

Enter or Space
Open the file picker from the chamber.
Tab
Move through the formats, sample, and download.
Ctrl + V
Paste a file from the clipboard.
Drop
Drag a file anywhere onto the stage.
Escape
Close the field notes dialog.

On a Mac, use Cmd instead of Ctrl.

This page follows the same rules: one heading, semantic landmarks, a skip link, visible focus, and no meaning that depends on color alone. The REAL and DEMO badges carry text, and every note repeats the distinction in words.

07

Limitations

What this does not claim.

A prototype is more useful when it says where the edges are. These are the current ones.

  • One file at a time. There is no batch queue and no conversion history.
  • Conversion runs on the main thread. A very large image can block the interface.
  • The input cap is 60 MB.
  • There is no dedicated video, audio, archive, or HEIC route. Unsupported pairs return a labelled demo artifact.
  • PDF is always a demo record. It is a valid one-page file, not a rendering of the source.
  • The full sequence is deliberately slower than a bare file picker. Atmosphere is part of the product, but it is not for every task.
  • The only network request on the app is Google Fonts. Both families have system fallbacks. No file is uploaded, stored, or transmitted.
  • The film is a separate GitHub attachment. The case study page requests it as metadata on load, or when you press play.
The Morph home page at a mobile width, with the chamber stacked above the format chips and the main actions.
At 390 px the chamber becomes a column. The controls wrap. The promise does not.
08

What is next

Widen the machine without breaking the honesty.

The first version proves the interaction. The next work is evidence, reach, and more real paths.

  1. Move image work off the main thread.

    Use a worker with OffscreenCanvas so a 45 MP image does not stall the chamber.

  2. Publish a device matrix.

    Measure conversion time and output size for the sample set on low, mid, and high hardware.

  3. Grow the real set.

    Add HEIC where the browser can decode it, SVG rasterization, and an audio path only where the browser API is real.

  4. Cut a 30-second film.

    A shorter version for a README, a post, and the first ten seconds of a portfolio.

  5. Add an opt-in local history.

    Recent conversions in IndexedDB. Still no server, still no upload.

  6. Run a second material through the chamber.

    Prove the interaction is a system, not a one-off skin for one file type.

Try it

Bring a file. It will not leave.

Images convert for real. Tables convert for real. Everything else tells you the truth.

Open the transmuter