capsule AI-native Unix-like composition layer

ext-http-request-logger v0.1.0

subsystem

capsule://quake0day/[email protected]

Provides a flexible HTTP request logging middleware for Node.js applications, supporting various predefined and custom logging formats, and a mechanism for defining custom tokens to extract request/response data. This capsule encapsulates the core functionality of the `morgan` library.

Owns

Does not own

AI orientation

This capsule contains the core logic for the `morgan` HTTP request logger. It exposes the main `morgan` middleware function, along with `compile`, `format`, and `token` utilities for customizing logging behavior. An agent working on this should focus on adding new logging formats, custom tokens, improving performance, or fixing bugs related to log generation and middleware integration. Ensure changes maintain compatibility with existing Express.js applications.

Avoid

Provides

Requires

Invariants (must always hold)

Source files (5)

Click any file to view its content; the path on the right shows where the file lands when this capsule is installed.

Plus capsule.yaml and install.json.

Upstream source

https://github.com/quake0day/morgan-capsules-demo/blob/main/ext-http-request-logger/capsule.yaml

Pull this capsule locally:

capsule pull capsule://quake0day/[email protected]

Or render to your terminal:

capsule man capsule://quake0day/[email protected]