{
 "kind": "tool",
 "slug": "pino-pretty",
 "path": "tools/pino-pretty/",
 "name": "pino-pretty",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Logging, monitoring and analytics",
   "tools/observability-analytics/"
  ]
 ],
 "lead": "Pretty-printer for Pino JSON logs to make terminal output human-readable.",
 "chips": [
  {
   "label": "Logging, monitoring and analytics",
   "path": "tools/observability-analytics/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install pino-pretty"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pinojs/pino-pretty"
  },
  {
   "label": "Website",
   "href": "https://github.com/pinojs/pino-pretty#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/pinojs/pino-pretty"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 20, 2026",
   "note": "Latest GitHub release Oct 4, 2026. ",
   "src": "https://github.com/pinojs/pino-pretty"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "66 projects",
   "status": "info",
   "sub": "#10 of 121 in its category",
   "note": "Dependency in 66 public GitHub projects set up for AI coding agents that we scanned (1.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What pino-pretty does",
   "parts": [
    {
     "t": "prose",
     "text": "pino-pretty turns Pino's one-line JSON logs into readable terminal lines, and its own README says to keep it out of production and install it only as a dev dependency."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "pino-pretty popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "68",
       "of": "/ 100",
       "l": "Gid Score, #495 overall"
      },
      {
       "n": "37.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,711",
       "l": "GitHub stars"
      },
      {
       "n": "66",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How pino-pretty is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "pino-pretty is a dependency in 66 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.4% of the 4,867 JavaScript/TypeScript ones), #10 of 121 in logging, monitoring and analytics.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 398; those are left out of every share on this page.",
      "The most used alternative in our scan is Winston (55 projects).",
      "Projects that use it most often also use Pino (87.9%), Vitest (71.2%), tsx (56.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "46 projects, 1.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "34 projects, 1.1%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "30 projects, 1.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "14 projects, 3.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "9 projects, 1.9%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 87.9% of its projects",
       "v": "Pino",
       "path": "tools/pino/"
      },
      {
       "l": "In 71.2% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 56.1% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 71.2% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 97.0% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 42.4% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 42.4% of its projects",
       "v": "Husky",
       "path": "tools/husky/"
      },
      {
       "l": "In 37.9% of its projects",
       "v": "jsdom",
       "path": "tools/jsdom/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "pino-pretty in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Pipe it or wire it in",
       "v": "The README recommends piping app output into the CLI. This needs no code changes. The same formatter also works as a Pino <code>transport</code> target or as a stream passed to <code>pino()</code>."
      },
      {
       "l": "Cut noise at the terminal",
       "v": "<code>--minimumLevel</code> hides lower-level lines. <code>--ignore</code> and <code>--include</code> pick which keys to show, and both support dotted nested keys. For more filtering than that, the README points to <code>jq</code>."
      },
      {
       "l": "Message templates with simple conditionals",
       "v": "<code>messageFormat</code> takes a template such as <code>{levelLabel} - {pid} - url:{req.url}</code>. The template can include <code>{if pid}...{end}</code> blocks. It can also be a function."
      },
      {
       "l": "Per-key formatting functions",
       "v": "<code>customPrettifiers</code> maps a log property to a function. It can reformat <code>time</code>, <code>level</code>, <code>hostname</code>, <code>pid</code>, <code>name</code>, <code>caller</code> or any custom key. Each function also receives a Colorette <code>colors</code> object."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Not meant for production",
       "v": "The maintainers advise against running it in production and recommend installing it with <code>--save-dev</code>. The README shows a way to enable the transport only when <code>process.stdout.isTTY</code> is true."
      },
      {
       "l": "Jest needs sync mode",
       "v": "Asynchronous writes conflict with how Jest ends tests. The README calls <code>pino(pretty({ sync: true }))</code> \"the only supported way\" to use it with Jest."
      },
      {
       "l": "Function options break transport config",
       "v": "Pino v7+ transports cannot pass non-serializable options. A function <code>messageFormat</code> or prettifier therefore means writing a small wrapper module and pointing <code>target</code> at it."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Pretty logs only when attached to a terminal"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Js",
       "code": "const pino = require('pino')\n// Define the transport configuration only when the output stream is connected to a TTY\nconst transport = process.stdout.isTTY ? { transport: { target: 'pino-pretty' } } : {};\nconst logger = pino({ ...transport })\nlogger.info('hi')"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about pino-pretty",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "pino: The logger it formats",
        "next: React framework",
        "typescript: Typed JavaScript",
        "axios: HTTP client",
        "@tanstack/react-query: Server-state fetching for React",
        "wagmi: React hooks for Ethereum"
       ]
      },
      {
       "title": "More in Logging, monitoring and analytics",
       "path": "tools/observability-analytics/",
       "items": [
        {
         "text": "Vercel Analytics",
         "path": "tools/vercel-analytics/"
        },
        {
         "text": "psutil",
         "path": "tools/psutil/"
        },
        {
         "text": "Vercel Speed Insights",
         "path": "tools/vercel-speed-insights/"
        },
        {
         "text": "Sentry for Next.js",
         "path": "tools/sentry-nextjs/"
        },
        {
         "text": "OpenTelemetry",
         "path": "tools/opentelemetry/"
        },
        {
         "text": "Pino",
         "path": "tools/pino/"
        },
        {
         "text": "structlog",
         "path": "tools/structlog/"
        },
        {
         "text": "PostHog JS",
         "path": "tools/posthog-js/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "pino-pretty",
       "me": true,
       "facts": [
        "MIT",
        "Gid 68",
        "37.1M/wk"
       ]
      },
      {
       "name": "Winston",
       "why": "Versatile Node.js logging library supporting multiple transports and levels.",
       "path": "tools/winston/",
       "facts": [
        "MIT",
        "Gid 76",
        "37.3M/wk"
       ]
      }
     ],
     "more": "Compare pino-pretty with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install pino-pretty"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## pino-pretty\n- Install it as a dev dependency (`npm install --save-dev pino-pretty`). Do not make production logging depend on it.\n- Prefer piping output (`node app.js | pino-pretty`) or a `transport: { target: 'pino-pretty' }` gated on `process.stdout.isTTY`.\n- When using it as a stream with Pino options, pass the options first and the stream second: `pino({ level: 'info' }, stream)`.\n- In Jest tests, use `pino(pretty({ sync: true }))`. That is the only supported setup.\n- Function-valued options such as `messageFormat` or `customPrettifiers` cannot go through transport options. Wrap pino-pretty in a custom module and target that file.\n- Do not pass both `ignore` and `include`, because `ignore` is then dropped. Do not use `errorProps` with pino@7.\n- For filtering beyond `minimumLevel`, `ignore` and `include`, use `jq` instead of extending pino-pretty.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm pino-pretty"
  ],
  [
   "Category",
   "Logging, monitoring and analytics"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v13.2.0, October 4, 2026"
  ],
  [
   "On GitHub since",
   "March 2018"
  ],
  [
   "Gid Score",
   "67.8"
  ],
  [
   "Rank in category",
   "#10 of 121"
  ],
  [
   "GitHub",
   "pinojs/pino-pretty"
  ],
  [
   "Last change",
   "Nov 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pinojs.png"
}