{"id":50406762,"url":"https://github.com/meadown/meadown-logger","last_synced_at":"2026-05-31T02:00:51.873Z","repository":{"id":361491455,"uuid":"1253378272","full_name":"meadown/meadown-logger","owner":"meadown","description":"A development focused logger for Node.js and TypeScript - Zero dependency - Development focused logger - Clickable source link - API response logging - Color-coded levels - Tree layout output","archived":false,"fork":false,"pushed_at":"2026-05-30T22:41:47.000Z","size":412,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T23:10:50.524Z","etag":null,"topics":["console","console-log","debug","log","logger","logging","nodejs","typescript","zero-dependency"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@meadown/logger?activeTab=readme","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meadown.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T11:58:36.000Z","updated_at":"2026-05-30T22:41:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/meadown/meadown-logger","commit_stats":null,"previous_names":["meadown/meadown-logger"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/meadown/meadown-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meadown%2Fmeadown-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meadown%2Fmeadown-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meadown%2Fmeadown-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meadown%2Fmeadown-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meadown","download_url":"https://codeload.github.com/meadown/meadown-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meadown%2Fmeadown-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33716339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console","console-log","debug","log","logger","logging","nodejs","typescript","zero-dependency"],"created_at":"2026-05-31T02:00:51.175Z","updated_at":"2026-05-31T02:00:51.853Z","avatar_url":"https://github.com/meadown.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![meadown/logger — a development-focused logger for Node.js](media/header.png)\n\n# @meadown/logger\n\nA **development-focused logger** for Node.js and TypeScript — built to make your\ndevelopment loop faster and your terminal actually readable.\n\nNo dependencies. No config. Import it and you're done.\n\n## Why this exists\n\nI kept writing the same `console.log` wrapper in every project. Every time.\nCopy, paste, rename. And I still shipped it to production by accident. And I\nstill spent ten minutes staring at logs trying to figure out which file they\ncame from.\n\nAt some point I just built the thing I always wanted.\n\nOne import. No config. No dependencies. It shows you exactly where every log\ncame from, and it gets out of the way when you ship.\n\n\u003e The full story — the problem, the research, every design decision, and\n\u003e everything that got cut — is in [`docs/STORY.md`](docs/STORY.md).\n\n## Features\n\n- **Zero dependencies**\n- **Development-focused** — built for the dev experience, not production ops\n- **Clickable source link** — every log is a clickable link to the exact file it came from\n- **API response logging** — `tap` a fetch and get timing, status, size, and body automatically\n- **Color-coded levels** — `[INFO]` cyan, `[WARN]` yellow, `[ERROR]` red\n- **Tree layout output** — clean, scannable structure in your terminal\n- **Collapsible messages** — cap long output with `logger.maxLines`\n\n## Install\n\n```bash\npnpm add @meadown/logger\n# or\nnpm install @meadown/logger\n# or\nyarn add @meadown/logger\n```\n\n## Using it\n\n```ts\nimport logger from \"@meadown/logger\"\n\nlogger(\"Hello world\")\nlogger(\"Auth\", \"user logged in\")\n\nlogger.warn(\"This is deprecated\")\nlogger.error(\"Something went wrong\")\n```\n\n```text\n[INFO]\n├── Auth user logged in\n└── 05-30 04:00:00 PM - (server.ts:42)\n```\n\n## API response logging\n\nDrop `tap` into any `await` chain — you get timing, status, size, and the\nactual response body. The promise flows through untouched. One line of code.\n\n```ts\nconst user = await logger.tap(\n  fetch(\"https://api.example.com/users/1\"),\n  \"GET /users/1\",\n)\n// user is the real Response — your code doesn't change at all\n```\n\n```text\n[TAP]\n├── GET /users/1\n│\n│  response:\n│  ├── time:   65ms\n│  ├── status: 200 OK\n│  └── size:   848 B\n│\n│  body:\n│  ├── id:    1\n│  ├── name:  Leanne Graham\n│  └── email: Sincere@april.biz\n│\n└── 05-30 07:54:26 PM - (api.ts:12)\n```\n\nYou can immediately see: was it successful? How long did it take? What came\nback? Without opening DevTools.\n\n![API response logging — tap a fetch and see timing, status, size, and body](media/tap-api-demo.png)\n\nWorks with plain values too — logs it, returns it, nothing changes:\n\n```ts\nconst port = logger.tap(5000, \"port\") // port is still 5000\nconst user = logger.tap(await getUser(), \"user\") // same as without tap\n```\n\n## Clickable source link\n\nThat `(server.ts:42)` is a **clickable link** — open it and you land on the exact\nline that wrote the log. Works in VS Code, iTerm2, WezTerm, Kitty, and Windows\nTerminal. Degrades to plain text everywhere else.\n\n## Color-coded levels\n\n`[INFO]` cyan · `[WARN]` yellow · `[ERROR]` red. Timestamp and location tinted teal.\nAuto-disabled when output is piped — no escape codes in your log files.\n\n## Tree layout output\n\n```text\n[INFO]\n├── Auth user logged in\n└── 05-30 04:00:00 PM - (server.ts:42)\n```\n\nLevel tag, message, timestamp, and location — all in a clean tree. Easy to scan,\neven in a busy terminal.\n\n## Collapsible messages\n\n```ts\nlogger.maxLines = 5 // show 5 lines, then \"... N more lines\"\nlogger.maxLines = 0 // default — show everything\n```\n\n### One thing if you re-export it\n\n```ts\n// GOOD — location stays honest\nexport { default as logger } from \"@meadown/logger\"\n\n// BAD — every log points at this file, not the real caller\nexport const logger = (...args) =\u003e log(...args)\n```\n\n## NODE_ENV\n\nThis logger reads `NODE_ENV` to decide when to log. By default it logs everywhere\nexcept `production`. This is a deliberate dev-focused default — a production-grade\nlogger with transport, persistence, and log levels is a separate concern and a\nfuture direction.\n\n| `NODE_ENV`                               | Logs?  |\n| ---------------------------------------- | ------ |\n| not set, `development`, or anything else | shown  |\n| `production`                             | silent |\n\n## Security\n\nZero dependencies, no file or network access, nothing persisted.\nSee [SECURITY.md](https://github.com/meadown/meadown-logger/blob/main/SECURITY.md)\nfor the full security model.\n\n## License\n\nMIT © meadown\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeadown%2Fmeadown-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeadown%2Fmeadown-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeadown%2Fmeadown-logger/lists"}