Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Etsy Code as Craft 9 min read Case study mediumAdept

The AR Measuring Box: Etsy's answer to Big Tape Measure

Etsy extended its iOS AR wall-art viewer into a 3D measuring box that shows an item's real size in a shopper's room, built on dimensions parsed from seller listings. The regex dimension parser moved from the iOS client to the API backend, where it handles plural, misspelled and localized units, unit conversions in parentheses, imperial compound measurements and fraction ligatures. It also de-duplicates repeated dimensions and prefers structured seller data over free-form text, and its results are cached and backfilled into the database. On iOS, a SceneKit SCNBox scaled to the parsed dimensions can be dragged and rotated on all axes, and LiDAR-generated meshes are placed invisibly in the scene so that real furniture occludes the box. Nearly a million listings now have the feature, viewed by tens of thousands of users weekly.

Assumes: regular expressionsiOS ARKit/SceneKit basics

Related posts

  • Understanding Etsy’s Vast Inventory with LLMs

    Etsy Code as Craft mediumAdept

    Etsy extracts structured product attributes such as color, material and dimensions from unstructured listing titles, descriptions and photos using LLMs. It does this because sellers rarely fill optional attribute fields, and passing raw text and images into search would add too much latency. The pipeline injects per-listing JSON context (listing data, expert-picked few-shot examples, taxonomy rules) into parallel prompts routed through LiteLLM across regions, then validates outputs with Pydantic. Evaluation moved from error-prone human labels to expert-reviewed "silver labels" from frontier LLMs, and each run first scores a ground-truth sample and aborts if precision or recall drift from baseline. In target categories, complete attribute coverage rose from 31% to 91%, and LLM-inferred attributes in search filters raised filter engagement and conversion.

  • Building an App Clip with React Native

    Shopify Engineering mediumAdept

    Shopify built an iOS App Clip for the Shop app in React Native under the 10MB size cap, aimed at reducing drop-off between the checkout "Thank you" page and order tracking. A naive Hello World App Clip was 28MB because autolinking pulled in every native dependency. Explicitly listing a minimal set of pods in the Podfile cut it to 4.3MB, and a scrappy feature-complete prototype came to 6.5MB. Sharing order-view components failed because they transitively pulled in heavy native dependencies, so the team duplicated UI code, reused only stable shared primitives, and let size constraints drive design decisions. A CI script compares Podfile dependencies against the App Clip's import graph to catch new native dependencies.

  • Application Metrics caught my broken size estimator

    Sentry mediumAdept

    Instrumenting Cliparr Convert, an in-browser video converter built on MediaBunny/WebCodecs, with Sentry Application Metrics exposed an AI-written size estimator that scaled source size by resolution and produced files up to 83% larger than predicted. Replacing it with a plain bitrate × duration formula brought most transcodes within about 5%. Recording the actual/estimated size ratio as a distribution tagged by estimator basis, format and quality also showed that copy mode over-estimates by about 16% and GIFs by about 9%. Counters cover the conversion and PWA install funnels, and metrics are preferred over traces or logs because they are unsampled and explicitly mark a KPI.

  • Level Up With Derived Columns: Understanding Screen Size (With Basic Arithmetic)

    Honeycomb mediumAdept

    Honeycomb's derived columns can compute values at query time instead of sending redundant fields from instrumentation, for example multiplying window height and width into a pixel area with MUL. Dividing window area by screen area with DIV gives a screen_used ratio. Heatmaps of that ratio show most users already fill nearly all of their screen, with almost nothing above 0.95, which suggests browser chrome takes about 5% and argues against enlarging the UI. Other uses include normalizing seconds to milliseconds and SUMming page-load phase timings, which keeps instrumentation DRY.

  • Safari on Apple HomeView

    WebKit mediumAdept

    Safari now runs on Apple HomeView, a square 7-inch display driven by voice and touch, and most well-built sites need no changes to work there. To get the most out of it, mark up recipes with schema.org Recipe JSON-LD so Safari can build its step-by-step cooking view, and supply video captions as WebVTT in track elements. Avoid user-agent sniffing, because HomeView reports an iOS UA; use feature detection and Smart App Banners instead. Use semantic, labeled controls so voice input works, and handle short, square viewports (for example, cap modal height at 90svh). Test in landscape on a phone or in Responsive Design Mode at 448×364.

The quest for software engineering knowledge.

Look:
Layout: