hugorcd avatar

Create Evlog Framework Integration

This generates the boilerplate for adding a new framework integration to evlog, a structured logging library. You get two paths: manifest mode for standard request/response middleware frameworks like Hono or Express (about 30 lines of glue code), or custom mode for frameworks with weird lifecycles like NestJS or SvelteKit. The manifest approach uses defineFrameworkIntegration and covers roughly 80% of cases, while custom mode drops down to createMiddlewareLogger when you need more control. If you're maintaining evlog or want to add support for your preferred web framework, this scaffolds the integration pattern with reference implementations already in the repo.

skills.sh installs
503
GitHub stars
1.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add hugorcd/evlog --skill create-evlog-framework-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Create evlog Framework Integration

Add a new framework integration to evlog. The recommended path is the manifest mode built on defineFrameworkIntegration from evlog/toolkit, for any framework with a request/response middleware shape. For frameworks with a fundamentally different lifecycle you'll fall back to the lower-level createMiddlewareLogger.

Two paths

  • Manifest mode (preferred, ~30–80 lines of glue). Call defineFrameworkIntegration({ name, extractRequest, attachLogger, storage? }) once at module level, then write a tiny middleware that calls integration.start(ctx, options) and runs the framework's next() inside runWith. Reference implementations: all of packages/evlog/src/{hono,express,fastify,elysia,nestjs,orpc,react-router,sveltekit,workers}/index.ts use it.
  • Custom mode: use createMiddlewareLogger directly when the framework's lifecycle doesn't fit a standard middleware. Current custom-mode integrations: Next.js (src/next/), Nitro v2/v3 (src/nitro/, src/nitro-v3/), Eve (src/eve/).

Sponsors

Details

Repository
github.com/hugorcd/evlog
Categories
Backend & APIs, DevOps & CI/CD, Documentation
First seen
Jun 3, 2026

More from hugorcd/evlog

All 5
1jezweb avatartanstack-tablejezweb/claude-skillsBuild headless data tables with TanStack Table v8. Server-side pagination, filtering, sorting, and virtualization for Cloudflare Workers + D1. Prevents 12 docum502skills.sh installs
2aj-geddes avatarcode-documentationaj-geddes/useful-ai-promptsWrite comprehensive code documentation including JSDoc, Python docstrings, inline comments, function documentation, and API comments. Use when documenting code,500skills.sh installs
3bobmatnyc avataraxumbobmatnyc/claude-mpm-skillsAxum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing500skills.sh installs
4openzeppelin avatarupgrade-solidity-contractsopenzeppelin/openzeppelin-skillsUpgrade Solidity smart contracts using OpenZeppelin proxy patterns. Use when users need to: (1) make contracts upgradeable with UUPS, Transparent, or Beacon pro500skills.sh installs
5davila7 avatarreact-devdavila7/claude-code-templatesThis skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components a498skills.sh installs
6freestylefly avatarcanghe-post-to-wechatfreestylefly/canghe-skillsPosts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text p498skills.sh installs