lukeed/klona
A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more! observed · 2026-08-28
Health v2 · maintenance only
57/100
- Activity 76
- Release rhythm 8
- 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: n/a
- age_days: 2428
- days_rel: n/a
- days_push: 146
- n_releases_24m: 0
Adoption not part of the score
1732 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
klona is a tiny (240B–501B gzipped) JavaScript utility for deep cloning objects, arrays, dates, regular expressions, maps, sets, typed arrays, and more. It ships in multiple size-optimized modes so you only bundle the cloning capability you need.
Use cases
- deep clone a nested object in JavaScript
- copy state without shared references in a reducer
- clone arrays and objects faster than structuredClone
- deep copy JSON data in a tiny bundle
- duplicate objects with Dates, RegExps, Maps, and Sets
- avoid shallow copy pitfalls with Object.assign
When to choose
- you need a very small, fast, dependency-free deep clone utility
- you want tree-shakeable modes tailored to the data types you clone
- you target environments where structuredClone is unavailable or too slow
When to avoid
- you need cloning of functions, class instances with private fields, or circular references
- structuredClone or your framework's built-in cloning already covers your needs
- you need serialization to strings rather than in-memory copies
Facets
library · maturity stable
serialization developer-tools web-development browser cross-platform deep-clone tiny-library zero-dependency immutable-copy javascript nodejs
2 sources
- readme: https://github.com/lukeed/klona · fetched 2026-08-28 · c5f4b72b3ac1
- registry_npm: https://registry.npmjs.org/klona · fetched 2026-08-29 · 15def590daa2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lukeed/klona | main | 57 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem