[{"data":1,"prerenderedAt":678},["ShallowReactive",2],{"\u002Fdocs\u002Flive-preview":3,"docs-nav":632},{"id":4,"title":5,"answer":6,"body":7,"brands":576,"date":591,"description":592,"extension":593,"faq":594,"keywords":607,"meta":611,"navigation":612,"order":613,"path":614,"product":615,"related":618,"seo":624,"stem":625,"steps":626,"updated":591,"__hash__":631},"docs\u002Fdocs\u002Flive-preview.md","Live preview: run your project and see artifacts","With a project folder connected, press Run preview and WLN starts your dev server (Vite, Next.js, Astro, Create React App or a dev script) or opens your static site in the side panel. Pages, React components and HTML slide decks the AI writes in chat preview in the same panel with no setup.",{"type":8,"value":9,"toc":558},"minimark",[10,23,28,33,49,191,204,208,228,235,241,244,270,274,289,300,313,317,324,328,340,344,351,355,366,370,439,449,454,458,498,511,521,525,528,545,551],[11,12,13,14,18,19,22],"p",{},"There are two kinds of preview in WLN. ",[15,16,17],"strong",{},"Run preview"," starts the web project in your folder, the same way you would in Terminal, and shows it next to the chat. ",[15,20,21],{},"Artifacts"," are pages, components and documents the AI writes in a chat, and they preview in the same side panel without a project or a server.",[24,25,27],"h2",{"id":26},"part-1-run-preview-for-a-project","Part 1: Run preview for a project",[29,30,32],"h3",{"id":31},"what-wln-can-run","What WLN can run",[11,34,35,36,40,41,44,45,48],{},"WLN looks at the connected folder, and at usual app folders inside it such as ",[37,38,39],"code",{},"web",", ",[37,42,43],{},"frontend"," or ",[37,46,47],{},"apps\u002Fweb",", and picks how to start it:",[50,51,52,68],"table",{},[53,54,55],"thead",{},[56,57,58,62,65],"tr",{},[59,60,61],"th",{},"Project",[59,63,64],{},"How WLN starts it",[59,66,67],{},"Usual port",[69,70,71,97,116,134,149,175],"tbody",{},[56,72,73,79,94],{},[74,75,76],"td",{},[15,77,78],{},"Vite",[74,80,81,82,85,86,89,90,93],{},"its ",[37,83,84],{},"dev"," script, with ",[37,87,88],{},"--host 127.0.0.1"," and ",[37,91,92],{},"--port"," unless the script sets them",[74,95,96],{},"5173",[56,98,99,104,113],{},[74,100,101],{},[15,102,103],{},"Next.js",[74,105,81,106,85,108,89,111,93],{},[37,107,84],{},[37,109,110],{},"--hostname 127.0.0.1",[37,112,92],{},[74,114,115],{},"3000",[56,117,118,123,131],{},[74,119,120],{},[15,121,122],{},"Astro",[74,124,81,125,85,127,89,129,93],{},[37,126,84],{},[37,128,88],{},[37,130,92],{},[74,132,133],{},"4321",[56,135,136,141,147],{},[74,137,138],{},[15,139,140],{},"Create React App",[74,142,81,143,146],{},[37,144,145],{},"start"," script",[74,148,115],{},[56,150,151,157,173],{},[74,152,153,156],{},[15,154,155],{},"A plain dev script"," (shown as Node.js)",[74,158,159,160,44,162,164,165,168,169,172],{},"the ",[37,161,84],{},[37,163,145],{}," script in ",[37,166,167],{},"package.json"," (",[37,170,171],{},"serve"," as a last try)",[74,174,115],{},[56,176,177,182,189],{},[74,178,179],{},[15,180,181],{},"A static site",[74,183,184,185,188],{},"opens ",[37,186,187],{},"index.html",", no server",[74,190],{},[11,192,193,194,89,197,200,201,203],{},"For every server it starts, WLN also sets the ",[37,195,196],{},"PORT",[37,198,199],{},"HOST"," variables. A plain dev script that reads ",[37,202,196],{}," works. One that always uses the same fixed port can fail, because WLN waits on the port it gave. WLN reads the lockfile to pick npm, pnpm, Yarn or Bun.",[29,205,207],{"id":206},"start-it","Start it",[209,210,211,215,221],"ol",{},[212,213,214],"li",{},"Connect your project folder with the folder button next to the message box.",[212,216,217,218,220],{},"Press the preview button in the chat header (its tooltip says “Run a live preview of the project”). While the server runs, the same button shows the live preview again. When you look at a project file in the artifact panel, the panel has its own ",[15,219,17],{}," button.",[212,222,223,224,227],{},"If the project’s packages aren’t installed, the panel says “This project’s packages aren’t installed yet. WLN asks before it installs anything.” A card asks to run the install command, for example ",[15,225,226],{},"Install packages: npm install",", and warns that it downloads packages and runs their install scripts. Allow it only for a project you trust.",[11,229,230,231,234],{},"The panel shows ",[15,232,233],{},"Live preview",", the kind of project and its name (for example “Node.js · notes-app”), the address on your Mac, and a status: Installing packages, Starting, Running, Didn’t start or Stopped.",[236,237],"doc-shot",{"alt":238,"caption":239,"name":240},"WLN with a finished team reply on the left and the Live preview panel on the right: Node.js · notes-app at http:\u002F\u002F127.0.0.1:3000\u002F, Running, Stop, Page and Logs, showing a Notes app with a Search notes box.","The demo notes app running in the Live preview panel, right after the team added a search box.","d11-run-preview",[11,242,243],{},"The panel’s controls:",[245,246,247,257,264],"ul",{},[212,248,249,252,253,256],{},[15,250,251],{},"Page \u002F Logs"," switches between the page and the server’s output. ",[15,254,255],{},"Copy log"," copies the output.",[212,258,259,260,263],{},"Reload, ",[15,261,262],{},"Open in your browser"," and restart buttons sit next to the address.",[212,265,266,269],{},[15,267,268],{},"Stop"," stops the dev server. Closing the panel only hides it, and the server keeps running until you press Stop, connect another folder or switch to another chat.",[29,271,273],{"id":272},"when-it-doesnt-start","When it doesn’t start",[11,275,276,277,280,281,284,285,288],{},"WLN waits up to three minutes for the server to answer. If it doesn’t, the status turns to ",[15,278,279],{},"Didn’t start",", with the log underneath and two buttons: ",[15,282,283],{},"Try again",", and ",[15,286,287],{},"Fix with AI",", which puts the error and the end of the log into the message box, ready to send. Nothing is sent until you press Send.",[11,290,291,292,295,296,299],{},"If Node.js isn’t on your Mac, the panel says ",[15,293,294],{},"Node.js is needed"," and tells you to install the LTS version from nodejs.org, or run ",[37,297,298],{},"brew install node"," in Terminal, then press Run preview again. The preview never installs Node.js by itself.",[11,301,302,303,306,307,309,310,312],{},"If WLN can’t find anything to run, it says ",[15,304,305],{},"No web project found",": there is no ",[37,308,167],{}," with a dev or start script and no ",[37,311,187],{},".",[29,314,316],{"id":315},"the-ai-can-start-it-too","The AI can start it too",[11,318,319,320,323],{},"In a chat with a project folder, the AI can start the preview itself, for example after building a page. You get a card like ",[15,321,322],{},"Start the preview: npm run dev",", with the note that it keeps running until you press Stop, and the warning that a dev script can run any code in the project.",[29,325,327],{"id":326},"watch-the-coding-team","Watch the coding team",[11,329,330,331,334,335,312],{},"While the coding team works on a web app, its task card has a ",[15,332,333],{},"Watch"," button. It opens the team’s version of the app, from its private copy, in the same panel (“Watching the team: …”), so you can see the change before it reaches your folder. The team keeps working when you close it. See ",[336,337,339],"a",{"href":338},"\u002Fdocs\u002Fcoding-team","The coding team",[29,341,343],{"id":342},"building-a-website-with-ai","Building a website with AI",[11,345,346,347,350],{},"Put the two together and you have a simple loop: connect an empty or existing folder, ask the team for the site you want, and press Run preview to try it. Ask for changes in the same chat, and Undo any you don’t like. For a one-page site, you don’t even need a folder: ask for an HTML page in a normal chat and it previews as an artifact (below). Press ",[15,348,349],{},"Save to project"," later if you want it as a file.",[24,352,354],{"id":353},"part-2-artifacts-in-the-side-panel","Part 2: Artifacts in the side panel",[11,356,357,358,361,362,365],{},"When the AI writes something you’d want to look at rather than read, such as a web page, a chart or a document, it makes an ",[15,359,360],{},"artifact",". A card with the title and file name appears in the reply. Press ",[15,363,364],{},"Open"," to show it in the side panel.",[29,367,369],{"id":368},"what-previews","What previews",[50,371,372,382],{},[53,373,374],{},[56,375,376,379],{},[59,377,378],{},"Kind",[59,380,381],{},"In the panel",[69,383,384,392,400,408,423,431],{},[56,385,386,389],{},[74,387,388],{},"HTML page",[74,390,391],{},"Live page",[56,393,394,397],{},[74,395,396],{},"SVG image",[74,398,399],{},"Live image",[56,401,402,405],{},[74,403,404],{},"Markdown",[74,406,407],{},"Formatted text",[56,409,410,420],{},[74,411,412,413,40,416,419],{},"React component (",[37,414,415],{},".jsx",[37,417,418],{},".tsx",")",[74,421,422],{},"Live, offline: React, Tailwind classes, lucide-react icons and recharts charts are built into WLN, so no internet or CDN is needed",[56,424,425,428],{},[74,426,427],{},"PDF, image, spreadsheet (xlsx, csv, tsv)",[74,429,430],{},"Shown when the file is in your project folder",[56,432,433,436],{},[74,434,435],{},"Code and plain text",[74,437,438],{},"Shown as text",[11,440,441,442,44,445,448],{},"The model can write a real ",[37,443,444],{},".pdf",[37,446,447],{},".xlsx"," file into your project folder, and the panel then shows it.",[236,450],{"alt":451,"caption":452,"name":453},"A chat that made a React artifact, LoavesChart.jsx, and the side panel previewing it: a bar chart of loaves sold each month with Bars and Line buttons and a Console row.","A React artifact with a recharts chart, previewed offline. Made by the Builder for $0.0031.","d11-react-chart",[29,455,457],{"id":456},"the-panels-tabs-and-buttons","The panel’s tabs and buttons",[245,459,460,472,486,491],{},[212,461,462,40,465,89,468,471],{},[15,463,464],{},"Preview",[15,466,467],{},"Code",[15,469,470],{},"Versions"," are the three tabs.",[212,473,474,475,478,479,481,482,485],{},"The icons on the right reload the preview, show the source, ",[15,476,477],{},"Copy"," the content, ",[15,480,262],{}," (for HTML, SVG and Markdown) and ",[15,483,484],{},"Save a copy"," to a file.",[212,487,488,490],{},[15,489,349],{}," writes the artifact into your project folder, when a folder is connected.",[212,492,493,494,497],{},"The ",[15,495,496],{},"v1"," menu at the top picks a version.",[11,499,500,502,503,506,507,510],{},[15,501,470],{}," lists every version the AI made, with its time and size. ",[15,504,505],{},"View"," shows an older one, and ",[15,508,509],{},"Restore"," makes it the newest version again. If the artifact is a file in your project, Restore writes it back to that file too.",[11,512,513,514,517,518,520],{},"For React components, the panel has a ",[15,515,516],{},"Console"," strip under the page. If the component fails, the panel shows the error and the line, with a ",[15,519,287],{}," button that puts the error into the message box, ready to send.",[24,522,524],{"id":523},"slides-what-wln-can-and-cant-do","Slides: what WLN can and can’t do",[11,526,527],{},"WLN has no slide feature and no slide editor. There are two ways to make a deck:",[209,529,530,539],{},[212,531,532,535,536,538],{},[15,533,534],{},"An HTML slide deck as an artifact."," Ask for one, for example “Make a 5-slide HTML slide deck for a small neighbourhood bakery”. It previews live in the side panel (ours moved between slides with the arrow keys), and ",[15,537,262],{}," shows it full size. In our test the Builder (DeepSeek V4.1 Flash) wrote a 5-slide deck for $0.01.",[212,540,541,544],{},[15,542,543],{},"The PowerPoint Decks skill."," Install it from the skills gallery. It gives the model instructions for making, editing and reading PowerPoint files. We didn’t test it for this page.",[236,546],{"alt":547,"caption":548,"name":549,"width":550},"The side panel with Preview, Code and Versions tabs showing slide 1 of 5 of an HTML deck for a bakery called Crumb & Co.","An HTML slide deck artifact, slide 1 of 5. The arrows at the bottom move between slides.","d11-html-deck","medium",[11,552,553,554,557],{},"For a deck you’ll present once from your own Mac, the HTML way works well. Our demo deck cost $0.01. If you need a ",[37,555,556],{},".pptx"," to send to someone who’ll edit it in PowerPoint, try the skill, and check the file before you send it.",{"title":559,"searchDepth":560,"depth":560,"links":561},"",2,[562,571,575],{"id":26,"depth":560,"text":27,"children":563},[564,566,567,568,569,570],{"id":31,"depth":565,"text":32},3,{"id":206,"depth":565,"text":207},{"id":272,"depth":565,"text":273},{"id":315,"depth":565,"text":316},{"id":326,"depth":565,"text":327},{"id":342,"depth":565,"text":343},{"id":353,"depth":560,"text":354,"children":572},[573,574],{"id":368,"depth":565,"text":369},{"id":456,"depth":565,"text":457},{"id":523,"depth":560,"text":524},[78,103,122,140,577,578,579,580,581,582,583,584,585,586,587,588,589,590],"React","Node.js","npm","pnpm","Yarn","Bun","Homebrew","Tailwind CSS","Lucide","Recharts","Microsoft","PowerPoint","Apple","DeepSeek","2026-12-05","Run your Vite, Next.js, Astro or static site inside WLN on your Mac, and preview the HTML pages, React components and slide decks the AI makes.","md",[595,598,601,604],{"q":596,"a":597},"Can WLN make slides?","\u003Cp>WLN has no slide editor. It can write a slide deck as an HTML page, which previews live in the side panel, and the skills gallery has a PowerPoint Decks skill for .pptx files.\u003C\u002Fp>",{"q":599,"a":600},"Do I need Node.js?","\u003Cp>Only to run a project’s dev server. Static sites and the artifacts the AI makes in chat, React components included, preview without it. The preview never installs Node.js by itself.\u003C\u002Fp>",{"q":602,"a":603},"Does the preview keep running if I close the panel?","\u003Cp>Yes. Closing the panel only hides it. The dev server runs until you press Stop, connect another folder or switch to another chat.\u003C\u002Fp>",{"q":605,"a":606},"Can I open the preview in my own browser?","\u003Cp>Yes. The Live preview panel and the artifact panel both have an Open in your browser button.\u003C\u002Fp>",[608,609,610],"build a website with ai","ai to make slides","html slides ai",{},true,11,"\u002Fdocs\u002Flive-preview",{"to":616,"label":617},"\u002Fdownload","Download WLN for Mac",[619,621],{"to":338,"label":620},"The coding team: Planner, Builder and Reviewer",{"to":622,"label":623},"\u002Fuse-cases\u002Fwebsites-and-slides","Websites and slides with AI",{"title":5,"description":592},"docs\u002Flive-preview",[214,627,628,629,630],"Press the preview button in the chat header.","Allow the package install if WLN asks for it.","Use the page in the Live preview panel, or switch to Logs to see the server’s output.","Press Stop when you’re done.","1ihIEkyixXM8a9FnZ-hN4f4ZbSnXQkiiSrjMERGWzaQ",[633,637,640,643,647,651,655,657,661,665,669,670,674],{"title":634,"path":635,"order":636},"Get started with WLN","\u002Fdocs\u002Fget-started",1,{"title":638,"path":639,"order":560},"How to get an OpenAI API key","\u002Fdocs\u002Fopenai-api-key",{"title":641,"path":642,"order":565},"How to get an Anthropic (Claude) API key","\u002Fdocs\u002Fanthropic-api-key",{"title":644,"path":645,"order":646},"How to get an OpenRouter API key","\u002Fdocs\u002Fopenrouter-api-key",4,{"title":648,"path":649,"order":650},"How to get a SubQ API key","\u002Fdocs\u002Fsubq-api-key",5,{"title":652,"path":653,"order":654},"What a chat costs, and how the $5 spending limit works","\u002Fdocs\u002Fcosts-and-spending-limit",6,{"title":620,"path":338,"order":656},7,{"title":658,"path":659,"order":660},"Connectors (MCP servers) in WLN","\u002Fdocs\u002Fconnectors",8,{"title":662,"path":663,"order":664},"Skills and memories","\u002Fdocs\u002Fskills-and-memory",9,{"title":666,"path":667,"order":668},"Web search and the browser","\u002Fdocs\u002Fweb-search-and-browser",10,{"title":5,"path":614,"order":613},{"title":671,"path":672,"order":673},"Privacy: where WLN keeps your keys and chats","\u002Fdocs\u002Fprivacy",12,{"title":675,"path":676,"order":677},"Requirements, updates and troubleshooting","\u002Fdocs\u002Ftroubleshooting",13,1796476260095]