Architecture · nbg-design · Diagram Design

Inside a delivered deck

Inside a delivered deckArchitecture of one delivered HTML file: the slides and the inlined editor block, the menu and toolbars the editor builds in the browser, the edit records kept in browser storage and re-applied on load, and the three ways out — a saved edited copy, a PDF through the print layout, and an optional call to the viewer's own LLM endpoint.DECK.HTML · ONE FILEIN THE VIEWER'S BROWSERWAYS OUTBUILDS THE UIRECORDS EDITSRE-APPLIED ON LOADEDITS IN PLACEEXPORT TO PDFSNAPSHOT AT LOADAPPLY RECORDSPRINT LAYOUT · SAVE AS PDFHTTPS · VIEWER'S KEYHTMLSlidesN × .slide, images embeddedJSdeck-menu.jsthe editor, ~3,900 linesJSprint-layout.jssame shim as the CLI exporterUIMenu & toolbarstabs · text and shape rowsSTOREEdit recordslocalStorage · path, original, htmlEXTLLM endpointyour provider, your keyOUTSaved edited copydeck-edited.html, still one fileOUTPDFprint dialog → Save as PDFLEGENDFocal componentBrowser storageOutside the deckCalls / writesPassive: taken or re-applied on loadHTTPS