[{"data":1,"prerenderedAt":2080},["ShallowReactive",2],{"navigation_docs":3,"-extend-stream":528,"-extend-stream-surround":2075},[4,29,76,122,304,435,496],{"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,431],{"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},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers",{"title":432,"path":433,"stem":434},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve",{"title":436,"path":437,"stem":438,"children":439,"page":28},"Extend","\u002Fextend","6.extend",[440,444,449,454,458,463,467,471,476,481,486,491],{"title":128,"path":441,"stem":442,"icon":443},"\u002Fextend\u002Foverview","6.extend\u002F0.overview","i-lucide-blocks",{"title":445,"path":446,"stem":447,"icon":448},"Stream","\u002Fextend\u002Fstream","6.extend\u002F1.stream","i-lucide-radio-tower",{"title":450,"path":451,"stem":452,"icon":453},"Custom framework","\u002Fextend\u002Fcustom-framework","6.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":455,"path":456,"stem":457,"icon":448},"Diagnostics channel","\u002Fextend\u002Fdiagnostics-channel","6.extend\u002F11.diagnostics-channel",{"title":459,"path":460,"stem":461,"icon":462},"FS reader","\u002Fextend\u002Ffs-reader","6.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":403,"path":464,"stem":465,"icon":466},"\u002Fextend\u002Fconsumer-recipes","6.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":468,"path":469,"stem":470},"Plugins","\u002Fextend\u002Fplugins","6.extend\u002F4.plugins",{"title":472,"path":473,"stem":474,"icon":475},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","6.extend\u002F5.custom-enrichers","i-lucide-sparkles",{"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,"icon":495},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","6.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":424,"path":497,"stem":498,"children":499,"page":28},"\u002Freference","7.reference",[500,504,507,512,516,520,524],{"title":501,"path":502,"stem":503},"Configuration","\u002Freference\u002Fconfiguration","7.reference\u002F1.configuration",{"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},"evlog vs pino, winston, consola","\u002Freference\u002Fvs-other-loggers","7.reference\u002F5.vs-other-loggers",{"title":521,"path":522,"stem":523,"icon":475},"Agent Skills","\u002Freference\u002Fagent-skills","7.reference\u002F6.agent-skills",{"title":525,"path":526,"stem":527},"Log cost","\u002Freference\u002Fcost","7.reference\u002F7.cost",{"id":529,"title":445,"body":530,"description":2068,"extension":2069,"links":2070,"meta":2071,"navigation":2072,"path":446,"seo":2073,"stem":447,"__hash__":2074},"docs\u002F6.extend\u002F1.stream.md",{"type":531,"value":532,"toc":2055},"minimark",[533,542,566,581,585,588,593,670,989,993,1080,1089,1093,1096,1105,1111,1181,1185,1191,1229,1232,1236,1505,1518,1522,1525,1541,1544,1616,1619,1674,1678,1684,1772,1938,1942,2034,2038,2051],[534,535,536,537,541],"p",{},"evlog ships a ",[538,539,540],"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:",[543,544,545,557],"ul",{},[546,547,548,551,552,556],"li",{},[538,549,550],{},"In-process bus"," — ",[553,554,555],"code",{},"createStreamDrain()",", the canonical pub\u002Fsub. Sync listeners, async iterators, ring-buffered replay.",[546,558,559,551,562,565],{},[538,560,561],{},"Network bridge",[553,563,564],{},"startStreamServer()",", an opt-in HTTP mini-server that exposes the in-process bus over Server-Sent Events for browsers, CLIs, or external devtools.",[567,568,569,572,573,576,577,580],"callout",{"icon":364},[538,570,571],{},"Local-only by design."," Both layers live inside a single Node \u002F Bun \u002F Deno process. They work in ",[553,574,575],{},"pnpm dev",", on long-lived self-hosted servers, on VMs and containers (Fly, Railway, Coolify…). They do ",[538,578,579],{},"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.",[582,583,550],"h2",{"id":584},"in-process-bus",[586,587],"stream-bus",{},[534,589,590,592],{},[553,591,555],{}," 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.",[594,595,598,601,661],"prompt",{":actions":596,"description":597,"icon":448},"[\"copy\",\"cursor\",\"claude\"]","Subscribe to wide events in-process",[534,599,600],{},"Wire an in-process subscriber on top of evlog's stream drain.",[543,602,603,614,629,640,647,658],{},[546,604,605,606,609,610,613],{},"Import ",[553,607,608],{},"createStreamDrain"," from ",[553,611,612],{},"evlog\u002Fstream"," and call it once at app boot",[546,615,616,617,620,621,624,625,628],{},"Register the returned ",[553,618,619],{},"drain"," on the evlog drain hook for my framework (Nitro: ",[553,622,623],{},"nitroApp.hooks.hook('evlog:drain', stream.drain)","; Next\u002Fstandalone: pass to ",[553,626,627],{},"initLogger({ drain })",")",[546,630,631,632,635,636,639],{},"Subscribe with ",[553,633,634],{},"stream.subscribe((event) => ...)"," for sync listeners or ",[553,637,638],{},"for await (const event of stream.events())"," for async iteration",[546,641,642,643,646],{},"Seed history for late subscribers with ",[553,644,645],{},"stream.recent()"," (snapshot of the ring buffer) before opening the live iterator",[546,648,649,650,653,654,657],{},"Tune ",[553,651,652],{},"buffer"," for replay history and ",[553,655,656],{},"perSubscriberQueue"," for slow-consumer backpressure",[546,659,660],{},"Skip on serverless platforms — the stream is in-process, isolated invocations won't share it",[534,662,663,664],{},"Docs: ",[665,666,667],"a",{"href":667,"rel":668},"https:\u002F\u002Fwww.evlog.dev\u002Fextend\u002Fstream",[669],"nofollow",[671,672,677],"pre",{"className":673,"code":674,"language":675,"meta":676,"style":676},"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","",[553,678,679,711,718,756,761,799,804,837,875,883,892,897,926,939,945,973,984],{"__ignoreMap":676},[680,681,684,688,692,696,699,702,705,708],"span",{"class":682,"line":683},"line",1,[680,685,687],{"class":686},"s7zQu","import",[680,689,691],{"class":690},"sMK4o"," {",[680,693,695],{"class":694},"sTEyZ"," createStreamDrain",[680,697,698],{"class":690}," }",[680,700,701],{"class":686}," from",[680,703,704],{"class":690}," '",[680,706,612],{"class":707},"sfazB",[680,709,710],{"class":690},"'\n",[680,712,714],{"class":682,"line":713},2,[680,715,717],{"emptyLinePlaceholder":716},true,"\n",[680,719,721,725,728,731,734,737,740,744,747,751,753],{"class":682,"line":720},3,[680,722,724],{"class":723},"spNyl","const",[680,726,727],{"class":694}," stream ",[680,729,730],{"class":690},"=",[680,732,695],{"class":733},"s2Zo4",[680,735,736],{"class":694},"(",[680,738,739],{"class":690},"{",[680,741,743],{"class":742},"swJcz"," buffer",[680,745,746],{"class":690},":",[680,748,750],{"class":749},"sbssI"," 200",[680,752,698],{"class":690},[680,754,755],{"class":694},")\n",[680,757,759],{"class":682,"line":758},4,[680,760,717],{"emptyLinePlaceholder":716},[680,762,764,767,770,773,775,778,780,783,786,788,791,794,796],{"class":682,"line":763},5,[680,765,766],{"class":694},"nitroApp",[680,768,769],{"class":690},".",[680,771,772],{"class":694},"hooks",[680,774,769],{"class":690},[680,776,777],{"class":733},"hook",[680,779,736],{"class":694},[680,781,782],{"class":690},"'",[680,784,785],{"class":707},"evlog:drain",[680,787,782],{"class":690},[680,789,790],{"class":690},",",[680,792,793],{"class":694}," stream",[680,795,769],{"class":690},[680,797,798],{"class":694},"drain)\n",[680,800,802],{"class":682,"line":801},6,[680,803,717],{"emptyLinePlaceholder":716},[680,805,807,809,812,814,816,818,821,823,825,829,831,834],{"class":682,"line":806},7,[680,808,724],{"class":723},[680,810,811],{"class":694}," off ",[680,813,730],{"class":690},[680,815,793],{"class":694},[680,817,769],{"class":690},[680,819,820],{"class":733},"subscribe",[680,822,736],{"class":694},[680,824,736],{"class":690},[680,826,828],{"class":827},"sHdIc","event",[680,830,628],{"class":690},[680,832,833],{"class":723}," =>",[680,835,836],{"class":690}," {\n",[680,838,840,843,846,848,850,853,856,858,861,863,866,869,871,873],{"class":682,"line":839},8,[680,841,842],{"class":686},"  if",[680,844,845],{"class":742}," (",[680,847,828],{"class":694},[680,849,769],{"class":690},[680,851,852],{"class":694},"level",[680,854,855],{"class":690}," ===",[680,857,704],{"class":690},[680,859,860],{"class":707},"error",[680,862,782],{"class":690},[680,864,865],{"class":742},") ",[680,867,868],{"class":733},"notify",[680,870,736],{"class":742},[680,872,828],{"class":694},[680,874,755],{"class":742},[680,876,878,881],{"class":682,"line":877},9,[680,879,880],{"class":690},"}",[680,882,755],{"class":694},[680,884,886,889],{"class":682,"line":885},10,[680,887,888],{"class":733},"off",[680,890,891],{"class":694},"()\n",[680,893,895],{"class":682,"line":894},11,[680,896,717],{"emptyLinePlaceholder":716},[680,898,900,903,905,907,910,913,915,917,920,923],{"class":682,"line":899},12,[680,901,902],{"class":686},"for",[680,904,845],{"class":694},[680,906,724],{"class":723},[680,908,909],{"class":694}," past ",[680,911,912],{"class":690},"of",[680,914,793],{"class":694},[680,916,769],{"class":690},[680,918,919],{"class":733},"recent",[680,921,922],{"class":694},"()) ",[680,924,925],{"class":690},"{\n",[680,927,929,932,934,937],{"class":682,"line":928},13,[680,930,931],{"class":733},"  bootstrap",[680,933,736],{"class":742},[680,935,936],{"class":694},"past",[680,938,755],{"class":742},[680,940,942],{"class":682,"line":941},14,[680,943,944],{"class":690},"}\n",[680,946,948,950,953,955,957,960,962,964,966,969,971],{"class":682,"line":947},15,[680,949,902],{"class":686},[680,951,952],{"class":686}," await",[680,954,845],{"class":694},[680,956,724],{"class":723},[680,958,959],{"class":694}," event ",[680,961,912],{"class":690},[680,963,793],{"class":694},[680,965,769],{"class":690},[680,967,968],{"class":733},"events",[680,970,922],{"class":694},[680,972,925],{"class":690},[680,974,976,978,980,982],{"class":682,"line":975},16,[680,977,931],{"class":733},[680,979,736],{"class":742},[680,981,828],{"class":694},[680,983,755],{"class":742},[680,985,987],{"class":682,"line":986},17,[680,988,944],{"class":690},[990,991,332],"h3",{"id":992},"options",[994,995,996,1012],"table",{},[997,998,999],"thead",{},[1000,1001,1002,1006,1009],"tr",{},[1003,1004,1005],"th",{},"Option",[1003,1007,1008],{},"Type",[1003,1010,1011],{},"Description",[1013,1014,1015,1041,1061],"tbody",{},[1000,1016,1017,1022,1027],{},[1018,1019,1020],"td",{},[553,1021,652],{},[1018,1023,1024],{},[553,1025,1026],{},"number",[1018,1028,1029,1030,1033,1034,1037,1038,769],{},"Ring-buffer size for ",[553,1031,1032],{},"recent()"," snapshots. Set to ",[553,1035,1036],{},"0"," to disable. Default: ",[553,1039,1040],{},"500",[1000,1042,1043,1047,1051],{},[1018,1044,1045],{},[553,1046,656],{},[1018,1048,1049],{},[553,1050,1026],{},[1018,1052,1053,1054,1057,1058,769],{},"Max queued events per ",[553,1055,1056],{},"events()"," async iterator before the oldest are dropped. The drain itself is never blocked. Default: ",[553,1059,1060],{},"1000",[1000,1062,1063,1068,1073],{},[1018,1064,1065],{},[553,1066,1067],{},"filter",[1018,1069,1070],{},[553,1071,1072],{},"(event) => boolean",[1018,1074,1075,1076,1079],{},"Optional predicate run on each drained event — return ",[553,1077,1078],{},"false"," to skip the event entirely (neither buffered nor delivered).",[534,1081,1082,1085,1086,1088],{},[553,1083,1084],{},"stream.drain(events)"," accepts either a single event or a batch. ",[553,1087,645],{}," returns a snapshot of the buffered events (oldest first, most recent last) for ad-hoc inspection or to seed a UI panel.",[582,1090,1092],{"id":1091},"network-bridge-stream-server","Network bridge — stream server",[1094,1095],"sse-wire",{},[534,1097,1098,1100,1101,1104],{},[553,1099,564],{}," boots a tiny ",[553,1102,1103],{},"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.",[567,1106,1107,1110],{"icon":364},[538,1108,1109],{},"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.",[594,1112,1115,1118,1176],{":actions":596,"description":1113,"icon":1114},"Expose the evlog stream over SSE","i-lucide-radio",[534,1116,1117],{},"Turn on the local stream server so I can subscribe to wide events from a browser tab, CLI, or Tauri\u002FElectron devtool.",[543,1119,1120,1144,1151,1162,1173],{},[546,1121,1122,1123,1126,1127,1130,1131,1126,1134,1137,1138,1140,1141,1143],{},"Detect my framework and opt in explicitly (Nuxt: ",[553,1124,1125],{},"evlog.stream: true"," in ",[553,1128,1129],{},"nuxt.config.ts","; Next.js: ",[553,1132,1133],{},"defineStreamedInstrumentation({ stream: true })",[553,1135,1136],{},"instrumentation.ts","; Hono\u002FExpress\u002FFastify\u002FElysia\u002Fstandalone: call ",[553,1139,564],{}," once at boot and register the returned ",[553,1142,619],{}," on the evlog drain hook)",[546,1145,1146,1147,1150],{},"Never enable in production by default; gate it behind ",[553,1148,1149],{},"process.env.NODE_ENV !== 'production'"," or a feature flag",[546,1152,1153,1154,1157,1158,1161],{},"For shared dev environments, set ",[553,1155,1156],{},"token: process.env.EVLOG_STREAM_TOKEN"," and have the consumer send it as ",[553,1159,1160],{},"Authorization: Bearer \u003Ctoken>"," on every request",[546,1163,1164,1165,1168,1169,1172],{},"Discover the URL from ",[553,1166,1167],{},".evlog\u002Fstream.url"," (or ",[553,1170,1171],{},"\u002Fapi\u002F_evlog\u002Fstream-info"," on Nuxt) — never hard-code the port, it's ephemeral",[546,1174,1175],{},"Skip on serverless platforms — the server is in-process",[534,1177,663,1178],{},[665,1179,667],{"href":667,"rel":1180},[669],[990,1182,1184],{"id":1183},"what-boots-up","What boots up",[534,1186,1187,1188,1190],{},"When you opt in, evlog calls ",[553,1189,564],{}," and:",[1192,1193,1194,1197,1207,1212,1215,1218],"ol",{},[546,1195,1196],{},"Picks an ephemeral free port (or the one you specify)",[546,1198,1199,1200,1202,1203,1206],{},"Spins a tiny ",[553,1201,1103],{}," server on ",[553,1204,1205],{},"127.0.0.1"," (or your host)",[546,1208,1209,1210],{},"Writes the discovered URL to ",[553,1211,1167],{},[546,1213,1214],{},"Prints a one-line banner in the server console",[546,1216,1217],{},"Hooks the in-process stream drain into the evlog pipeline",[546,1219,1220,1221,1224,1225,1228],{},"Exposes ",[553,1222,1223],{},"GET \u002F"," for the SSE stream and ",[553,1226,1227],{},"GET \u002Finfo"," for handshake metadata",[534,1230,1231],{},"On shutdown (SIGINT \u002F SIGTERM \u002F process exit) the server cleans up listeners and removes the URL file.",[990,1233,1235],{"id":1234},"per-framework-opt-in","Per-framework opt-in",[1237,1238,1239,1321,1390],"code-group",{},[671,1240,1242],{"className":673,"code":1241,"filename":1129,"language":675,"meta":676,"style":676},"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",[553,1243,1244,1259,1282,1291,1304,1310,1315],{"__ignoreMap":676},[680,1245,1246,1249,1252,1255,1257],{"class":682,"line":683},[680,1247,1248],{"class":686},"export",[680,1250,1251],{"class":686}," default",[680,1253,1254],{"class":733}," defineNuxtConfig",[680,1256,736],{"class":694},[680,1258,925],{"class":690},[680,1260,1261,1264,1266,1269,1271,1274,1276,1279],{"class":682,"line":713},[680,1262,1263],{"class":742},"  modules",[680,1265,746],{"class":690},[680,1267,1268],{"class":694}," [",[680,1270,782],{"class":690},[680,1272,1273],{"class":707},"evlog\u002Fnuxt",[680,1275,782],{"class":690},[680,1277,1278],{"class":694},"]",[680,1280,1281],{"class":690},",\n",[680,1283,1284,1287,1289],{"class":682,"line":720},[680,1285,1286],{"class":742},"  evlog",[680,1288,746],{"class":690},[680,1290,836],{"class":690},[680,1292,1293,1296,1298,1302],{"class":682,"line":758},[680,1294,1295],{"class":742},"    stream",[680,1297,746],{"class":690},[680,1299,1301],{"class":1300},"sfNiH"," true",[680,1303,1281],{"class":690},[680,1305,1306],{"class":682,"line":763},[680,1307,1309],{"class":1308},"sHwdD","    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n",[680,1311,1312],{"class":682,"line":801},[680,1313,1314],{"class":690},"  },\n",[680,1316,1317,1319],{"class":682,"line":806},[680,1318,880],{"class":690},[680,1320,755],{"class":694},[671,1322,1324],{"className":673,"code":1323,"filename":1136,"language":675,"meta":676,"style":676},"import { defineStreamedInstrumentation } from 'evlog\u002Fnext\u002Fstream'\n\nexport const { register } = defineStreamedInstrumentation({\n  stream: true,\n})\n",[553,1325,1326,1346,1350,1373,1384],{"__ignoreMap":676},[680,1327,1328,1330,1332,1335,1337,1339,1341,1344],{"class":682,"line":683},[680,1329,687],{"class":686},[680,1331,691],{"class":690},[680,1333,1334],{"class":694}," defineStreamedInstrumentation",[680,1336,698],{"class":690},[680,1338,701],{"class":686},[680,1340,704],{"class":690},[680,1342,1343],{"class":707},"evlog\u002Fnext\u002Fstream",[680,1345,710],{"class":690},[680,1347,1348],{"class":682,"line":713},[680,1349,717],{"emptyLinePlaceholder":716},[680,1351,1352,1354,1357,1359,1362,1364,1367,1369,1371],{"class":682,"line":720},[680,1353,1248],{"class":686},[680,1355,1356],{"class":723}," const",[680,1358,691],{"class":690},[680,1360,1361],{"class":694}," register ",[680,1363,880],{"class":690},[680,1365,1366],{"class":690}," =",[680,1368,1334],{"class":733},[680,1370,736],{"class":694},[680,1372,925],{"class":690},[680,1374,1375,1378,1380,1382],{"class":682,"line":758},[680,1376,1377],{"class":742},"  stream",[680,1379,746],{"class":690},[680,1381,1301],{"class":1300},[680,1383,1281],{"class":690},[680,1385,1386,1388],{"class":682,"line":763},[680,1387,880],{"class":690},[680,1389,755],{"class":694},[671,1391,1394],{"className":673,"code":1392,"filename":1393,"language":675,"meta":676,"style":676},"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",[553,1395,1396,1415,1419,1476,1496,1501],{"__ignoreMap":676},[680,1397,1398,1400,1402,1405,1407,1409,1411,1413],{"class":682,"line":683},[680,1399,687],{"class":686},[680,1401,691],{"class":690},[680,1403,1404],{"class":694}," startStreamServer",[680,1406,698],{"class":690},[680,1408,701],{"class":686},[680,1410,704],{"class":690},[680,1412,612],{"class":707},[680,1414,710],{"class":690},[680,1416,1417],{"class":682,"line":713},[680,1418,717],{"emptyLinePlaceholder":716},[680,1420,1421,1424,1427,1429,1432,1434,1437,1440,1442,1445,1447,1450,1453,1455,1457,1459,1462,1465,1467,1470,1472,1474],{"class":682,"line":720},[680,1422,1423],{"class":686},"if",[680,1425,1426],{"class":694}," (process",[680,1428,769],{"class":690},[680,1430,1431],{"class":694},"env",[680,1433,769],{"class":690},[680,1435,1436],{"class":694},"NODE_ENV ",[680,1438,1439],{"class":690},"!==",[680,1441,704],{"class":690},[680,1443,1444],{"class":707},"production",[680,1446,782],{"class":690},[680,1448,1449],{"class":690}," &&",[680,1451,1452],{"class":694}," process",[680,1454,769],{"class":690},[680,1456,1431],{"class":694},[680,1458,769],{"class":690},[680,1460,1461],{"class":694},"EVLOG_STREAM ",[680,1463,1464],{"class":690},"===",[680,1466,704],{"class":690},[680,1468,1469],{"class":707},"1",[680,1471,782],{"class":690},[680,1473,865],{"class":694},[680,1475,925],{"class":690},[680,1477,1478,1481,1483,1486,1488,1490,1492,1494],{"class":682,"line":758},[680,1479,1480],{"class":723},"  const",[680,1482,691],{"class":690},[680,1484,1485],{"class":694}," drain",[680,1487,698],{"class":690},[680,1489,1366],{"class":690},[680,1491,952],{"class":686},[680,1493,1404],{"class":733},[680,1495,891],{"class":742},[680,1497,1498],{"class":682,"line":763},[680,1499,1500],{"class":1308},"  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n",[680,1502,1503],{"class":682,"line":801},[680,1504,944],{"class":690},[534,1506,1507,1508,1510,1511,1514,1515,1517],{},"The Hono \u002F Express \u002F Fastify integrations don't need a \"feature PR\", because ",[553,1509,564],{}," is ",[538,1512,1513],{},"orthogonal"," to your framework. You boot it once and connect its ",[553,1516,619],{}," to the evlog pipeline like any other drain.",[990,1519,1521],{"id":1520},"discovery","Discovery",[534,1523,1524],{},"The mini-server runs on a random port, so any consumer must discover it.",[671,1526,1528],{"className":673,"code":1527,"filename":1167,"language":675,"meta":676,"style":676},"http:\u002F\u002F127.0.0.1:53942\n",[553,1529,1530],{"__ignoreMap":676},[680,1531,1532,1536,1538],{"class":682,"line":683},[680,1533,1535],{"class":1534},"sBMFI","http",[680,1537,746],{"class":690},[680,1539,1540],{"class":1308},"\u002F\u002F127.0.0.1:53942\n",[534,1542,1543],{},"Read directly from disk:",[671,1545,1547],{"className":673,"code":1546,"language":675,"meta":676,"style":676},"import { readFile } from 'node:fs\u002Fpromises'\n\nconst url = (await readFile('.evlog\u002Fstream.url', 'utf-8')).trim()\n",[553,1548,1549,1569,1573],{"__ignoreMap":676},[680,1550,1551,1553,1555,1558,1560,1562,1564,1567],{"class":682,"line":683},[680,1552,687],{"class":686},[680,1554,691],{"class":690},[680,1556,1557],{"class":694}," readFile",[680,1559,698],{"class":690},[680,1561,701],{"class":686},[680,1563,704],{"class":690},[680,1565,1566],{"class":707},"node:fs\u002Fpromises",[680,1568,710],{"class":690},[680,1570,1571],{"class":682,"line":713},[680,1572,717],{"emptyLinePlaceholder":716},[680,1574,1575,1577,1580,1582,1584,1587,1589,1591,1593,1595,1597,1599,1601,1604,1606,1609,1611,1614],{"class":682,"line":720},[680,1576,724],{"class":723},[680,1578,1579],{"class":694}," url ",[680,1581,730],{"class":690},[680,1583,845],{"class":694},[680,1585,1586],{"class":686},"await",[680,1588,1557],{"class":733},[680,1590,736],{"class":694},[680,1592,782],{"class":690},[680,1594,1167],{"class":707},[680,1596,782],{"class":690},[680,1598,790],{"class":690},[680,1600,704],{"class":690},[680,1602,1603],{"class":707},"utf-8",[680,1605,782],{"class":690},[680,1607,1608],{"class":694},"))",[680,1610,769],{"class":690},[680,1612,1613],{"class":733},"trim",[680,1615,891],{"class":694},[534,1617,1618],{},"Or, for same-origin browser tabs in a Nuxt app, hit the discovery route:",[671,1620,1622],{"className":673,"code":1621,"language":675,"meta":676,"style":676},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\n",[553,1623,1624],{"__ignoreMap":676},[680,1625,1626,1628,1630,1632,1634,1636,1638,1641,1643,1645,1647,1649,1651,1653,1656,1658,1661,1663,1666,1668,1671],{"class":682,"line":683},[680,1627,724],{"class":723},[680,1629,691],{"class":690},[680,1631,1579],{"class":694},[680,1633,880],{"class":690},[680,1635,1366],{"class":690},[680,1637,952],{"class":686},[680,1639,1640],{"class":733}," fetch",[680,1642,736],{"class":694},[680,1644,782],{"class":690},[680,1646,1171],{"class":707},[680,1648,782],{"class":690},[680,1650,628],{"class":694},[680,1652,769],{"class":690},[680,1654,1655],{"class":733},"then",[680,1657,736],{"class":694},[680,1659,1660],{"class":827},"r",[680,1662,833],{"class":723},[680,1664,1665],{"class":694}," r",[680,1667,769],{"class":690},[680,1669,1670],{"class":733},"json",[680,1672,1673],{"class":694},"())\n",[990,1675,1677],{"id":1676},"wire-format","Wire format",[534,1679,1680,1681,746],{},"Every SSE message has the shape ",[553,1682,1683],{},"{ evlog: '1', type, data }",[994,1685,1686,1703],{},[997,1687,1688],{},[1000,1689,1690,1695,1698],{},[1003,1691,1692],{},[553,1693,1694],{},"type",[1003,1696,1697],{},"When",[1003,1699,1700],{},[553,1701,1702],{},"data",[1013,1704,1705,1720,1741,1754],{},[1000,1706,1707,1712,1715],{},[1018,1708,1709],{},[553,1710,1711],{},"hello",[1018,1713,1714],{},"First frame after connect",[1018,1716,1717],{},[553,1718,1719],{},"{ evlogVersion, bufferSize, heartbeatMs }",[1000,1721,1722,1727,1736],{},[1018,1723,1724],{},[553,1725,1726],{},"replay",[1018,1728,1729,1730,1732,1733],{},"Right after ",[553,1731,1711],{},", replays buffered events when the consumer passed ",[553,1734,1735],{},"?since=\u003Ciso>",[1018,1737,1738],{},[553,1739,1740],{},"WideEvent",[1000,1742,1743,1747,1750],{},[1018,1744,1745],{},[553,1746,828],{},[1018,1748,1749],{},"Every emitted event after that",[1018,1751,1752],{},[553,1753,1740],{},[1000,1755,1756,1761,1767],{},[1018,1757,1758],{},[553,1759,1760],{},"ping",[1018,1762,1763,1764,628],{},"Heartbeat (default every 15s, configurable via ",[553,1765,1766],{},"heartbeatMs",[1018,1768,1769],{},[553,1770,1771],{},"{ ts: number }",[671,1773,1776],{"className":673,"code":1774,"filename":1775,"language":675,"meta":676,"style":676},"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",[553,1777,1778,1822,1840,1844,1867,1903,1934],{"__ignoreMap":676},[680,1779,1780,1782,1784,1786,1788,1790,1792,1794,1796,1798,1800,1802,1804,1806,1808,1810,1812,1814,1816,1818,1820],{"class":682,"line":683},[680,1781,724],{"class":723},[680,1783,691],{"class":690},[680,1785,1579],{"class":694},[680,1787,880],{"class":690},[680,1789,1366],{"class":690},[680,1791,952],{"class":686},[680,1793,1640],{"class":733},[680,1795,736],{"class":694},[680,1797,782],{"class":690},[680,1799,1171],{"class":707},[680,1801,782],{"class":690},[680,1803,628],{"class":694},[680,1805,769],{"class":690},[680,1807,1655],{"class":733},[680,1809,736],{"class":694},[680,1811,1660],{"class":827},[680,1813,833],{"class":723},[680,1815,1665],{"class":694},[680,1817,769],{"class":690},[680,1819,1670],{"class":733},[680,1821,1673],{"class":694},[680,1823,1824,1826,1829,1831,1834,1837],{"class":682,"line":713},[680,1825,724],{"class":723},[680,1827,1828],{"class":694}," es ",[680,1830,730],{"class":690},[680,1832,1833],{"class":690}," new",[680,1835,1836],{"class":733}," EventSource",[680,1838,1839],{"class":694},"(url)\n",[680,1841,1842],{"class":682,"line":720},[680,1843,717],{"emptyLinePlaceholder":716},[680,1845,1846,1849,1851,1854,1856,1858,1861,1863,1865],{"class":682,"line":758},[680,1847,1848],{"class":694},"es",[680,1850,769],{"class":690},[680,1852,1853],{"class":733},"onmessage",[680,1855,1366],{"class":690},[680,1857,845],{"class":690},[680,1859,1860],{"class":827},"msg",[680,1862,628],{"class":690},[680,1864,833],{"class":723},[680,1866,836],{"class":690},[680,1868,1869,1871,1873,1876,1878,1881,1883,1885,1888,1890,1893,1895,1897,1899,1901],{"class":682,"line":763},[680,1870,1480],{"class":723},[680,1872,691],{"class":690},[680,1874,1875],{"class":694}," type",[680,1877,790],{"class":690},[680,1879,1880],{"class":694}," data",[680,1882,698],{"class":690},[680,1884,1366],{"class":690},[680,1886,1887],{"class":694}," JSON",[680,1889,769],{"class":690},[680,1891,1892],{"class":733},"parse",[680,1894,736],{"class":742},[680,1896,1860],{"class":694},[680,1898,769],{"class":690},[680,1900,1702],{"class":694},[680,1902,755],{"class":742},[680,1904,1905,1907,1909,1911,1913,1915,1917,1919,1921,1923,1925,1928,1930,1932],{"class":682,"line":801},[680,1906,842],{"class":686},[680,1908,845],{"class":742},[680,1910,1694],{"class":694},[680,1912,855],{"class":690},[680,1914,704],{"class":690},[680,1916,828],{"class":707},[680,1918,782],{"class":690},[680,1920,865],{"class":742},[680,1922,968],{"class":694},[680,1924,769],{"class":690},[680,1926,1927],{"class":733},"push",[680,1929,736],{"class":742},[680,1931,1702],{"class":694},[680,1933,755],{"class":742},[680,1935,1936],{"class":682,"line":806},[680,1937,944],{"class":690},[990,1939,1941],{"id":1940},"auth-cors","Auth + CORS",[994,1943,1944,1953],{},[997,1945,1946],{},[1000,1947,1948,1950],{},[1003,1949,1005],{},[1003,1951,1952],{},"Behavior",[1013,1954,1955,1968,1990,2007,2020],{},[1000,1956,1957,1962],{},[1018,1958,1959],{},[553,1960,1961],{},"token",[1018,1963,1964,1965,1967],{},"When set, the server requires ",[553,1966,1160],{}," on every request and 401s otherwise.",[1000,1969,1970,1973],{},[1018,1971,1972],{},"(no token)",[1018,1974,1975,1976,1979,1980,1982,1983,1982,1986,1989],{},"Connections are accepted only when there is no ",[553,1977,1978],{},"Origin"," header or the origin host is local (",[553,1981,1205],{}," \u002F ",[553,1984,1985],{},"localhost",[553,1987,1988],{},"[::1]","). Other origins receive 403.",[1000,1991,1992,1997],{},[1018,1993,1994],{},[553,1995,1996],{},"host",[1018,1998,1999,2000,2002,2003,2006],{},"Default ",[553,2001,1205],{}," — never reachable from the LAN. Override to ",[553,2004,2005],{},"0.0.0.0"," only with a token set.",[1000,2008,2009,2013],{},[1018,2010,2011],{},[553,2012,1766],{},[1018,2014,2015,2016,2019],{},"Heartbeat interval (default ",[553,2017,2018],{},"15000",").",[1000,2021,2022,2026],{},[1018,2023,2024],{},[553,2025,652],{},[1018,2027,2028,2029,2031,2032,769],{},"Ring buffer kept on the underlying default stream — replayed for late-joining clients via ",[553,2030,1735],{},". Default ",[553,2033,1040],{},[582,2035,2037],{"id":2036},"going-further","Going further",[543,2039,2040,2045],{},[546,2041,2042,2044],{},[665,2043,459],{"href":460}," — replay or tail historic NDJSON files (cross-process, survives restarts)",[546,2046,2047,2050],{},[665,2048,2049],{"href":464},"Consumer recipes"," — build a minimal devtool, pipe to curl + jq, replay history then go live",[2052,2053,2054],"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":676,"searchDepth":713,"depth":713,"links":2056},[2057,2060,2067],{"id":584,"depth":713,"text":550,"children":2058},[2059],{"id":992,"depth":720,"text":332},{"id":1091,"depth":713,"text":1092,"children":2061},[2062,2063,2064,2065,2066],{"id":1183,"depth":720,"text":1184},{"id":1234,"depth":720,"text":1235},{"id":1520,"depth":720,"text":1521},{"id":1676,"depth":720,"text":1677},{"id":1940,"depth":720,"text":1941},{"id":2036,"depth":713,"text":2037},"Subscribe to wide events flowing through evlog — in-process with createStreamDrain, or over the network with the local SSE stream server.","md",null,{},{"title":445,"icon":448},{"title":445,"description":2068},"e7iPiDC-Jdn-UD0TIOPUaC6S-ZONRL3ljDYXPlENCTs",[2076,2078],{"title":128,"path":441,"stem":442,"description":2077,"icon":443,"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":450,"path":451,"stem":452,"description":2079,"icon":453,"children":-1},"Build evlog support for a framework or runtime that has no integration, with defineFrameworkIntegration or the lower-level helpers.",1786793481119]