How Figma manages sandboxes at scale
Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers.
Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers.
Coinbase's design system team mapped every Coinbase Design System component to its code counterpart with Figma Code Connect.
Because Figma renders its canvas itself rather than through HTML, the browser's accessibility tree is nearly empty, so Figma rebuilt accessibility with a hidden but laid-out "Mirror DOM" synced to the scenegraph.
Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change.
Figma replaced PgBouncer with PGKeeper, a Go service built on PGX that sits between its DBProxy router and each Postgres instance.
FigCache is a stateless Go proxy that speaks the Redis RESP wire protocol.
Figma replaced its decade-old Instance Updater, a self-contained runtime that resolved component instances and also did its own layout and variable evaluation, with Materializer, a generic framework for deriving subtrees of the document tree from feature-defined blueprints.
On Figma's billing infrastructure, data science work centered on making a complex, stateful system legible and correct rather than on experiments.
Figma built Response Sampling, a detection layer that randomly samples outbound API responses and checks them for sensitive data the requesting user shouldn't see.
Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions.
Figma replaced the separate architectures behind component properties (scoped, layer-level parameters) and variables (global, library-level parameters) with one parametrization system.
Figma deployed Google's Santa binary authorization tool in lockdown mode across its entire macOS laptop fleet.
Figma's Rust multiplayer server represented each file node as a BTreeMap from u16 property IDs to pointers, and memory profiling showed this map used over 60% of a file's memory.
Figma replaced a daily `SELECT *` export from RDS Postgres to Snowflake, which had grown to six-hour syncs and multi-day lag on the largest tables, with an in-house incremental sync pipeline.
Adding horizontal scrolling to Figma's Layers panel was harder than expected because the list is virtualized (only visible rows render), rows are interactive (hide, lock, collapse, rename), and layer names vary in length.
Figma's corporate endpoint security puts usability first, on the premise that friction drives employees to risky workarounds.
Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style.
Figma pivoted from an AI design-autocomplete prototype to shipping visual and semantic search after research showed 75% of objects added to the canvas come from other files and designers struggle to find mid-level frames.
Figma's AI search embeds frames and published components with a CLIP-based multimodal model, so screenshots, layer selections and text all query one vector space.
Figma's search slowness traced mostly to its own stack, not OpenSearch: OpenSearch's headline 8 ms metric was per-shard time, and only the "took" field in responses reveals overall query latency, which accounted for under 30% of API time.
Figma moved most of its core services from AWS ECS to EKS in under 12 months.
Figma extended dynamic page loading from view-only files and prototypes to editable files, cutting load times for the slowest 5% of loads by 33% and reducing client memory.
Figma rebuilt LiveGraph, its real-time GraphQL-like subscription service over Postgres, to scale reads and database update load 100x as the database moved from one instance to vertical and horizontal shards.
Figma migrated its prototype viewer's mobile engine from Skew, an in-house compile-to-JavaScript language, to TypeScript using a custom Skew-to-TypeScript transpiler and a three-phase rollout (write/build Skew, write Skew/build TypeScript, write/build TypeScript) that never paused development.
Figma halved C++ build times by attacking the volume of preprocessed bytes sent to the compiler, which had grown far faster than the codebase.
Figma horizontally sharded its RDS Postgres stack after vertical partitioning ran out of room.
Figma replaced a sprawling Ruby `has_access?` permissions function with a custom, JSON-serializable permissions DSL and a cross-platform policy engine, inspired by AWS IAM policies.
Figma's inline device frames let designers drag and resize phone, tablet and watch bezels directly in the editor while still interacting with the prototype screen.
Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices.
Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's "Verified" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain.
Server-side workloads like image processing, parsing and thumbnailing often depend on memory-unsafe C++ libraries with histories of exploitable bugs (e.g. ImageTragick), so Figma isolates them with sandboxing rather than relying solely on preventing vulnerabilities.
Containers and seccomp offer lighter-weight sandboxing than VMs, but both shift much more configuration responsibility onto the user.
VM-based sandboxing rests on two boundaries: the hypervisor, which is usually strong but exposes a large attack surface, and the VM's own permissions, which must be restricted through network limits, minimal service access and short-lived credentials so a compromised job can't do harm without escaping.
Figma replaced its single-MacBook performance testing setup with two systems sharing one CI scheduler.
Figma component properties and codebase component props share names but serve different purposes: design props mark visual differences, while code props also carry behaviour, events and data.
Thumbtack's Thumbprint design system is organized in three layers: design tokens shared by web and native, an atomic CSS library built on the tokens, and accessible React components on top.
Figma's architecture resembles a game engine more than a typical web stack: a C++ canvas compiled to WebAssembly for 2D rendering, a React/TypeScript UI layer, and a Rust multiplayer server, plus layered systems for multiplayer, animation, collisions, chat and plugins.
Facing ~3x annual database traffic growth and 65% peak CPU on a single Amazon RDS Postgres instance, Figma chose vertical partitioning (moving groups of tables to their own databases) over horizontal sharding, NewSQL, or self-hosting.
Figma reworked its US-QWERTY-centric keyboard shortcuts to support about 15 international layouts, including German, French AZERTY, Japanese, Swedish and Korean.
Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta.
Figma added a write-ahead journal to its in-memory multiplayer service, which previously persisted files only via full checkpoints to S3 every 30–60 seconds.
Figma's small security team scales by favoring transparency, reusable patterns and trust over mandated process: thrice-weekly office hours backed by a three-question "ThreatJam" survey surface risks early.
Find and replace in Figma and FigJam turned out to be far harder than a search bar because canvas content is multi-directional, so result ordering had to be designed rather than inherited.
Figma built dark mode by replacing roughly 5,100 build-time PostCSS color variables with runtime CSS custom properties based on a semantic token schema (Type | UI Element | Color role | Prominence | Interaction), so new themes only require reassigning token values.
Figma's spring animations model motion as a damped spring governed by mass (F = m·a), stiffness (Hooke's law, F = −k·x) and damping (F = −b·v), using WebKit's SpringSolver to compute positions.
Four Figma outages over June 6–7, 2022 were caused by Engine CPU saturation on a Cluster-Mode Enabled AWS ElastiCache Redis node, triggered by Pub/Sub traffic flowing over the Redis Cluster Bus.
LiveGraph is Figma's real-time data layer on Postgres: frontend code declares GraphQL-like live queries via a React useSubscription hook, and the server keeps results updated by tailing the Postgres write-ahead log distributed over Kafka instead of polling.
Figma replaced its SSH bastion hosts with a zero-trust shell access system built on AWS SSO (backed by Okta with WebAuthn and device trust) and AWS Systems Manager Session Manager, so instances need no exposed SSH ports and access uses short-lived, minimally privileged IAM role credentials.