Ross ROSS = Recommend OSS · open-source software intelligence for agents

unjs/defu

🌊 Assign default properties recursively observed · 2026-08-28

github.com/unjs/defu · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

91/100

  • Activity 98
  • Release rhythm 78
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 2.5
  • age_days: 2764
  • days_rel: 148
  • days_push: 12
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1358 stars · 50 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A tiny, fast TypeScript/JavaScript utility for recursively assigning default properties to objects without mutating inputs. It supports custom merging strategies and function-based default value manipulation.

Use cases

  • merge default options with user-provided config in a library
  • recursively fill missing nested object properties
  • create a custom deep merge strategy like summing numbers
  • apply functions to transform default values during merge
  • merge arrays and objects without mutating the originals

When to choose

  • you need lightweight recursive defaults assignment for JS/TS objects
  • you want immutable merging with customizable strategies
  • you're building a library or tool that accepts user options with sensible defaults

When to avoid

  • you need full deep-merge with array concatenation semantics by default
  • you're working outside the JavaScript/TypeScript ecosystem
  • you need schema validation alongside merging

Facets

library · maturity stable

serialization developer-tools developer-tools web-development browser cross-platform defaults deep-merge options-merging typescript unjs javascript nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
unjs/defumain91

For agents

markdown · JSON · MCP: product_card(name="unjs/defu")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem