[{"data":1,"prerenderedAt":2081},["ShallowReactive",2],{"navigation_docs":3,"-extend-stream":529,"-extend-stream-surround":2076},[4,29,76,122,304,436,495],{"title":5,"path":6,"stem":7,"children":8,"page":28},"Start","\u002Fstart","1.start",[9,13,18,23],{"title":10,"path":11,"stem":12},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":14,"path":15,"stem":16,"icon":17},"Why start with evlog","\u002Fstart\u002Fwhy-evlog","1.start\u002F2.why-evlog","i-lucide-rocket",{"title":19,"path":20,"stem":21,"icon":22},"Installation","\u002Fstart\u002Finstallation","1.start\u002F3.installation","i-lucide-download",{"title":24,"path":25,"stem":26,"icon":27},"Quick Start","\u002Fstart\u002Fquick-start","1.start\u002F4.quick-start","i-lucide-zap",false,{"title":30,"path":31,"stem":32,"children":33,"page":28},"Learn","\u002Flearn","2.learn",[34,38,43,48,53,58,62,67,72],{"title":35,"path":36,"stem":37},"Learn evlog","\u002Flearn\u002Foverview","2.learn\u002F0.overview",{"title":39,"path":40,"stem":41,"icon":42},"Simple Logging","\u002Flearn\u002Fsimple-logging","2.learn\u002F1.simple-logging","i-lucide-terminal",{"title":44,"path":45,"stem":46,"icon":47},"Wide Events","\u002Flearn\u002Fwide-events","2.learn\u002F2.wide-events","i-lucide-layers",{"title":49,"path":50,"stem":51,"icon":52},"Structured Errors","\u002Flearn\u002Fstructured-errors","2.learn\u002F3.structured-errors","i-lucide-shield-alert",{"title":54,"path":55,"stem":56,"icon":57},"Lifecycle","\u002Flearn\u002Flifecycle","2.learn\u002F4.lifecycle","i-lucide-arrow-right-left",{"title":59,"path":60,"stem":61},"Sampling","\u002Flearn\u002Fsampling","2.learn\u002F5.sampling",{"title":63,"path":64,"stem":65,"icon":66},"Auto-Redaction","\u002Flearn\u002Fredaction","2.learn\u002F6.redaction","i-lucide-eye-off",{"title":68,"path":69,"stem":70,"icon":71},"Typed Fields","\u002Flearn\u002Ftyped-fields","2.learn\u002F7.typed-fields","i-simple-icons-typescript",{"title":73,"path":74,"stem":75},"Catalogs","\u002Flearn\u002Fcatalogs","2.learn\u002F8.catalogs",{"title":77,"path":78,"stem":79,"children":80,"page":28},"CLI","\u002Fcli","3.cli",[81,85,90,95,99,103,108,113,118],{"title":82,"path":83,"stem":84},"evlog CLI","\u002Fcli\u002Foverview","3.cli\u002F0.overview",{"title":86,"path":87,"stem":88,"icon":89},"init","\u002Fcli\u002Finit","3.cli\u002F1.init","i-lucide-wand-sparkles",{"title":91,"path":92,"stem":93,"icon":94},"map","\u002Fcli\u002Fmap","3.cli\u002F2.map","i-lucide-radar",{"title":96,"path":97,"stem":98},"Map rules","\u002Fcli\u002Frules","3.cli\u002F3.rules",{"title":100,"path":101,"stem":102},"Map scoring","\u002Fcli\u002Fscoring","3.cli\u002F4.scoring",{"title":104,"path":105,"stem":106,"icon":107},"CI","\u002Fcli\u002Fci","3.cli\u002F5.ci","i-lucide-git-pull-request",{"title":109,"path":110,"stem":111,"icon":112},"doctor","\u002Fcli\u002Fdoctor","3.cli\u002F6.doctor","i-lucide-stethoscope",{"title":114,"path":115,"stem":116,"icon":117},"telemetry","\u002Fcli\u002Ftelemetry","3.cli\u002F7.telemetry","i-lucide-bar-chart-3",{"title":119,"path":120,"stem":121},"evlog agents","\u002Fcli\u002Fagents","3.cli\u002F8.agents",{"title":123,"path":124,"stem":125,"children":126,"page":28},"Integrate","\u002Fintegrate","4.integrate",[127,132,216],{"title":128,"path":129,"stem":130,"icon":131},"Overview","\u002Fintegrate\u002Foverview","4.integrate\u002F0.overview","i-lucide-plug",{"title":133,"path":134,"stem":135,"children":136,"page":28},"Adapters","\u002Fintegrate\u002Fadapters","4.integrate\u002Fadapters",[137,141,171,196],{"title":128,"path":138,"stem":139,"icon":140},"\u002Fintegrate\u002Fadapters\u002Foverview","4.integrate\u002Fadapters\u002F01.overview","i-lucide-list",{"title":142,"path":143,"stem":144,"children":145,"page":28},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","4.integrate\u002Fadapters\u002Fcloud",[146,151,156,161,166],{"title":147,"path":148,"stem":149,"icon":150},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","4.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":152,"path":153,"stem":154,"icon":155},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","4.integrate\u002Fadapters\u002Fcloud\u002F02.posthog","i-simple-icons-posthog",{"title":157,"path":158,"stem":159,"icon":160},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","4.integrate\u002Fadapters\u002Fcloud\u002F03.sentry","i-simple-icons-sentry",{"title":162,"path":163,"stem":164,"icon":165},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","4.integrate\u002Fadapters\u002Fcloud\u002F04.better-stack","i-simple-icons-betterstack",{"title":167,"path":168,"stem":169,"icon":170},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","4.integrate\u002Fadapters\u002Fcloud\u002F05.datadog","i-simple-icons-datadog",{"title":172,"path":173,"stem":174,"children":175,"page":28},"Cloud or Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fhybrid","4.integrate\u002Fadapters\u002Fhybrid",[176,181,186,191],{"title":177,"path":178,"stem":179,"icon":180},"Grafana Loki","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Floki","4.integrate\u002Fadapters\u002Fhybrid\u002F01.loki","i-simple-icons-grafana",{"title":182,"path":183,"stem":184,"icon":185},"ClickHouse","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fclickhouse","4.integrate\u002Fadapters\u002Fhybrid\u002F02.clickhouse","i-simple-icons-clickhouse",{"title":187,"path":188,"stem":189,"icon":190},"OTLP","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fotlp","4.integrate\u002Fadapters\u002Fhybrid\u002F03.otlp","i-simple-icons-opentelemetry",{"title":192,"path":193,"stem":194,"icon":195},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fhyperdx","4.integrate\u002Fadapters\u002Fhybrid\u002F04.hyperdx","i-custom-hyperdx",{"title":197,"path":198,"stem":199,"children":200,"page":28},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","4.integrate\u002Fadapters\u002Fself-hosted",[201,206,211],{"title":202,"path":203,"stem":204,"icon":205},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","4.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":207,"path":208,"stem":209,"icon":210},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","4.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":212,"path":213,"stem":214,"icon":215},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","4.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":217,"path":218,"stem":219,"children":220,"page":28},"Frameworks","\u002Fintegrate\u002Fframeworks","4.integrate\u002Fframeworks",[221,225,230,235,240,245,250,255,260,265,270,275,280,285,289,294,299],{"title":128,"path":222,"stem":223,"icon":224},"\u002Fintegrate\u002Fframeworks\u002Foverview","4.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":226,"path":227,"stem":228,"icon":229},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","4.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":231,"path":232,"stem":233,"icon":234},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","4.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":236,"path":237,"stem":238,"icon":239},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","4.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":241,"path":242,"stem":243,"icon":244},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","4.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":246,"path":247,"stem":248,"icon":249},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","4.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":251,"path":252,"stem":253,"icon":254},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","4.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":256,"path":257,"stem":258,"icon":259},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","4.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":261,"path":262,"stem":263,"icon":264},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","4.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":266,"path":267,"stem":268,"icon":269},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","4.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":271,"path":272,"stem":273,"icon":274},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","4.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":276,"path":277,"stem":278,"icon":279},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","4.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":281,"path":282,"stem":283,"icon":284},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","4.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":286,"path":287,"stem":288,"icon":71},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","4.integrate\u002Fframeworks\u002F13.standalone",{"title":290,"path":291,"stem":292,"icon":293},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","4.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":295,"path":296,"stem":297,"icon":298},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","4.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":300,"path":301,"stem":302,"icon":303},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","4.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":305,"path":306,"stem":307,"children":308,"page":28},"Use Cases","\u002Fuse-cases","5.use-cases",[309,312,317,346,374,407,427,432],{"title":305,"path":310,"stem":311},"\u002Fuse-cases\u002Foverview","5.use-cases\u002F0.overview",{"title":313,"path":314,"stem":315,"icon":316},"Client Logging","\u002Fuse-cases\u002Fclient-logging","5.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":318,"icon":319,"path":320,"stem":321,"children":322,"page":28},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","5.use-cases\u002F2.ai-sdk",[323,326,331,336,341],{"title":128,"path":324,"stem":325,"icon":140},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","5.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":327,"path":328,"stem":329,"icon":330},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","5.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":332,"path":333,"stem":334,"icon":335},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","5.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":337,"path":338,"stem":339,"icon":340},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","5.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":342,"path":343,"stem":344,"icon":345},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","5.use-cases\u002F2.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":347,"icon":348,"path":349,"stem":350,"children":351,"page":28},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","5.use-cases\u002F3.better-auth",[352,355,360,365,369],{"title":128,"path":353,"stem":354,"icon":140},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","5.use-cases\u002F3.better-auth\u002F01.overview",{"title":356,"path":357,"stem":358,"icon":359},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","5.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":361,"path":362,"stem":363,"icon":364},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","5.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":366,"path":367,"stem":368,"icon":316},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","5.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":370,"path":371,"stem":372,"icon":373},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","5.use-cases\u002F3.better-auth\u002F05.performance","i-lucide-gauge",{"title":375,"icon":376,"path":377,"stem":378,"children":379,"page":28},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","5.use-cases\u002F4.audit",[380,383,388,393,398,402],{"title":128,"path":381,"stem":382,"icon":140},"\u002Fuse-cases\u002Faudit\u002Foverview","5.use-cases\u002F4.audit\u002F01.overview",{"title":384,"path":385,"stem":386,"icon":387},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","5.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":389,"path":390,"stem":391,"icon":392},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","5.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":394,"path":395,"stem":396,"icon":397},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","5.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":399,"path":400,"stem":401,"icon":376},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","5.use-cases\u002F4.audit\u002F05.compliance",{"title":403,"path":404,"stem":405,"icon":406},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","5.use-cases\u002F4.audit\u002F06.recipes","i-lucide-book-open",{"title":342,"icon":373,"path":408,"stem":409,"children":410,"page":28},"\u002Fuse-cases\u002Ftelemetry","5.use-cases\u002F4.telemetry",[411,414,419,423],{"title":128,"path":412,"stem":413,"icon":140},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","5.use-cases\u002F4.telemetry\u002F01.overview",{"title":415,"path":416,"stem":417,"icon":418},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","5.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":420,"path":421,"stem":422},"Telemetry Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","5.use-cases\u002F4.telemetry\u002F03.ingest",{"title":424,"path":425,"stem":426,"icon":406},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","5.use-cases\u002F4.telemetry\u002F04.reference",{"title":428,"path":429,"stem":430,"icon":431},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":433,"path":434,"stem":435},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve",{"title":437,"path":438,"stem":439,"children":440,"page":28},"Extend","\u002Fextend","6.extend",[441,445,450,455,459,464,468,472,476,481,486,491],{"title":128,"path":442,"stem":443,"icon":444},"\u002Fextend\u002Foverview","6.extend\u002F0.overview","i-lucide-blocks",{"title":446,"path":447,"stem":448,"icon":449},"Stream","\u002Fextend\u002Fstream","6.extend\u002F1.stream","i-lucide-radio-tower",{"title":451,"path":452,"stem":453,"icon":454},"Custom framework","\u002Fextend\u002Fcustom-framework","6.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":456,"path":457,"stem":458,"icon":449},"Diagnostics channel","\u002Fextend\u002Fdiagnostics-channel","6.extend\u002F11.diagnostics-channel",{"title":460,"path":461,"stem":462,"icon":463},"FS reader","\u002Fextend\u002Ffs-reader","6.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":403,"path":465,"stem":466,"icon":467},"\u002Fextend\u002Fconsumer-recipes","6.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":469,"path":470,"stem":471},"Plugins","\u002Fextend\u002Fplugins","6.extend\u002F4.plugins",{"title":473,"path":474,"stem":475,"icon":431},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","6.extend\u002F5.custom-enrichers",{"title":477,"path":478,"stem":479,"icon":480},"Tail sampling","\u002Fextend\u002Ftail-sampling","6.extend\u002F6.tail-sampling","i-lucide-filter",{"title":482,"path":483,"stem":484,"icon":485},"Identity headers","\u002Fextend\u002Fidentity-headers","6.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":487,"path":488,"stem":489,"icon":490},"Custom drains","\u002Fextend\u002Fcustom-drains","6.extend\u002F8.custom-drains","i-lucide-share-2",{"title":492,"path":493,"stem":494},"Drain Pipeline","\u002Fextend\u002Fdrain-pipeline","6.extend\u002F9.drain-pipeline",{"title":424,"path":496,"stem":497,"children":498,"page":28},"\u002Freference","7.reference",[499,504,507,512,516,521,525],{"title":500,"path":501,"stem":502,"icon":503},"Configuration","\u002Freference\u002Fconfiguration","7.reference\u002F1.configuration","i-lucide-settings",{"title":370,"path":505,"stem":506,"icon":373},"\u002Freference\u002Fperformance","7.reference\u002F2.performance",{"title":508,"path":509,"stem":510,"icon":511},"Vite Plugin","\u002Freference\u002Fvite-plugin","7.reference\u002F3.vite-plugin","i-custom-vite",{"title":513,"path":514,"stem":515,"icon":376},"Best Practices","\u002Freference\u002Fbest-practices","7.reference\u002F4.best-practices",{"title":517,"path":518,"stem":519,"icon":520},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","7.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":522,"path":523,"stem":524,"icon":431},"Agent Skills","\u002Freference\u002Fagent-skills","7.reference\u002F6.agent-skills",{"title":526,"path":527,"stem":528},"Log cost","\u002Freference\u002Fcost","7.reference\u002F7.cost",{"id":530,"title":446,"body":531,"description":2069,"extension":2070,"links":2071,"meta":2072,"navigation":2073,"path":447,"seo":2074,"stem":448,"__hash__":2075},"docs\u002F6.extend\u002F1.stream.md",{"type":532,"value":533,"toc":2056},"minimark",[534,543,567,582,586,589,594,671,990,994,1081,1090,1094,1097,1106,1112,1182,1186,1192,1230,1233,1237,1506,1519,1523,1526,1542,1545,1617,1620,1675,1679,1685,1773,1939,1943,2035,2039,2052],[535,536,537,538,542],"p",{},"evlog ships a ",[539,540,541],"strong",{},"stream primitive"," so any local consumer can subscribe to wide events without re-implementing a drain. There are two layers, building on each other:",[544,545,546,558],"ul",{},[547,548,549,552,553,557],"li",{},[539,550,551],{},"In-process bus"," — ",[554,555,556],"code",{},"createStreamDrain()",", the canonical pub\u002Fsub. Sync listeners, async iterators, ring-buffered replay.",[547,559,560,552,563,566],{},[539,561,562],{},"Network bridge",[554,564,565],{},"startStreamServer()",", an opt-in HTTP mini-server that exposes the in-process bus over Server-Sent Events for browsers, CLIs, or external devtools.",[568,569,570,573,574,577,578,581],"callout",{"icon":364},[539,571,572],{},"Local-only by design."," Both layers live inside a single Node \u002F Bun \u002F Deno process. They work in ",[554,575,576],{},"pnpm dev",", on long-lived self-hosted servers, on VMs and containers (Fly, Railway, Coolify…). They do ",[539,579,580],{},"not"," work on serverless platforms (Vercel Functions, Cloudflare Workers, AWS Lambda), each invocation is an isolated process. Use a real broker (Redis Streams, NATS, Pub\u002FSub) for cross-instance fan-out there.",[583,584,551],"h2",{"id":585},"in-process-bus",[587,588],"stream-bus",{},[535,590,591,593],{},[554,592,556],{}," is just a drain. Register it on the evlog drain hook and subscribe to events as they're emitted: no HTTP, no serialization, no extra hops.",[595,596,599,602,662],"prompt",{":actions":597,"description":598,"icon":449},"[\"copy\",\"cursor\",\"claude\"]","Subscribe to wide events in-process",[535,600,601],{},"Wire an in-process subscriber on top of evlog's stream drain.",[544,603,604,615,630,641,648,659],{},[547,605,606,607,610,611,614],{},"Import ",[554,608,609],{},"createStreamDrain"," from ",[554,612,613],{},"evlog\u002Fstream"," and call it once at app boot",[547,616,617,618,621,622,625,626,629],{},"Register the returned ",[554,619,620],{},"drain"," on the evlog drain hook for my framework (Nitro: ",[554,623,624],{},"nitroApp.hooks.hook('evlog:drain', stream.drain)","; Next\u002Fstandalone: pass to ",[554,627,628],{},"initLogger({ drain })",")",[547,631,632,633,636,637,640],{},"Subscribe with ",[554,634,635],{},"stream.subscribe((event) => ...)"," for sync listeners or ",[554,638,639],{},"for await (const event of stream.events())"," for async iteration",[547,642,643,644,647],{},"Seed history for late subscribers with ",[554,645,646],{},"stream.recent()"," (snapshot of the ring buffer) before opening the live iterator",[547,649,650,651,654,655,658],{},"Tune ",[554,652,653],{},"buffer"," for replay history and ",[554,656,657],{},"perSubscriberQueue"," for slow-consumer backpressure",[547,660,661],{},"Skip on serverless platforms — the stream is in-process, isolated invocations won't share it",[535,663,664,665],{},"Docs: ",[666,667,668],"a",{"href":668,"rel":669},"https:\u002F\u002Fwww.evlog.dev\u002Fextend\u002Fstream",[670],"nofollow",[672,673,678],"pre",{"className":674,"code":675,"language":676,"meta":677,"style":677},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createStreamDrain } from 'evlog\u002Fstream'\n\nconst stream = createStreamDrain({ buffer: 200 })\n\nnitroApp.hooks.hook('evlog:drain', stream.drain)\n\nconst off = stream.subscribe((event) => {\n  if (event.level === 'error') notify(event)\n})\noff()\n\nfor (const past of stream.recent()) {\n  bootstrap(past)\n}\nfor await (const event of stream.events()) {\n  bootstrap(event)\n}\n","ts","",[554,679,680,712,719,757,762,800,805,838,876,884,893,898,927,940,946,974,985],{"__ignoreMap":677},[681,682,685,689,693,697,700,703,706,709],"span",{"class":683,"line":684},"line",1,[681,686,688],{"class":687},"s7zQu","import",[681,690,692],{"class":691},"sMK4o"," {",[681,694,696],{"class":695},"sTEyZ"," createStreamDrain",[681,698,699],{"class":691}," }",[681,701,702],{"class":687}," from",[681,704,705],{"class":691}," '",[681,707,613],{"class":708},"sfazB",[681,710,711],{"class":691},"'\n",[681,713,715],{"class":683,"line":714},2,[681,716,718],{"emptyLinePlaceholder":717},true,"\n",[681,720,722,726,729,732,735,738,741,745,748,752,754],{"class":683,"line":721},3,[681,723,725],{"class":724},"spNyl","const",[681,727,728],{"class":695}," stream ",[681,730,731],{"class":691},"=",[681,733,696],{"class":734},"s2Zo4",[681,736,737],{"class":695},"(",[681,739,740],{"class":691},"{",[681,742,744],{"class":743},"swJcz"," buffer",[681,746,747],{"class":691},":",[681,749,751],{"class":750},"sbssI"," 200",[681,753,699],{"class":691},[681,755,756],{"class":695},")\n",[681,758,760],{"class":683,"line":759},4,[681,761,718],{"emptyLinePlaceholder":717},[681,763,765,768,771,774,776,779,781,784,787,789,792,795,797],{"class":683,"line":764},5,[681,766,767],{"class":695},"nitroApp",[681,769,770],{"class":691},".",[681,772,773],{"class":695},"hooks",[681,775,770],{"class":691},[681,777,778],{"class":734},"hook",[681,780,737],{"class":695},[681,782,783],{"class":691},"'",[681,785,786],{"class":708},"evlog:drain",[681,788,783],{"class":691},[681,790,791],{"class":691},",",[681,793,794],{"class":695}," stream",[681,796,770],{"class":691},[681,798,799],{"class":695},"drain)\n",[681,801,803],{"class":683,"line":802},6,[681,804,718],{"emptyLinePlaceholder":717},[681,806,808,810,813,815,817,819,822,824,826,830,832,835],{"class":683,"line":807},7,[681,809,725],{"class":724},[681,811,812],{"class":695}," off ",[681,814,731],{"class":691},[681,816,794],{"class":695},[681,818,770],{"class":691},[681,820,821],{"class":734},"subscribe",[681,823,737],{"class":695},[681,825,737],{"class":691},[681,827,829],{"class":828},"sHdIc","event",[681,831,629],{"class":691},[681,833,834],{"class":724}," =>",[681,836,837],{"class":691}," {\n",[681,839,841,844,847,849,851,854,857,859,862,864,867,870,872,874],{"class":683,"line":840},8,[681,842,843],{"class":687},"  if",[681,845,846],{"class":743}," (",[681,848,829],{"class":695},[681,850,770],{"class":691},[681,852,853],{"class":695},"level",[681,855,856],{"class":691}," ===",[681,858,705],{"class":691},[681,860,861],{"class":708},"error",[681,863,783],{"class":691},[681,865,866],{"class":743},") ",[681,868,869],{"class":734},"notify",[681,871,737],{"class":743},[681,873,829],{"class":695},[681,875,756],{"class":743},[681,877,879,882],{"class":683,"line":878},9,[681,880,881],{"class":691},"}",[681,883,756],{"class":695},[681,885,887,890],{"class":683,"line":886},10,[681,888,889],{"class":734},"off",[681,891,892],{"class":695},"()\n",[681,894,896],{"class":683,"line":895},11,[681,897,718],{"emptyLinePlaceholder":717},[681,899,901,904,906,908,911,914,916,918,921,924],{"class":683,"line":900},12,[681,902,903],{"class":687},"for",[681,905,846],{"class":695},[681,907,725],{"class":724},[681,909,910],{"class":695}," past ",[681,912,913],{"class":691},"of",[681,915,794],{"class":695},[681,917,770],{"class":691},[681,919,920],{"class":734},"recent",[681,922,923],{"class":695},"()) ",[681,925,926],{"class":691},"{\n",[681,928,930,933,935,938],{"class":683,"line":929},13,[681,931,932],{"class":734},"  bootstrap",[681,934,737],{"class":743},[681,936,937],{"class":695},"past",[681,939,756],{"class":743},[681,941,943],{"class":683,"line":942},14,[681,944,945],{"class":691},"}\n",[681,947,949,951,954,956,958,961,963,965,967,970,972],{"class":683,"line":948},15,[681,950,903],{"class":687},[681,952,953],{"class":687}," await",[681,955,846],{"class":695},[681,957,725],{"class":724},[681,959,960],{"class":695}," event ",[681,962,913],{"class":691},[681,964,794],{"class":695},[681,966,770],{"class":691},[681,968,969],{"class":734},"events",[681,971,923],{"class":695},[681,973,926],{"class":691},[681,975,977,979,981,983],{"class":683,"line":976},16,[681,978,932],{"class":734},[681,980,737],{"class":743},[681,982,829],{"class":695},[681,984,756],{"class":743},[681,986,988],{"class":683,"line":987},17,[681,989,945],{"class":691},[991,992,332],"h3",{"id":993},"options",[995,996,997,1013],"table",{},[998,999,1000],"thead",{},[1001,1002,1003,1007,1010],"tr",{},[1004,1005,1006],"th",{},"Option",[1004,1008,1009],{},"Type",[1004,1011,1012],{},"Description",[1014,1015,1016,1042,1062],"tbody",{},[1001,1017,1018,1023,1028],{},[1019,1020,1021],"td",{},[554,1022,653],{},[1019,1024,1025],{},[554,1026,1027],{},"number",[1019,1029,1030,1031,1034,1035,1038,1039,770],{},"Ring-buffer size for ",[554,1032,1033],{},"recent()"," snapshots. Set to ",[554,1036,1037],{},"0"," to disable. Default: ",[554,1040,1041],{},"500",[1001,1043,1044,1048,1052],{},[1019,1045,1046],{},[554,1047,657],{},[1019,1049,1050],{},[554,1051,1027],{},[1019,1053,1054,1055,1058,1059,770],{},"Max queued events per ",[554,1056,1057],{},"events()"," async iterator before the oldest are dropped. The drain itself is never blocked. Default: ",[554,1060,1061],{},"1000",[1001,1063,1064,1069,1074],{},[1019,1065,1066],{},[554,1067,1068],{},"filter",[1019,1070,1071],{},[554,1072,1073],{},"(event) => boolean",[1019,1075,1076,1077,1080],{},"Optional predicate run on each drained event — return ",[554,1078,1079],{},"false"," to skip the event entirely (neither buffered nor delivered).",[535,1082,1083,1086,1087,1089],{},[554,1084,1085],{},"stream.drain(events)"," accepts either a single event or a batch. ",[554,1088,646],{}," returns a snapshot of the buffered events (oldest first, most recent last) for ad-hoc inspection or to seed a UI panel.",[583,1091,1093],{"id":1092},"network-bridge-stream-server","Network bridge — stream server",[1095,1096],"sse-wire",{},[535,1098,1099,1101,1102,1105],{},[554,1100,565],{}," boots a tiny ",[554,1103,1104],{},"node:http"," server in the same process as your app, on its own ephemeral port, and exposes the in-process bus over Server-Sent Events. Any consumer (browser tab, CLI, Tauri\u002FElectron devtool) can subscribe, and your application API is untouched.",[568,1107,1108,1111],{"icon":364},[539,1109,1110],{},"Strict opt-in."," Nothing starts unless you set the option explicitly. There is no auto-enable in dev, and the server only boots when you ask for it.",[595,1113,1116,1119,1177],{":actions":597,"description":1114,"icon":1115},"Expose the evlog stream over SSE","i-lucide-radio",[535,1117,1118],{},"Turn on the local stream server so I can subscribe to wide events from a browser tab, CLI, or Tauri\u002FElectron devtool.",[544,1120,1121,1145,1152,1163,1174],{},[547,1122,1123,1124,1127,1128,1131,1132,1127,1135,1138,1139,1141,1142,1144],{},"Detect my framework and opt in explicitly (Nuxt: ",[554,1125,1126],{},"evlog.stream: true"," in ",[554,1129,1130],{},"nuxt.config.ts","; Next.js: ",[554,1133,1134],{},"defineStreamedInstrumentation({ stream: true })",[554,1136,1137],{},"instrumentation.ts","; Hono\u002FExpress\u002FFastify\u002FElysia\u002Fstandalone: call ",[554,1140,565],{}," once at boot and register the returned ",[554,1143,620],{}," on the evlog drain hook)",[547,1146,1147,1148,1151],{},"Never enable in production by default; gate it behind ",[554,1149,1150],{},"process.env.NODE_ENV !== 'production'"," or a feature flag",[547,1153,1154,1155,1158,1159,1162],{},"For shared dev environments, set ",[554,1156,1157],{},"token: process.env.EVLOG_STREAM_TOKEN"," and have the consumer send it as ",[554,1160,1161],{},"Authorization: Bearer \u003Ctoken>"," on every request",[547,1164,1165,1166,1169,1170,1173],{},"Discover the URL from ",[554,1167,1168],{},".evlog\u002Fstream.url"," (or ",[554,1171,1172],{},"\u002Fapi\u002F_evlog\u002Fstream-info"," on Nuxt) — never hard-code the port, it's ephemeral",[547,1175,1176],{},"Skip on serverless platforms — the server is in-process",[535,1178,664,1179],{},[666,1180,668],{"href":668,"rel":1181},[670],[991,1183,1185],{"id":1184},"what-boots-up","What boots up",[535,1187,1188,1189,1191],{},"When you opt in, evlog calls ",[554,1190,565],{}," and:",[1193,1194,1195,1198,1208,1213,1216,1219],"ol",{},[547,1196,1197],{},"Picks an ephemeral free port (or the one you specify)",[547,1199,1200,1201,1203,1204,1207],{},"Spins a tiny ",[554,1202,1104],{}," server on ",[554,1205,1206],{},"127.0.0.1"," (or your host)",[547,1209,1210,1211],{},"Writes the discovered URL to ",[554,1212,1168],{},[547,1214,1215],{},"Prints a one-line banner in the server console",[547,1217,1218],{},"Hooks the in-process stream drain into the evlog pipeline",[547,1220,1221,1222,1225,1226,1229],{},"Exposes ",[554,1223,1224],{},"GET \u002F"," for the SSE stream and ",[554,1227,1228],{},"GET \u002Finfo"," for handshake metadata",[535,1231,1232],{},"On shutdown (SIGINT \u002F SIGTERM \u002F process exit) the server cleans up listeners and removes the URL file.",[991,1234,1236],{"id":1235},"per-framework-opt-in","Per-framework opt-in",[1238,1239,1240,1322,1391],"code-group",{},[672,1241,1243],{"className":674,"code":1242,"filename":1130,"language":676,"meta":677,"style":677},"export default defineNuxtConfig({\n  modules: ['evlog\u002Fnuxt'],\n  evlog: {\n    stream: true,\n    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n  },\n})\n",[554,1244,1245,1260,1283,1292,1305,1311,1316],{"__ignoreMap":677},[681,1246,1247,1250,1253,1256,1258],{"class":683,"line":684},[681,1248,1249],{"class":687},"export",[681,1251,1252],{"class":687}," default",[681,1254,1255],{"class":734}," defineNuxtConfig",[681,1257,737],{"class":695},[681,1259,926],{"class":691},[681,1261,1262,1265,1267,1270,1272,1275,1277,1280],{"class":683,"line":714},[681,1263,1264],{"class":743},"  modules",[681,1266,747],{"class":691},[681,1268,1269],{"class":695}," [",[681,1271,783],{"class":691},[681,1273,1274],{"class":708},"evlog\u002Fnuxt",[681,1276,783],{"class":691},[681,1278,1279],{"class":695},"]",[681,1281,1282],{"class":691},",\n",[681,1284,1285,1288,1290],{"class":683,"line":721},[681,1286,1287],{"class":743},"  evlog",[681,1289,747],{"class":691},[681,1291,837],{"class":691},[681,1293,1294,1297,1299,1303],{"class":683,"line":759},[681,1295,1296],{"class":743},"    stream",[681,1298,747],{"class":691},[681,1300,1302],{"class":1301},"sfNiH"," true",[681,1304,1282],{"class":691},[681,1306,1307],{"class":683,"line":764},[681,1308,1310],{"class":1309},"sHwdD","    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n",[681,1312,1313],{"class":683,"line":802},[681,1314,1315],{"class":691},"  },\n",[681,1317,1318,1320],{"class":683,"line":807},[681,1319,881],{"class":691},[681,1321,756],{"class":695},[672,1323,1325],{"className":674,"code":1324,"filename":1137,"language":676,"meta":677,"style":677},"import { defineStreamedInstrumentation } from 'evlog\u002Fnext\u002Fstream'\n\nexport const { register } = defineStreamedInstrumentation({\n  stream: true,\n})\n",[554,1326,1327,1347,1351,1374,1385],{"__ignoreMap":677},[681,1328,1329,1331,1333,1336,1338,1340,1342,1345],{"class":683,"line":684},[681,1330,688],{"class":687},[681,1332,692],{"class":691},[681,1334,1335],{"class":695}," defineStreamedInstrumentation",[681,1337,699],{"class":691},[681,1339,702],{"class":687},[681,1341,705],{"class":691},[681,1343,1344],{"class":708},"evlog\u002Fnext\u002Fstream",[681,1346,711],{"class":691},[681,1348,1349],{"class":683,"line":714},[681,1350,718],{"emptyLinePlaceholder":717},[681,1352,1353,1355,1358,1360,1363,1365,1368,1370,1372],{"class":683,"line":721},[681,1354,1249],{"class":687},[681,1356,1357],{"class":724}," const",[681,1359,692],{"class":691},[681,1361,1362],{"class":695}," register ",[681,1364,881],{"class":691},[681,1366,1367],{"class":691}," =",[681,1369,1335],{"class":734},[681,1371,737],{"class":695},[681,1373,926],{"class":691},[681,1375,1376,1379,1381,1383],{"class":683,"line":759},[681,1377,1378],{"class":743},"  stream",[681,1380,747],{"class":691},[681,1382,1302],{"class":1301},[681,1384,1282],{"class":691},[681,1386,1387,1389],{"class":683,"line":764},[681,1388,881],{"class":691},[681,1390,756],{"class":695},[672,1392,1395],{"className":674,"code":1393,"filename":1394,"language":676,"meta":677,"style":677},"import { startStreamServer } from 'evlog\u002Fstream'\n\nif (process.env.NODE_ENV !== 'production' && process.env.EVLOG_STREAM === '1') {\n  const { drain } = await startStreamServer()\n  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n}\n","Hono \u002F Express \u002F Fastify \u002F standalone",[554,1396,1397,1416,1420,1477,1497,1502],{"__ignoreMap":677},[681,1398,1399,1401,1403,1406,1408,1410,1412,1414],{"class":683,"line":684},[681,1400,688],{"class":687},[681,1402,692],{"class":691},[681,1404,1405],{"class":695}," startStreamServer",[681,1407,699],{"class":691},[681,1409,702],{"class":687},[681,1411,705],{"class":691},[681,1413,613],{"class":708},[681,1415,711],{"class":691},[681,1417,1418],{"class":683,"line":714},[681,1419,718],{"emptyLinePlaceholder":717},[681,1421,1422,1425,1428,1430,1433,1435,1438,1441,1443,1446,1448,1451,1454,1456,1458,1460,1463,1466,1468,1471,1473,1475],{"class":683,"line":721},[681,1423,1424],{"class":687},"if",[681,1426,1427],{"class":695}," (process",[681,1429,770],{"class":691},[681,1431,1432],{"class":695},"env",[681,1434,770],{"class":691},[681,1436,1437],{"class":695},"NODE_ENV ",[681,1439,1440],{"class":691},"!==",[681,1442,705],{"class":691},[681,1444,1445],{"class":708},"production",[681,1447,783],{"class":691},[681,1449,1450],{"class":691}," &&",[681,1452,1453],{"class":695}," process",[681,1455,770],{"class":691},[681,1457,1432],{"class":695},[681,1459,770],{"class":691},[681,1461,1462],{"class":695},"EVLOG_STREAM ",[681,1464,1465],{"class":691},"===",[681,1467,705],{"class":691},[681,1469,1470],{"class":708},"1",[681,1472,783],{"class":691},[681,1474,866],{"class":695},[681,1476,926],{"class":691},[681,1478,1479,1482,1484,1487,1489,1491,1493,1495],{"class":683,"line":759},[681,1480,1481],{"class":724},"  const",[681,1483,692],{"class":691},[681,1485,1486],{"class":695}," drain",[681,1488,699],{"class":691},[681,1490,1367],{"class":691},[681,1492,953],{"class":687},[681,1494,1405],{"class":734},[681,1496,892],{"class":743},[681,1498,1499],{"class":683,"line":764},[681,1500,1501],{"class":1309},"  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n",[681,1503,1504],{"class":683,"line":802},[681,1505,945],{"class":691},[535,1507,1508,1509,1511,1512,1515,1516,1518],{},"The Hono \u002F Express \u002F Fastify integrations don't need a \"feature PR\", because ",[554,1510,565],{}," is ",[539,1513,1514],{},"orthogonal"," to your framework. You boot it once and connect its ",[554,1517,620],{}," to the evlog pipeline like any other drain.",[991,1520,1522],{"id":1521},"discovery","Discovery",[535,1524,1525],{},"The mini-server runs on a random port, so any consumer must discover it.",[672,1527,1529],{"className":674,"code":1528,"filename":1168,"language":676,"meta":677,"style":677},"http:\u002F\u002F127.0.0.1:53942\n",[554,1530,1531],{"__ignoreMap":677},[681,1532,1533,1537,1539],{"class":683,"line":684},[681,1534,1536],{"class":1535},"sBMFI","http",[681,1538,747],{"class":691},[681,1540,1541],{"class":1309},"\u002F\u002F127.0.0.1:53942\n",[535,1543,1544],{},"Read directly from disk:",[672,1546,1548],{"className":674,"code":1547,"language":676,"meta":677,"style":677},"import { readFile } from 'node:fs\u002Fpromises'\n\nconst url = (await readFile('.evlog\u002Fstream.url', 'utf-8')).trim()\n",[554,1549,1550,1570,1574],{"__ignoreMap":677},[681,1551,1552,1554,1556,1559,1561,1563,1565,1568],{"class":683,"line":684},[681,1553,688],{"class":687},[681,1555,692],{"class":691},[681,1557,1558],{"class":695}," readFile",[681,1560,699],{"class":691},[681,1562,702],{"class":687},[681,1564,705],{"class":691},[681,1566,1567],{"class":708},"node:fs\u002Fpromises",[681,1569,711],{"class":691},[681,1571,1572],{"class":683,"line":714},[681,1573,718],{"emptyLinePlaceholder":717},[681,1575,1576,1578,1581,1583,1585,1588,1590,1592,1594,1596,1598,1600,1602,1605,1607,1610,1612,1615],{"class":683,"line":721},[681,1577,725],{"class":724},[681,1579,1580],{"class":695}," url ",[681,1582,731],{"class":691},[681,1584,846],{"class":695},[681,1586,1587],{"class":687},"await",[681,1589,1558],{"class":734},[681,1591,737],{"class":695},[681,1593,783],{"class":691},[681,1595,1168],{"class":708},[681,1597,783],{"class":691},[681,1599,791],{"class":691},[681,1601,705],{"class":691},[681,1603,1604],{"class":708},"utf-8",[681,1606,783],{"class":691},[681,1608,1609],{"class":695},"))",[681,1611,770],{"class":691},[681,1613,1614],{"class":734},"trim",[681,1616,892],{"class":695},[535,1618,1619],{},"Or, for same-origin browser tabs in a Nuxt app, hit the discovery route:",[672,1621,1623],{"className":674,"code":1622,"language":676,"meta":677,"style":677},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\n",[554,1624,1625],{"__ignoreMap":677},[681,1626,1627,1629,1631,1633,1635,1637,1639,1642,1644,1646,1648,1650,1652,1654,1657,1659,1662,1664,1667,1669,1672],{"class":683,"line":684},[681,1628,725],{"class":724},[681,1630,692],{"class":691},[681,1632,1580],{"class":695},[681,1634,881],{"class":691},[681,1636,1367],{"class":691},[681,1638,953],{"class":687},[681,1640,1641],{"class":734}," fetch",[681,1643,737],{"class":695},[681,1645,783],{"class":691},[681,1647,1172],{"class":708},[681,1649,783],{"class":691},[681,1651,629],{"class":695},[681,1653,770],{"class":691},[681,1655,1656],{"class":734},"then",[681,1658,737],{"class":695},[681,1660,1661],{"class":828},"r",[681,1663,834],{"class":724},[681,1665,1666],{"class":695}," r",[681,1668,770],{"class":691},[681,1670,1671],{"class":734},"json",[681,1673,1674],{"class":695},"())\n",[991,1676,1678],{"id":1677},"wire-format","Wire format",[535,1680,1681,1682,747],{},"Every SSE message has the shape ",[554,1683,1684],{},"{ evlog: '1', type, data }",[995,1686,1687,1704],{},[998,1688,1689],{},[1001,1690,1691,1696,1699],{},[1004,1692,1693],{},[554,1694,1695],{},"type",[1004,1697,1698],{},"When",[1004,1700,1701],{},[554,1702,1703],{},"data",[1014,1705,1706,1721,1742,1755],{},[1001,1707,1708,1713,1716],{},[1019,1709,1710],{},[554,1711,1712],{},"hello",[1019,1714,1715],{},"First frame after connect",[1019,1717,1718],{},[554,1719,1720],{},"{ evlogVersion, bufferSize, heartbeatMs }",[1001,1722,1723,1728,1737],{},[1019,1724,1725],{},[554,1726,1727],{},"replay",[1019,1729,1730,1731,1733,1734],{},"Right after ",[554,1732,1712],{},", replays buffered events when the consumer passed ",[554,1735,1736],{},"?since=\u003Ciso>",[1019,1738,1739],{},[554,1740,1741],{},"WideEvent",[1001,1743,1744,1748,1751],{},[1019,1745,1746],{},[554,1747,829],{},[1019,1749,1750],{},"Every emitted event after that",[1019,1752,1753],{},[554,1754,1741],{},[1001,1756,1757,1762,1768],{},[1019,1758,1759],{},[554,1760,1761],{},"ping",[1019,1763,1764,1765,629],{},"Heartbeat (default every 15s, configurable via ",[554,1766,1767],{},"heartbeatMs",[1019,1769,1770],{},[554,1771,1772],{},"{ ts: number }",[672,1774,1777],{"className":674,"code":1775,"filename":1776,"language":676,"meta":677,"style":677},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\nconst es = new EventSource(url)\n\nes.onmessage = (msg) => {\n  const { type, data } = JSON.parse(msg.data)\n  if (type === 'event') events.push(data)\n}\n","Browser consumer",[554,1778,1779,1823,1841,1845,1868,1904,1935],{"__ignoreMap":677},[681,1780,1781,1783,1785,1787,1789,1791,1793,1795,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817,1819,1821],{"class":683,"line":684},[681,1782,725],{"class":724},[681,1784,692],{"class":691},[681,1786,1580],{"class":695},[681,1788,881],{"class":691},[681,1790,1367],{"class":691},[681,1792,953],{"class":687},[681,1794,1641],{"class":734},[681,1796,737],{"class":695},[681,1798,783],{"class":691},[681,1800,1172],{"class":708},[681,1802,783],{"class":691},[681,1804,629],{"class":695},[681,1806,770],{"class":691},[681,1808,1656],{"class":734},[681,1810,737],{"class":695},[681,1812,1661],{"class":828},[681,1814,834],{"class":724},[681,1816,1666],{"class":695},[681,1818,770],{"class":691},[681,1820,1671],{"class":734},[681,1822,1674],{"class":695},[681,1824,1825,1827,1830,1832,1835,1838],{"class":683,"line":714},[681,1826,725],{"class":724},[681,1828,1829],{"class":695}," es ",[681,1831,731],{"class":691},[681,1833,1834],{"class":691}," new",[681,1836,1837],{"class":734}," EventSource",[681,1839,1840],{"class":695},"(url)\n",[681,1842,1843],{"class":683,"line":721},[681,1844,718],{"emptyLinePlaceholder":717},[681,1846,1847,1850,1852,1855,1857,1859,1862,1864,1866],{"class":683,"line":759},[681,1848,1849],{"class":695},"es",[681,1851,770],{"class":691},[681,1853,1854],{"class":734},"onmessage",[681,1856,1367],{"class":691},[681,1858,846],{"class":691},[681,1860,1861],{"class":828},"msg",[681,1863,629],{"class":691},[681,1865,834],{"class":724},[681,1867,837],{"class":691},[681,1869,1870,1872,1874,1877,1879,1882,1884,1886,1889,1891,1894,1896,1898,1900,1902],{"class":683,"line":764},[681,1871,1481],{"class":724},[681,1873,692],{"class":691},[681,1875,1876],{"class":695}," type",[681,1878,791],{"class":691},[681,1880,1881],{"class":695}," data",[681,1883,699],{"class":691},[681,1885,1367],{"class":691},[681,1887,1888],{"class":695}," JSON",[681,1890,770],{"class":691},[681,1892,1893],{"class":734},"parse",[681,1895,737],{"class":743},[681,1897,1861],{"class":695},[681,1899,770],{"class":691},[681,1901,1703],{"class":695},[681,1903,756],{"class":743},[681,1905,1906,1908,1910,1912,1914,1916,1918,1920,1922,1924,1926,1929,1931,1933],{"class":683,"line":802},[681,1907,843],{"class":687},[681,1909,846],{"class":743},[681,1911,1695],{"class":695},[681,1913,856],{"class":691},[681,1915,705],{"class":691},[681,1917,829],{"class":708},[681,1919,783],{"class":691},[681,1921,866],{"class":743},[681,1923,969],{"class":695},[681,1925,770],{"class":691},[681,1927,1928],{"class":734},"push",[681,1930,737],{"class":743},[681,1932,1703],{"class":695},[681,1934,756],{"class":743},[681,1936,1937],{"class":683,"line":807},[681,1938,945],{"class":691},[991,1940,1942],{"id":1941},"auth-cors","Auth + CORS",[995,1944,1945,1954],{},[998,1946,1947],{},[1001,1948,1949,1951],{},[1004,1950,1006],{},[1004,1952,1953],{},"Behavior",[1014,1955,1956,1969,1991,2008,2021],{},[1001,1957,1958,1963],{},[1019,1959,1960],{},[554,1961,1962],{},"token",[1019,1964,1965,1966,1968],{},"When set, the server requires ",[554,1967,1161],{}," on every request and 401s otherwise.",[1001,1970,1971,1974],{},[1019,1972,1973],{},"(no token)",[1019,1975,1976,1977,1980,1981,1983,1984,1983,1987,1990],{},"Connections are accepted only when there is no ",[554,1978,1979],{},"Origin"," header or the origin host is local (",[554,1982,1206],{}," \u002F ",[554,1985,1986],{},"localhost",[554,1988,1989],{},"[::1]","). Other origins receive 403.",[1001,1992,1993,1998],{},[1019,1994,1995],{},[554,1996,1997],{},"host",[1019,1999,2000,2001,2003,2004,2007],{},"Default ",[554,2002,1206],{}," — never reachable from the LAN. Override to ",[554,2005,2006],{},"0.0.0.0"," only with a token set.",[1001,2009,2010,2014],{},[1019,2011,2012],{},[554,2013,1767],{},[1019,2015,2016,2017,2020],{},"Heartbeat interval (default ",[554,2018,2019],{},"15000",").",[1001,2022,2023,2027],{},[1019,2024,2025],{},[554,2026,653],{},[1019,2028,2029,2030,2032,2033,770],{},"Ring buffer kept on the underlying default stream — replayed for late-joining clients via ",[554,2031,1736],{},". Default ",[554,2034,1041],{},[583,2036,2038],{"id":2037},"going-further","Going further",[544,2040,2041,2046],{},[547,2042,2043,2045],{},[666,2044,460],{"href":461}," — replay or tail historic NDJSON files (cross-process, survives restarts)",[547,2047,2048,2051],{},[666,2049,2050],{"href":465},"Consumer recipes"," — build a minimal devtool, pipe to curl + jq, replay history then go live",[2053,2054,2055],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}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);}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":677,"searchDepth":714,"depth":714,"links":2057},[2058,2061,2068],{"id":585,"depth":714,"text":551,"children":2059},[2060],{"id":993,"depth":721,"text":332},{"id":1092,"depth":714,"text":1093,"children":2062},[2063,2064,2065,2066,2067],{"id":1184,"depth":721,"text":1185},{"id":1235,"depth":721,"text":1236},{"id":1521,"depth":721,"text":1522},{"id":1677,"depth":721,"text":1678},{"id":1941,"depth":721,"text":1942},{"id":2037,"depth":714,"text":2038},"Subscribe to wide events flowing through evlog — in-process with createStreamDrain, or over the network with the local SSE stream server.","md",null,{},{"title":446,"icon":449},{"title":446,"description":2069},"e7iPiDC-Jdn-UD0TIOPUaC6S-ZONRL3ljDYXPlENCTs",[2077,2079],{"title":128,"path":442,"stem":443,"description":2078,"icon":444,"children":-1},"Observe what flows through the pipeline, plug into it, or build your own bricks. The map of every extension point evlog exposes.",{"title":451,"path":452,"stem":453,"description":2080,"icon":454,"children":-1},"Build evlog support for a framework or runtime that has no integration, with defineFrameworkIntegration or the lower-level helpers.",1786794222493]