[{"data":1,"prerenderedAt":360},["ShallowReactive",2],{"navigation_docs":3,"-providers-lightpanda":100,"-providers-lightpanda-surround":355},[4,52],{"title":5,"path":6,"stem":7,"children":8,"icon":51},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Scrape","\u002Fguide\u002Fscrape","1.guide\u002F02.scrape",{"title":16,"path":17,"stem":18},"Screenshots and PDFs","\u002Fguide\u002Fcaptures","1.guide\u002F03.captures",{"title":20,"path":21,"stem":22},"Links and accessibility and extract","\u002Fguide\u002Freading","1.guide\u002F04.reading",{"title":24,"path":25,"stem":26},"WebMCP","\u002Fguide\u002Fwebmcp","1.guide\u002F05.webmcp",{"title":28,"path":29,"stem":30},"Crawl and search","\u002Fguide\u002Fcrawl","1.guide\u002F06.crawl",{"title":32,"path":33,"stem":34},"Sessions","\u002Fguide\u002Fsessions","1.guide\u002F07.sessions",{"title":36,"path":37,"stem":38},"CLI","\u002Fguide\u002Fcli","1.guide\u002F08.cli",{"title":40,"path":41,"stem":42},"MCP, Pi, OMP and AI SDK","\u002Fguide\u002Fagents","1.guide\u002F09.agents",{"title":44,"path":45,"stem":46},"Errors","\u002Fguide\u002Ferrors","1.guide\u002F10.errors",{"title":48,"path":49,"stem":50},"Custom providers","\u002Fguide\u002Fcustom","1.guide\u002F11.custom","i-lucide-book-open",{"title":53,"path":54,"stem":55,"children":56,"icon":99},"Providers","\u002Fproviders","2.providers\u002F00.index",[57,59,63,67,71,75,79,83,87,91,95],{"title":58,"path":54,"stem":55},"Every provider",{"title":60,"path":61,"stem":62},"Steel","\u002Fproviders\u002Fsteel","2.providers\u002F01.steel",{"title":64,"path":65,"stem":66},"Browserbase","\u002Fproviders\u002Fbrowserbase","2.providers\u002F02.browserbase",{"title":68,"path":69,"stem":70},"Kernel","\u002Fproviders\u002Fkernel","2.providers\u002F03.kernel",{"title":72,"path":73,"stem":74},"Browserless","\u002Fproviders\u002Fbrowserless","2.providers\u002F04.browserless",{"title":76,"path":77,"stem":78},"Hyperbrowser","\u002Fproviders\u002Fhyperbrowser","2.providers\u002F05.hyperbrowser",{"title":80,"path":81,"stem":82},"Anchor","\u002Fproviders\u002Fanchor","2.providers\u002F06.anchor",{"title":84,"path":85,"stem":86},"Cloudflare","\u002Fproviders\u002Fcloudflare","2.providers\u002F07.cloudflare",{"title":88,"path":89,"stem":90},"Playwright","\u002Fproviders\u002Fplaywright","2.providers\u002F08.playwright",{"title":92,"path":93,"stem":94},"Lightpanda","\u002Fproviders\u002Flightpanda","2.providers\u002F09.lightpanda",{"title":96,"path":97,"stem":98},"Attach","\u002Fproviders\u002Fattach","2.providers\u002F10.attach","i-lucide-server",{"id":101,"title":92,"body":102,"description":348,"extension":349,"links":350,"meta":351,"navigation":352,"path":93,"seo":353,"stem":94,"__hash__":354},"docs\u002F2.providers\u002F09.lightpanda.md",{"type":103,"value":104,"toc":346},"minimark",[105,109,113,125,143,164,179,222,236,249,260,267,309,323,342],[106,107],"provider-facts",{"name":108},"lightpanda",[110,111,112],"p",{},"Want a real browser without a key? Lightpanda runs locally, with no bill. It's a headless browser written from scratch, not a Chromium build. No key. No account. No paint.",[110,114,115,116,120,121,124],{},"Choose it explicitly with ",[117,118,119],"code",{},"-p lightpanda"," or ",[117,122,123],{},"provider: \"lightpanda\"",". Playwright comes before it in the registry and needs no key either. Without a provider choice, the call never reaches Lightpanda.",[110,126,127,128,120,131,134,135,138,139,142],{},"Which mode do you get? A token selects Lightpanda Cloud. Set ",[117,129,130],{},"LIGHTPANDA_API_KEY",[117,132,133],{},"LPD_TOKEN",", the name Lightpanda uses. Cloud defaults to ",[117,136,137],{},"https:\u002F\u002Feuwest.cloud.lightpanda.io",". Set ",[117,140,141],{},"baseURL: \"https:\u002F\u002Fuswest.cloud.lightpanda.io\""," for the US region.",[110,144,145,146,149,150,152,153,156,157,163],{},"Without a token, Lightpanda runs locally. It uses ",[117,147,148],{},"LIGHTPANDA_EXECUTABLE_PATH",", or ",[117,151,108],{}," on your ",[117,154,155],{},"PATH",". If the binary is missing, the error points to ",[158,159,160],"a",{"href":160,"rel":161},"https:\u002F\u002Flightpanda.io\u002Fdocs",[162],"nofollow",".",[110,165,166,167,170,171,174,175,178],{},"A scrape without a session uses ",[117,168,169],{},"lightpanda fetch --json"," locally or ",[117,172,173],{},"POST \u002Fapi\u002Ffetch"," in the cloud. When you ask only for markdown, Lightpanda supplies its own markdown dump. ",[117,176,177],{},"browsers_scrape"," always asks for that. Otherwise, you get the DOM as HTML.",[110,180,181,182,185,186,189,190,193,194,197,198,201,202,205,206,209,210,120,212,214,215,218,219,221],{},"Need a session or ",[117,183,184],{},"waitFor","? Those use CDP through ",[117,187,188],{},"playwright-core",", as do ",[117,191,192],{},"navigate",", ",[117,195,196],{},"evaluate",", and ",[117,199,200],{},"links",". Local sessions start a ",[117,203,204],{},"lightpanda serve"," on a free loopback port. ",[117,207,208],{},"releaseSession()"," stops it. A ",[117,211,200],{},[117,213,184],{}," call without a session starts and stops its own server. ",[117,216,217],{},"browsers session -p lightpanda"," releases its session before it exits, so no ",[117,220,204],{}," hangs around.",[110,223,224,225,227,228,231,232,235],{},"Kill the host instead? Local ",[117,226,204],{}," processes stop when it gets SIGTERM, SIGINT, or SIGHUP. Good riddance to orphaned pandas. The signal then ends the host normally, unless your own handler decides otherwise. SIGKILL can't be caught, so servers survive that one. A ",[117,229,230],{},"ws:\u002F\u002F"," ",[117,233,234],{},"baseURL"," or the cloud starts none.",[110,237,238,239,241,242,244,245,248],{},"Already running a server? Set local ",[117,240,234],{}," to its ",[117,243,230],{}," address. Release closes the connection but leaves your server running. Sessions expose ",[117,246,247],{},"cdpUrl"," for your own Playwright or Puppeteer. In the cloud, that URL contains your token. Treat it like a key. Cloud CDP uses Lightpanda, not Chrome.",[110,250,251,252,255,256,259],{},"Screenshots and PDFs? No. Lightpanda doesn't paint pages. Its PNG and PDF renderings contain text, without CSS layout or images. ",[117,253,254],{},"screenshot()"," throws ",[117,257,258],{},"UnsupportedOperationError",", and the capability flags say false. There's no crawl either. A panda with no paint is still a browser.",[110,261,262,263,266],{},"A page that never loads throws ",[117,264,265],{},"NavigationError"," with Lightpanda's reason:",[268,269,274],"pre",{"className":270,"code":271,"language":272,"meta":273,"style":273},"language-bash shiki shiki-themes browsers browsers browsers","$ browsers scrape https:\u002F\u002Fnonexistent.invalid -p lightpanda\nLightpanda couldn't load the page: CouldntResolveHost\n","bash","",[117,275,276,301],{"__ignoreMap":273},[277,278,281,285,289,292,295,298],"span",{"class":279,"line":280},"line",1,[277,282,284],{"class":283},"sK71F","$",[277,286,288],{"class":287},"shU9J"," browsers",[277,290,291],{"class":287}," scrape",[277,293,294],{"class":287}," https:\u002F\u002Fnonexistent.invalid",[277,296,297],{"class":287}," -p",[277,299,300],{"class":287}," lightpanda\n",[277,302,304,306],{"class":279,"line":303},2,[277,305,92],{"class":283},[277,307,308],{"class":287}," couldn't load the page: CouldntResolveHost\n",[110,310,311,312,315,316,319,320,322],{},"The cloud tells the same story in other words. Its ",[117,313,314],{},"\u002Fapi\u002Ffetch"," answers a dead host with HTTP 500 and ",[117,317,318],{},"CouldntConnect",", and you still get ",[117,321,265],{},", not a server fault you'd retry.",[110,324,325,326,329,330,333,334,337,338,341],{},"A site's 404 page is content instead, with ",[117,327,328],{},"statusCode: 404",". Local fetch accepts only ",[117,331,332],{},"http"," and ",[117,335,336],{},"https"," URLs. Other schemes raise ",[117,339,340],{},"InvalidInputError"," before the binary starts.",[343,344,345],"style",{},"html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":273,"searchDepth":303,"depth":303,"links":347},[],"A local headless browser with no key or bill, plus a cloud option","md",null,{},true,{"title":92,"description":348},"JAizzAyPn2p9HVMkHxZRfTDCj6I92vAwyCDMSqR4U-8",[356,358],{"title":88,"path":89,"stem":90,"description":357,"children":-1},"Chromium on your own machine. No key and no account and no bill. Scrape and PDFs and links and crawl locally",{"title":96,"path":97,"stem":98,"description":359,"children":-1},"Read open tabs in your own logged-in browser",1795526332760]