morgan

Battle-tested HTTP request logger middleware for Node.js and Express.

Library
npm
v1.11.0
8,198stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
62/100Good
Development Activity52
Maintenance32
Community64
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
74/100Good
Architecture70
Code Quality78
Innovation55
Learning Curve92

Morgan is an HTTP request logger middleware for Node.js, maintained under the expressjs GitHub organization and used with both Express and plain Node HTTP servers. It logs incoming requests using predefined formats (combined, common, dev, short, tiny) or fully custom format strings built from named tokens.

Morgan supports custom tokens, conditional/skip logic for filtering which requests get logged, and configurable output streams, making it a lightweight, dependency-light choice for request-level observability in Node.js applications.

What You Get

  • Predefined log formats (combined, common, dev, short, tiny) matching common web server log conventions
  • Custom format strings built from named tokens (:method, :url, :status, :response-time, etc.)
  • Support for registering custom tokens to log application-specific request/response data
  • Configurable skip functions to conditionally omit logging specific requests
  • Pluggable output streams for directing logs to files, external services, or stdout

Common Use Cases

  • Logging every incoming HTTP request/response in an Express application for debugging
  • Producing Apache-style combined/common access logs for production Node.js servers
  • Filtering logs to only capture errors or slow requests via custom skip functions
  • Piping request logs into a file or external log aggregator via a custom stream

Under The Hood

Architecture - Morgan is implemented as a single middleware factory function (index.js) that wraps on-finished to hook into the response lifecycle, on-headers to capture response timing before headers are sent, and a token registry (morgan.token()) that resolves format placeholders like :method or :status at log time. Tech Stack - Pure JavaScript with minimal runtime dependencies: basic-auth for the :remote-user token, debug for internal debug logging, depd for deprecation warnings, and on-finished/on-headers for response lifecycle hooks; no build step or TypeScript, published as CommonJS. Code Quality - The project has a single but extensive test suite (test/morgan.js, ~1,800 lines) covering all predefined formats, custom tokens, skip functions, and streaming behavior; linting is enforced via ESLint with the standard config, and coverage is tracked via Coveralls. API Design - The API is a single default export (morgan(format, options)) used directly as Express/Connect middleware, with an extremely low barrier to entry — a one-line app.use(morgan('combined')) covers the common case, while morgan.token() provides an escape hatch for custom fields.

Used by 17 apps in this directory

JavaScript
100%
Other

Automatisch

Automation · No Code Platforms

13,936

Self-hosted, no-code workflow automation that keeps your data on your own servers—a privacy-first alternative to Zapier with 90+ integrations.

View details
49
Repo Health
78
Technical
64
Dependency
Built with
JavaScript100%
Updated 6 months ago
TypeScript
96%
Other

CapRover

Developer Tools · Devops · Hosting Control Panel

15,132

Deploy any app, database, or website to your own server in minutes—no Docker or Linux expertise required.

View details
87
Repo Health
82
Technical
69
Dependency
Built with
TypeScript96%
Updated 3 days ago
JavaScript
99%
Other

ChartBrew

Analytics · Databases

4,041

Open-source reporting platform to build live dashboards from SQL, NoSQL, APIs, and SaaS tools with an AI assistant that creates charts from natural language.

View details
90
Repo Health
83
Technical
65
Dependency
Built with
JavaScript99%
Updated 6 days ago
TypeScript
54%
MIT

FormBee

Forms Surveys

771

A self-hostable form backend that accepts HTML form submissions and routes them to email, Telegram, Discord, webhooks, and automation platforms — without writing any server-side code.

View details
29
Repo Health
48
Technical
69
Dependency
Built with
TypeScript54%
SCSS25%
HTML19%
Updated 1 years ago
TypeScript
83%
Apache 2.0

Grist

Databases · No Code Platforms

11,469

A modern relational spreadsheet that combines Python-powered formulas, drag-and-drop dashboards, and granular access controls in a self-hostable, SQLite-backed data platform.

View details
91
Repo Health
93
Technical
68
Dependency
Built with
TypeScript83%
Python11%
Updated yesterday
TypeScript
91%
Apache 2.0

Helicone

Monitoring · AI Development · Analytics

6,083

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
62
Repo Health
81
Technical
66
Dependency
Built with
TypeScript91%
Updated 3 days ago
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,055

A lightweight, offline-capable API development ecosystem for testing HTTP, GraphQL, WebSocket, MQTT, and SSE endpoints across web, desktop, and CLI.

View details
91
Repo Health
83
Technical
66
Dependency
Built with
TypeScript67%
Vue23%
Updated 3 days ago
TypeScript
61%
EPL-2.0

Huly Platform

Project Management · Team Chat · Collaboration

27,384

Open-source all-in-one workspace that replaces Linear, Jira, Slack, and Notion for product and engineering teams.

View details
90
Repo Health
86
Technical
64
Dependency
Built with
TypeScript61%
Svelte34%
Updated 1 weeks ago
TypeScript
94%
AGPL 3.0

Laudspeaker

Marketing · Automation

2,618

Open-source customer engagement platform for building visual, event-triggered messaging journeys across email, SMS, push, in-app, and webhooks.

View details
53
Repo Health
66
Technical
64
Dependency
Built with
TypeScript94%
Updated 1 months ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search