14. Meng To (@MengTo): The Design + Code Superpower & Spatial 3D UI
Meng To on the design + code superpower: Why static Figma mockups are dead, interactive prototyping with SwiftUI, and declarative WebGL 3D meshes using React Three Fiber.

14. Meng To (@MengTo): The Design + Code Superpower & Spatial 3D UI
"When designers learn to code, they stop designing static pictures of websites and start designing real dynamic behaviors, physics, and interactive logic."
โ Meng To, Founder of DesignCode.io & Author
๐ก The Core Thesis
Meng To pioneered the "Designers Who Code" movement. Through DesignCode, he demonstrated that the boundary between visual design (Figma, Sketch) and frontend programming (SwiftUI, React, Three.js) is an artificial divide that limits product innovation.
His core philosophy centers on:
- Interactive Prototyping in Production Code: Why build 50 Figma frames with hacky interaction lines when you can build a living SwiftUI or React component with genuine spring physics in fewer lines of code?
- Accessible 3D with React Three Fiber: Bringing WebGL and spatial lighting to everyday web landing pages without needing complex Blender rendering farms.
- Generative UI & Visual Scripting: Using AI as a creative amplifier to scaffold boilerplate code while human designers curate color palettes, lighting angles, and particle animations.
๐ ๏ธ Key Architectural Patterns
1. Minimal 3D Interactive Canvas with React Three Fiber & Drei
Rendering a floating, interactive 3D geometric mesh responsive to cursor position:
import { Canvas, useFrame } from '@react-three/fiber';
import { Float, MeshDistortMaterial } from '@react-three/drei';
import { useRef } from 'react';
import * as THREE from 'three';
function FloatingGlassOrb() {
const meshRef = useRef<THREE.Mesh>(null!);
useFrame((state) => {
// Gentle floating rotation tracking time elapsed
meshRef.current.rotation.x = state.clock.getElapsedTime() * 0.2;
meshRef.current.rotation.y = state.clock.getElapsedTime() * 0.3;
});
return (
<Float speed={2} rotationIntensity={1.5} floatIntensity={2}>
<mesh ref={meshRef}>
<sphereGeometry args={[1, 64, 64]} />
<MeshDistortMaterial
color="#8b5cf6"
roughness={0.1}
metalness={0.8}
distort={0.4}
speed={2}
/>
</mesh>
</Float>
);
}
export function HeroScene() {
return (
<div className="h-96 w-full">
<Canvas camera={{ position: [0, 0, 3] }}>
<ambientLight intensity={0.7} />
<directionalLight position={[10, 10, 5]} intensity={1.5} />
<FloatingGlassOrb />
</Canvas>
</div>
);
}๐งต Ready-to-Post Tweet Thread
1/4 ๐จ Why @MengTo inspired an entire generation of Design Engineers:
Static mockups can never communicate the tactile feel of an interface. When designers learn to write React and SwiftUI, the bottleneck disappears.
2/4 3D on the web is no longer gatekept:
With React Three Fiber and Three.js, adding reactive 3D glass orbs, distorted meshes, and dynamic camera angles takes fewer than 50 lines of declarative JSX.
3/4 The rise of the hybrid builder:
In the age of AI coding agents, the most valuable builders are those with high design taste who also understand code architecture.
4/4 Follow @MengTo for masterclasses on SwiftUI, 3D web design, and bridging the gap between Figma and production code.๐ How to Follow & Stay Current
- X Handle: @MengTo
- Key Themes: SwiftUI, React Three Fiber, 3D Web, DesignCode, Creative Coding, Animation.
- Top Hashtags:
#SwiftUI#ThreeJS#DesignCode#React
Discussion (0)
Continue Reading
More production-grade engineering deep dives and architectural guides

The Gemini Decisions API: Architecting a Deterministic Decision Service on a Probabilistic Model
A Hacker News thread argued about whether an LLM belongs on the critical path of a business decision. This is the production reference architecture that settles the argument: schema-bound structured output, bounded tool loops, deterministic policy gates, and a latency budget you can defend in a design review.

Brotli vs. Zstandard vs. Gzip at 1 PB/Month: Measured Ratios, CPU Seconds per GB, and the Real CDN Bill
At petabyte scale, compression is no longer a config flag โ it is a P&L line item. Here are the measured ratios, real CPU-seconds-per-GB numbers, and the break-even cache-hit math that decides whether Brotli q11 pays for itself or quietly bankrupts your origin.

Micro-Frontends at 5,000 Routes: Module Federation vs single-spa vs Web Components, Measured
We rebuilt the same 5,000-route enterprise shell three times โ Module Federation 2.0, single-spa, and native Web Components โ and measured p95 route transitions, marginal memory per mounted remote, duplicated vendor bytes, and the fully loaded cost of 1M deployments. The results invert most vendor claims: the fastest architecture on cold start is the one that duplicates the most code.