How We Built Our Pitch Deck with Our Own API
The Problem with Slide Decks We needed marketing slides. The kind you send to potential partners, drop into a pitch deck, or post on social media. Ten slides covering the product, features, integra...

Source: DEV Community
The Problem with Slide Decks We needed marketing slides. The kind you send to potential partners, drop into a pitch deck, or post on social media. Ten slides covering the product, features, integrations, use cases, and a CTA. The obvious path: open Figma, drag boxes around, export PNGs. Update copy? Back to Figma. New product launched? Back to Figma. Font change? Back to Figma for every slide. We already had an API that composites images from JSON layers. We already had layout layers that arrange children with gap, alignment, padding, and border radius. The slides were just images with text and colored boxes. So we built them with our own API. What We Built Ten slides, generated from code, pixel-identical every time: Each slide is a single API call. The canvas is 2540x1520 (2x resolution for crisp output on retina screens). The whole deck generates in under 2 seconds. Layout Layers Are the Key Most of the slides use layout layers β a layer type that arranges children horizontally or ve