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