# shuding/tilg

A magical React Hook that helps you debug components.

Repository: https://github.com/shuding/tilg
Canonical: https://ross.abutalabs.com/products/tilg
Homepage: https://codesandbox.io/s/usetilg-3kdtz8?file=/src/App.js:274-359
Language: TypeScript
License: MIT
License Family: permissive
Topics: debug, logger, react, react-hooks
Last push: 2022-12-23T10:28:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1725, "days_push": 1349, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2179, forks 22 (observed 2026-08-28T04:06:23.002710+00:00)

## What it is
Tilg is a tiny React hook (`useTilg`) that logs component lifecycle events (render, mount, unmount), component names, props, and custom debug messages to the console. It helps developers debug React components with minimal setup.

## Use cases
- debug react component re-renders
- log react component lifecycle events
- see which component rendered with which props
- add quick debug logs to react components
- trace why a component re-rendered
- debug react hooks in the console

## When to choose
- you want zero-config debugging for React components
- you need to see render/mount/unmount events with component names and props
- you want lightweight, template-literal-based debug messages

## When to avoid
- you don't use React
- you need production-grade logging or monitoring
- you need a full devtools or time-travel debugging solution

## Facets
- artifact type: library
- maturity: maintenance
- function: logging, developer-tools
- domain: frontend, web-development, developer-tools
- platform: browser
- tags: react, react-hooks, debugging, logger, lifecycle-events, typescript, nodejs, web-server

## Member repositories
- shuding/tilg (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.002710+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:47.037278+00:00, confidence not recorded.
  - readme: https://github.com/shuding/tilg (fetched 2026-08-28T04:06:23.002710+00:00, sha 15b13d0d5a27)
  - registry_npm: https://registry.npmjs.org/tilg (fetched 2026-08-29T10:28:59.745902+00:00, sha 7602747ecd96)
- Data as of 2026-08-30T08:39:29.467469+00:00.
