Blyp Docs

Server-Side Types

Each server adapter exports its own config and factory types from its subpath.

Commonly used imports

import type { ElysiaLoggerConfig, ElysiaContext } from "@blyp/core/elysia";
import type { HonoLoggerConfig, HonoLoggerVariables } from "@blyp/core/hono";
import type { ExpressLoggerConfig, ExpressLoggerMiddleware } from "@blyp/core/express";
import type { FastifyLoggerConfig, FastifyLoggerPlugin } from "@blyp/core/fastify";
import type { NestLoggerConfig, NestAdapterType } from "@blyp/core/nestjs";
import type { NextJsLoggerFactory, NextJsLoggerConfig } from "@blyp/core/nextjs";
import type { TanStackStartLoggerFactory } from "@blyp/core/tanstack-start";
import type { SvelteKitLoggerFactory } from "@blyp/core/sveltekit";
import type { WorkersLoggerConfig, WorkersRequestLogger } from "@blyp/core/workers";

HttpRequestLog

Most server adapters also export HttpRequestLog, which includes:

Where typing helps most

Request-scoped structured logs

Structured log types are shared root exports because the same createStructuredLog() helper works in standalone code and inside framework handlers:

import {
  createStructuredLog,
  type StructuredLog,
  type StructuredLogEmitOptions,
  type StructuredLogPayload,
} from "@blyp/core";

Inside a framework request, the emitted StructuredLogPayload<TFields> can also include request metadata such as method, path, status, and duration, plus anything returned by the adapter's customProps(ctx).